java.lang.NullPointerException

Jenkins JIRA | Peter Larsson | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When running with Jenkins slaves and the branches are located on the slaves the rebase and integration jobs fail with the following exception: hudson.util.IOException2: remote file operation failed: ***\Jenkins-Slave\workspace\Project\*** at hudson.remoting.Channel@31943194:Jenkins-Slave-1 at hudson.FilePath.act(FilePath.java:779) at hudson.FilePath.act(FilePath.java:765) at jenkins.plugins.svnmerge.FeatureBranchProperty.rebase(FeatureBranchProperty.java:148) at jenkins.plugins.svnmerge.RebaseAction.perform(RebaseAction.java:105) at jenkins.plugins.svnmerge.RebaseAction.perform(RebaseAction.java:25) at jenkins.plugins.svnmerge.AbstractSvnmergeTaskAction$WorkerThread.perform(AbstractSvnmergeTaskAction.java:105) at hudson.model.TaskThread.run(TaskThread.java:127) at jenkins.plugins.svnmerge.AbstractSvnmergeTaskAction$TaskImpl$1.run(AbstractSvnmergeTaskAction.java:161) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@d420d42 at hudson.remoting.UserRequest.serialize(UserRequest.java:166) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:680) at hudson.FilePath.act(FilePath.java:772) ... 9 more Caused by: java.io.NotSerializableException: jenkins.plugins.svnmerge.FeatureBranchProperty at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1167) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1520) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1485) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1403) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1161) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1520) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1485) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1403) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1161) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:337) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) ... 12 more I tried to download the source code and make all classes Serializable, but I then got another exception: java.lang.NullPointerException at jenkins.plugins.svnmerge.FeatureBranchProperty.getUpstreamProject(FeatureBranchProperty.java:84) at jenkins.plugins.svnmerge.FeatureBranchProperty.getUpstreamSubversionLocation(FeatureBranchProperty.java:88) at jenkins.plugins.svnmerge.FeatureBranchProperty.getUpstreamURL(FeatureBranchProperty.java:102) at jenkins.plugins.svnmerge.FeatureBranchProperty$1.invoke(FeatureBranchProperty.java:167) at jenkins.plugins.svnmerge.FeatureBranchProperty$1.invoke(FeatureBranchProperty.java:153) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2030) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314) at java.util.concurrent.FutureTask.run(FutureTask.java:149) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Thread.java:735)

    Jenkins JIRA | 5 years ago | Peter Larsson
    java.lang.NullPointerException
  2. 0

    When running with Jenkins slaves and the branches are located on the slaves the rebase and integration jobs fail with the following exception: hudson.util.IOException2: remote file operation failed: ***\Jenkins-Slave\workspace\Project\*** at hudson.remoting.Channel@31943194:Jenkins-Slave-1 at hudson.FilePath.act(FilePath.java:779) at hudson.FilePath.act(FilePath.java:765) at jenkins.plugins.svnmerge.FeatureBranchProperty.rebase(FeatureBranchProperty.java:148) at jenkins.plugins.svnmerge.RebaseAction.perform(RebaseAction.java:105) at jenkins.plugins.svnmerge.RebaseAction.perform(RebaseAction.java:25) at jenkins.plugins.svnmerge.AbstractSvnmergeTaskAction$WorkerThread.perform(AbstractSvnmergeTaskAction.java:105) at hudson.model.TaskThread.run(TaskThread.java:127) at jenkins.plugins.svnmerge.AbstractSvnmergeTaskAction$TaskImpl$1.run(AbstractSvnmergeTaskAction.java:161) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@d420d42 at hudson.remoting.UserRequest.serialize(UserRequest.java:166) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:680) at hudson.FilePath.act(FilePath.java:772) ... 9 more Caused by: java.io.NotSerializableException: jenkins.plugins.svnmerge.FeatureBranchProperty at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1167) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1520) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1485) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1403) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1161) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1520) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1485) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1403) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1161) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:337) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) ... 12 more I tried to download the source code and make all classes Serializable, but I then got another exception: java.lang.NullPointerException at jenkins.plugins.svnmerge.FeatureBranchProperty.getUpstreamProject(FeatureBranchProperty.java:84) at jenkins.plugins.svnmerge.FeatureBranchProperty.getUpstreamSubversionLocation(FeatureBranchProperty.java:88) at jenkins.plugins.svnmerge.FeatureBranchProperty.getUpstreamURL(FeatureBranchProperty.java:102) at jenkins.plugins.svnmerge.FeatureBranchProperty$1.invoke(FeatureBranchProperty.java:167) at jenkins.plugins.svnmerge.FeatureBranchProperty$1.invoke(FeatureBranchProperty.java:153) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2030) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314) at java.util.concurrent.FutureTask.run(FutureTask.java:149) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Thread.java:735)

    Jenkins JIRA | 5 years ago | Peter Larsson
    java.lang.NullPointerException
  3. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  6. 0

    Cloud Foundry v2 in Grails

    Stack Overflow | 3 years ago | angelo087
    java.lang.NullPointerException: Cannot invoke method getAt() on null object

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at jenkins.plugins.svnmerge.FeatureBranchProperty.getUpstreamProject()
    2. jenkins.plugins.svnmerge
      FeatureBranchProperty$1.invoke
      1. jenkins.plugins.svnmerge.FeatureBranchProperty.getUpstreamProject(FeatureBranchProperty.java:84)
      2. jenkins.plugins.svnmerge.FeatureBranchProperty.getUpstreamSubversionLocation(FeatureBranchProperty.java:88)
      3. jenkins.plugins.svnmerge.FeatureBranchProperty.getUpstreamURL(FeatureBranchProperty.java:102)
      4. jenkins.plugins.svnmerge.FeatureBranchProperty$1.invoke(FeatureBranchProperty.java:167)
      5. jenkins.plugins.svnmerge.FeatureBranchProperty$1.invoke(FeatureBranchProperty.java:153)
      5 frames
    3. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2030)
      1 frame
    4. Hudson :: Remoting Layer
      Request$2.run
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:287)
      3 frames
    5. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:149)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      5 frames
    6. Hudson :: Remoting Layer
      Engine$1$1.run
      1. hudson.remoting.Engine$1$1.run(Engine.java:60)
      1 frame
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:735)
      1 frame