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

Job failure on remote node running JDK1.8 - java.lang.NoSuchMethodException: java.lang.UNIXProcess.destroyProcess(int)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When attempting to build on a remote node running linux the following exception is thrown
      Caused by: java.lang.LinkageError
      at hudson.util.ProcessTree$UnixReflection.<clinit>(ProcessTree.java:618)
      at hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:552)
      at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:572)
      at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:496)
      at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:899)
      at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:890)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:328)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:744)
      Caused by: java.lang.NoSuchMethodException: java.lang.UNIXProcess.destroyProcess(int)
      at java.lang.Class.getDeclaredMethod(Class.java:2117)
      at hudson.util.ProcessTree$UnixReflection.<clinit>(ProcessTree.java:607)
      ... 13 more

      This seems to be due to java.lang.UNIXProcess.destroyProcess no longer existing in Java1.8

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          Pity this was not backported to the 1.554.x line.

          Show
          jglick Jesse Glick added a comment - Pity this was not backported to the 1.554.x line.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christopher Orr
          Path:
          pom.xml
          http://jenkins-ci.org/commit/android-emulator-plugin/04b4015877bf359816afd22adb54e3a58b3bb154
          Log:
          Bump Jenkins requirement to 1.565.1.

          This is the first LTS version with the fix for JENKINS-21341, which we require.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christopher Orr Path: pom.xml http://jenkins-ci.org/commit/android-emulator-plugin/04b4015877bf359816afd22adb54e3a58b3bb154 Log: Bump Jenkins requirement to 1.565.1. This is the first LTS version with the fix for JENKINS-21341 , which we require.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          core/src/main/java/hudson/util/ProcessTree.java
          http://jenkins-ci.org/commit/jenkins/90e989827e9e7a826c12997d7f7109ac21b0411b
          Log:
          [FIXED JENKINS-21341] Merge pull request #1169 from pliljenberg/master

          Ugly hack to fix destroyProcess for Java8

          (cherry picked from commit 19640e7b4aa6d54865bc0816b604f4c0a9add6b6)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/hudson/util/ProcessTree.java http://jenkins-ci.org/commit/jenkins/90e989827e9e7a826c12997d7f7109ac21b0411b Log: [FIXED JENKINS-21341] Merge pull request #1169 from pliljenberg/master Ugly hack to fix destroyProcess for Java8 (cherry picked from commit 19640e7b4aa6d54865bc0816b604f4c0a9add6b6)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          core/src/main/java/hudson/util/ProcessTree.java
          http://jenkins-ci.org/commit/jenkins/90e989827e9e7a826c12997d7f7109ac21b0411b
          Log:
          [FIXED JENKINS-21341] Merge pull request #1169 from pliljenberg/master

          Ugly hack to fix destroyProcess for Java8

          (cherry picked from commit 19640e7b4aa6d54865bc0816b604f4c0a9add6b6)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/hudson/util/ProcessTree.java http://jenkins-ci.org/commit/jenkins/90e989827e9e7a826c12997d7f7109ac21b0411b Log: [FIXED JENKINS-21341] Merge pull request #1169 from pliljenberg/master Ugly hack to fix destroyProcess for Java8 (cherry picked from commit 19640e7b4aa6d54865bc0816b604f4c0a9add6b6)
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #3989
          [FIXED JENKINS-21341] Merge pull request #1169 from pliljenberg/master (Revision 90e989827e9e7a826c12997d7f7109ac21b0411b)

          Result = SUCCESS
          jesse glick : 90e989827e9e7a826c12997d7f7109ac21b0411b
          Files :

          • core/src/main/java/hudson/util/ProcessTree.java
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3989 [FIXED JENKINS-21341] Merge pull request #1169 from pliljenberg/master (Revision 90e989827e9e7a826c12997d7f7109ac21b0411b) Result = SUCCESS jesse glick : 90e989827e9e7a826c12997d7f7109ac21b0411b Files : core/src/main/java/hudson/util/ProcessTree.java

            People

            • Assignee:
              Unassigned
              Reporter:
              audumla Marius Gleeson
            • Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: