java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • NPE thrown in 1.2 on https://github.com/jenkinsci/proc-cleaner-plugin/blob/a707177556af5dc391508593fa5b41a00e7021af/src/main/java/org/jenkinsci/plugins/proccleaner/PsBasedUnixProcessTree.java#L64 {noformat} java.lang.NullPointerException at org.jenkinsci.plugins.proccleaner.PsBasedUnixProcessTree.createProcessTreeFor(PsBasedUnixProcessTree.java:64) at org.jenkinsci.plugins.proccleaner.PsKiller.kill(PsKiller.java:51) at org.jenkinsci.plugins.proccleaner.PsCleaner.clean(PsCleaner.java:69) at org.jenkinsci.plugins.proccleaner.ProcCleaner$CleanRequest.call(ProcCleaner.java:127) at org.jenkinsci.plugins.proccleaner.ProcCleaner$CleanRequest.call(ProcCleaner.java:116) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) at ......remote call to ci-osp-rhel7-7427(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1413) at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) at hudson.remoting.Channel.call(Channel.java:778) at org.jenkinsci.plugins.proccleaner.ProcCleaner.performCleanup(ProcCleaner.java:105) at org.jenkinsci.plugins.proccleaner.PreBuildCleanup.preCheckout(PreBuildCleanup.java:54) at jenkins.scm.SCMCheckoutStrategy.preCheckout(SCMCheckoutStrategy.java:76) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530) at hudson.model.Run.execute(Run.java:1738) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) {noformat} The problems seems to be it expects STDOUT even in case it failed.
    via by Oliver Gondža,
    • java.lang.NullPointerException at org.jenkinsci.plugins.proccleaner.PsBasedUnixProcessTree.createProcessTreeFor(PsBasedUnixProcessTree.java:64) at org.jenkinsci.plugins.proccleaner.PsKiller.kill(PsKiller.java:51) at org.jenkinsci.plugins.proccleaner.PsCleaner.clean(PsCleaner.java:69) at org.jenkinsci.plugins.proccleaner.ProcCleaner$CleanRequest.call(ProcCleaner.java:127) at org.jenkinsci.plugins.proccleaner.ProcCleaner$CleanRequest.call(ProcCleaner.java:116) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)
    No Bugmate found.