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.

  • After upgrading from 1.486 to 1.487 jenkins only provides the following NPE. {code} java.lang.NullPointerException at org.jenkinsci.main.modules.instance_identity.InstanceIdentity.getPublic(InstanceIdentity.java:81) at org.jenkinsci.modules.launchd_slave_installer.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:27) at jenkins.model.Jenkins.<init>(Jenkins.java:840) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.model.Hudson.<init>(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:214) {code} the log of the slaves says : {code} [10/26/12 10:19:15] [SSH] Opening SSH connection to simons-mac-mini.intern:22. [10/26/12 10:19:15] [SSH] Authenticating as jenkins with /var/lib/jenkins/.ssh/id_rsa. [10/26/12 10:19:15] [SSH] Authentication successful. [10/26/12 10:19:15] [SSH] The remote users environment is: BASH=/bin/bash BASH_ARGC=() BASH_ARGV=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="3" [1]="2" [2]="48" [3]="1" [4]="release" [5]="x86_64-apple-darwin11") BASH_VERSION='3.2.48(1)-release' DIRSTACK=() EUID=235 GROUPS=() HOME=/Users/Shared/Jenkins HOSTNAME=simons-mac-mini.intern HOSTTYPE=x86_64 IFS=$' \t\n' LOGNAME=jenkins MACHTYPE=x86_64-apple-darwin11 MAIL=/var/mail/jenkins OPTERR=1 OPTIND=1 OSTYPE=darwin11 PATH=/usr/bin:/bin:/usr/sbin:/sbin PPID=88642 PS4='+ ' PWD=/Users/Shared/Jenkins SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=1 SSH_CLIENT='192.168.0.18 39804 22' SSH_CONNECTION='192.168.0.18 39804 192.168.0.155 22' TERM=dumb TMPDIR=/var/folders/ln/lm4r8z013vb0lm8bqyvl12y000007b/T/ UID=235 USER=jenkins _=bash [10/26/12 10:19:15] [SSH] Checking java version of java [10/26/12 10:19:15] [SSH] java -version returned 1.6.0_35. [10/26/12 10:19:15] [SSH] Starting sftp client. [10/26/12 10:19:15] [SSH] Copying latest slave.jar... [10/26/12 10:19:16] [SSH] Copied 278.201 bytes. [10/26/12 10:19:16] [SSH] Starting slave process: cd 'dev/jenkins' && java -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.17 Dies ist ein UNIX-Slave Copied maven-agent.jar Copied maven3-agent.jar Copied maven3-interceptor.jar Copied maven-interceptor.jar Copied maven2.1-interceptor.jar Copied plexus-classworld.jar Copied classworlds.jar Evacuated stdout ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins. ha:AAAAWB+LCAAAAAAAAABb85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWAAAAA=java.lang.NullPointerException at org.jenkinsci.main.modules.instance_identity.InstanceIdentity.getPublic(InstanceIdentity.java:81) at org.jenkinsci.modules.launchd_slave_installer.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:27) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:396) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:317) at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:454) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:293) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) [10/26/12 10:19:18] [SSH] Connection closed. ERROR: Connection terminated ha:AAAAWB+LCAAAAAAAAABb85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWAAAAA=java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) {code} but even after manually removing the slave from the config.xml the first NPE is still there.
    via by Tobias W.,
  • After upgrading from 1.486 to 1.487 jenkins only provides the following NPE. {code} java.lang.NullPointerException at org.jenkinsci.main.modules.instance_identity.InstanceIdentity.getPublic(InstanceIdentity.java:81) at org.jenkinsci.modules.launchd_slave_installer.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:27) at jenkins.model.Jenkins.<init>(Jenkins.java:840) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.model.Hudson.<init>(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:214) {code} the log of the slaves says : {code} [10/26/12 10:19:15] [SSH] Opening SSH connection to simons-mac-mini.intern:22. [10/26/12 10:19:15] [SSH] Authenticating as jenkins with /var/lib/jenkins/.ssh/id_rsa. [10/26/12 10:19:15] [SSH] Authentication successful. [10/26/12 10:19:15] [SSH] The remote users environment is: BASH=/bin/bash BASH_ARGC=() BASH_ARGV=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="3" [1]="2" [2]="48" [3]="1" [4]="release" [5]="x86_64-apple-darwin11") BASH_VERSION='3.2.48(1)-release' DIRSTACK=() EUID=235 GROUPS=() HOME=/Users/Shared/Jenkins HOSTNAME=simons-mac-mini.intern HOSTTYPE=x86_64 IFS=$' \t\n' LOGNAME=jenkins MACHTYPE=x86_64-apple-darwin11 MAIL=/var/mail/jenkins OPTERR=1 OPTIND=1 OSTYPE=darwin11 PATH=/usr/bin:/bin:/usr/sbin:/sbin PPID=88642 PS4='+ ' PWD=/Users/Shared/Jenkins SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=1 SSH_CLIENT='192.168.0.18 39804 22' SSH_CONNECTION='192.168.0.18 39804 192.168.0.155 22' TERM=dumb TMPDIR=/var/folders/ln/lm4r8z013vb0lm8bqyvl12y000007b/T/ UID=235 USER=jenkins _=bash [10/26/12 10:19:15] [SSH] Checking java version of java [10/26/12 10:19:15] [SSH] java -version returned 1.6.0_35. [10/26/12 10:19:15] [SSH] Starting sftp client. [10/26/12 10:19:15] [SSH] Copying latest slave.jar... [10/26/12 10:19:16] [SSH] Copied 278.201 bytes. [10/26/12 10:19:16] [SSH] Starting slave process: cd 'dev/jenkins' && java -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.17 Dies ist ein UNIX-Slave Copied maven-agent.jar Copied maven3-agent.jar Copied maven3-interceptor.jar Copied maven-interceptor.jar Copied maven2.1-interceptor.jar Copied plexus-classworld.jar Copied classworlds.jar Evacuated stdout ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins. ha:AAAAWB+LCAAAAAAAAABb85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWAAAAA=java.lang.NullPointerException at org.jenkinsci.main.modules.instance_identity.InstanceIdentity.getPublic(InstanceIdentity.java:81) at org.jenkinsci.modules.launchd_slave_installer.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:27) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:396) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:317) at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:454) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:293) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) [10/26/12 10:19:18] [SSH] Connection closed. ERROR: Connection terminated ha:AAAAWB+LCAAAAAAAAABb85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWAAAAA=java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) {code} but even after manually removing the slave from the config.xml the first NPE is still there.
    via by Tobias W.,
    • java.lang.NullPointerException at org.jenkinsci.main.modules.instance_identity.InstanceIdentity.getPublic(InstanceIdentity.java:81) at org.jenkinsci.modules.launchd_slave_installer.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:27) at jenkins.model.Jenkins.<init>(Jenkins.java:840) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.model.Hudson.<init>(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:214)
    No Bugmate found.