Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-26476

Remote FilePath.chmod fails with ClassNotFoundException: javax.servlet.ServletException

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
      1.598-SNAPSHOT, ssh-slaves, evarga/jenkins-slave Docker image
    • Similar Issues:

      Description

      When running a FilePath.chmod operation on a remote node from hpi:run, I am getting a CNFE on ServletException, evidently due to loading transitive classes from Functions via _chmod. For whatever reason Jenkins remoting is not sending across Servlet API classes.

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            Example log while testing JENKINS-26339, before fix applied.

            Show
            jglick Jesse Glick added a comment - Example log while testing JENKINS-26339 , before fix applied.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/hudson/FilePath.java
            http://jenkins-ci.org/commit/jenkins/36bce39ff4fe7fe3f606d7d9599c30e4c7392785
            Log:
            [FIXED JENKINS-26476] Work around Remoting problem by avoiding reference to Functions.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/FilePath.java http://jenkins-ci.org/commit/jenkins/36bce39ff4fe7fe3f606d7d9599c30e4c7392785 Log: [FIXED JENKINS-26476] Work around Remoting problem by avoiding reference to Functions.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            changelog.html
            core/src/main/java/hudson/FilePath.java
            http://jenkins-ci.org/commit/jenkins/a22843be1623a277c896b7d5ede7c8891062b600
            Log:
            JENKINS-26476 Noting merge of #1536.

            Compare: https://github.com/jenkinsci/jenkins/compare/6852d75bd455...a22843be1623

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/FilePath.java http://jenkins-ci.org/commit/jenkins/a22843be1623a277c896b7d5ede7c8891062b600 Log: JENKINS-26476 Noting merge of #1536. Compare: https://github.com/jenkinsci/jenkins/compare/6852d75bd455...a22843be1623
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #3939
            [FIXED JENKINS-26476] Work around Remoting problem by avoiding reference to Functions. (Revision 36bce39ff4fe7fe3f606d7d9599c30e4c7392785)

            Result = SUCCESS
            jesse glick : 36bce39ff4fe7fe3f606d7d9599c30e4c7392785
            Files :

            • core/src/main/java/hudson/FilePath.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3939 [FIXED JENKINS-26476] Work around Remoting problem by avoiding reference to Functions. (Revision 36bce39ff4fe7fe3f606d7d9599c30e4c7392785) Result = SUCCESS jesse glick : 36bce39ff4fe7fe3f606d7d9599c30e4c7392785 Files : core/src/main/java/hudson/FilePath.java

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                jglick Jesse Glick
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: