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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • core
    • 1.598-SNAPSHOT, ssh-slaves, evarga/jenkins-slave Docker image

    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

            jglick Jesse Glick added a comment -

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

            jglick Jesse Glick added a comment - Example log while testing JENKINS-26339 , before fix applied.

            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.

            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.

            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

            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
            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
            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

              jglick Jesse Glick
              jglick Jesse Glick
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: