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

FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • Jenkins 2.144

      Intermittently I keep getting failed build status due to the following repeated error log. Note that this is not consistent behaviour. I will get a few builds completely successful triggered on a merge request to my Git repo and then a following build job would fail with the reported issue.
      java.lang.NoClassDefFoundError: Could not initialize class hudson.util.ProcessTree$UnixReflection*08:12:19* at hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:647)08:12:19 at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:668)08:12:19 at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:589)08:12:19 at hudson.Launcher$LocalLauncher.kill(Launcher.java:949)08:12:19 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:496)08:12:19 at hudson.model.Run.execute(Run.java:1735)08:12:19 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)08:12:19 at hudson.model.ResourceController.execute(ResourceController.java:97)08:12:19 at hudson.model.Executor.run(Executor.java:415)

          [JENKINS-46523] FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection

          Salman Ahmad created issue -

          Aviv Yam added a comment -

          I had the same issue. soled it by downgrading java from 1.9 to 1.8u45

          Aviv Yam added a comment - I had the same issue. soled it by downgrading java from 1.9 to 1.8u45
          Tristan Robet made changes -
          Link New: This issue is blocked by JENKINS-40689 [ JENKINS-40689 ]

          Larry Schiefer added a comment - - edited

          Seeing the same thing on Mac OS X High Sierra (10.13.1) running Java 1.9 (build 9_181):

          $ java -version
          java version "9"
          Java(TM) SE Runtime Environment (build 9+181)
          Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
          

          This happens whenever the shell is used to execute other processes, such as fastlane to build iOS apps, which in turn calls xcode.

          I downgraded Java to 1.8u144 and was able to build.

          Larry Schiefer added a comment - - edited Seeing the same thing on Mac OS X High Sierra (10.13.1) running Java 1.9 (build 9_181): $ java -version java version "9" Java(TM) SE Runtime Environment (build 9+181) Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode) This happens whenever the shell is used to execute other processes, such as fastlane to build iOS apps, which in turn calls xcode . I downgraded Java to 1.8u144 and was able to build.
          Daniel Heid made changes -
          Assignee Original: Gregory Boissinot [ gbois ] New: Daniel Heid [ dheid ]

          Daniel Heid added a comment -

          This is not a plugin specific problem, but depends on Jenkins overall Java 9 compatibility. Closing this ticket. You can reopen it, if the problems still occurs after https://issues.jenkins-ci.org/browse/JENKINS-40689 has been solved.

          Daniel Heid added a comment - This is not a plugin specific problem, but depends on Jenkins overall Java 9 compatibility. Closing this ticket. You can reopen it, if the problems still occurs after https://issues.jenkins-ci.org/browse/JENKINS-40689 has been solved.
          Daniel Heid made changes -
          Resolution New: Postponed [ 6 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

          Oleg Nenashev added a comment -

          The issue is still there. I see it in Java 11 tests

           

          Oleg Nenashev added a comment - The issue is still there. I see it in Java 11 tests  
          Oleg Nenashev made changes -
          Assignee Original: Daniel Heid [ dheid ] New: Oleg Nenashev [ oleg_nenashev ]
          Resolution Original: Postponed [ 6 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Oleg Nenashev made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: postbuildscript-plugin [ 15922 ]

            oleg_nenashev Oleg Nenashev
            bitmaven Salman Ahmad
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: