java.lang.NullPointerException

Jenkins JIRA | tapiomtr | 6 years ago
  1. 0

    Works perfectly with xUnit 1.14, but after upgrading to 1.16: [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing CppUnit-1.x [xUnit] [ERROR] - The plugin hasn't been performed correctly: Unable to serialize hudson.FilePath$FileCallableWrapper@b749a3 And from the Main Jenkins log: WARNING: Publisher com.thalesgroup.hudson.plugins.xunit.XUnitPublisher aborted due to exception java.lang.NullPointerException at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:230) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:624) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:603) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:581) at hudson.model.Build$RunnerImpl.post2(Build.java:160) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:550) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Feb 27, 2011 2:13:18 AM hudson.model.AbstractBuild$AbstractRunner performAllBuildSteps WARNING: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:237) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:281) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:624) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:603) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:581) at hudson.model.Build$RunnerImpl.post2(Build.java:160) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:550) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) We are running Jenkins master/slave build environment structure, e.g. all builds are running on Windows/Linux based slaves. Now all jobs, which are using xUnit failed.

    Jenkins JIRA | 6 years ago | tapiomtr
    java.lang.NullPointerException
  2. 0

    Works perfectly with xUnit 1.14, but after upgrading to 1.16: [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing CppUnit-1.x [xUnit] [ERROR] - The plugin hasn't been performed correctly: Unable to serialize hudson.FilePath$FileCallableWrapper@b749a3 And from the Main Jenkins log: WARNING: Publisher com.thalesgroup.hudson.plugins.xunit.XUnitPublisher aborted due to exception java.lang.NullPointerException at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:230) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:624) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:603) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:581) at hudson.model.Build$RunnerImpl.post2(Build.java:160) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:550) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Feb 27, 2011 2:13:18 AM hudson.model.AbstractBuild$AbstractRunner performAllBuildSteps WARNING: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.lang.NullPointerException at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:237) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:281) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:624) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:603) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:581) at hudson.model.Build$RunnerImpl.post2(Build.java:160) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:550) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) We are running Jenkins master/slave build environment structure, e.g. all builds are running on Windows/Linux based slaves. Now all jobs, which are using xUnit failed.

    Jenkins JIRA | 6 years ago | tapiomtr
    java.lang.NullPointerException
  3. 0

    Attempting to use the "archive artifacts" option on a job that is run on a windows slave (and a separate workspace) managed by a solaris hudson master fails during the archive step. It appears that the file path pattern contains mixed unix (/) and windows (\) path separators. A cursory glimpse at the code shows FilePath::readFromTar hard-coding a unix file separator when constructing a path for remote -> local copies rather than the character defined by the property file.separator. But I'm not sure that is the root cause of the problem yet (I have been running the slave as a JNLP applet, not under a debugger). A sample exception in the build log follows. Also notice that the warning parser failed with an NPE, possibly due to java exceptions being present in the log. Time Elapsed 00:01:32.20 [locks-and-latches] Releasing all the locks [locks-and-latches] All the locks released ERROR: Failed to archive artifacts: bin\*.* hudson.util.IOException2: hudson.util.IOException2: Failed to read the remote stream S:\Projects\libPlasma\Plasma/bin\*.* at hudson.FilePath.readFromTar(FilePath.java:1024) at hudson.FilePath.copyRecursiveTo(FilePath.java:936) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:78) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:323) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:311) at hudson.model.Build$RunnerImpl.post2(Build.java:132) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:296) at hudson.model.Run.run(Run.java:862) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90) Caused by: Error while expanding S:\Projects\libPlasma\Plasma/bin\*.* at org.apache.tools.ant.taskdefs.Untar.expandResource(Untar.java:121) at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:119) at hudson.FilePath.readFromTar(FilePath.java:1022) ... 10 more Caused by: java.io.IOException: Write end dead at java.io.PipedInputStream.read(PipedInputStream.java:294) at java.io.PipedInputStream.read(PipedInputStream.java:361) at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:36) at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:221) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141) at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read1(BufferedInputStream.java:258) at java.io.BufferedInputStream.read(BufferedInputStream.java:317) at java.io.BufferedInputStream.read1(BufferedInputStream.java:256) at java.io.BufferedInputStream.read(BufferedInputStream.java:317) at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257) at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223) at org.apache.tools.tar.TarInputStream.read(TarInputStream.java:340) at java.io.FilterInputStream.read(FilterInputStream.java:90) at org.apache.tools.ant.taskdefs.Expand.extractFile(Expand.java:282) at org.apache.tools.ant.taskdefs.Untar.expandStream(Untar.java:142) at org.apache.tools.ant.taskdefs.Untar.expandResource(Untar.java:119) ... 12 more at hudson.FilePath.copyRecursiveTo(FilePath.java:943) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:78) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:323) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:311) at hudson.model.Build$RunnerImpl.post2(Build.java:132) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:296) at hudson.model.Run.run(Run.java:862) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90) Caused by: java.util.concurrent.ExecutionException: hudson.remoting.RequestAbortedException: java.io.EOFException at hudson.remoting.Request$1.get(Request.java:179) at hudson.remoting.Request$1.get(Request.java:134) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:36) at hudson.FilePath.copyRecursiveTo(FilePath.java:939) ... 9 more Caused by: hudson.remoting.RequestAbortedException: java.io.EOFException at hudson.remoting.Request.abort(Request.java:200) at hudson.remoting.Channel.terminate(Channel.java:500) at hudson.remoting.Channel$ReaderThread.run(Channel.java:656) Caused by: java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2281) at java.io.ObjectInputStream$BlockDataInputStream.readUnsignedShort(ObjectInputStream.java:2762) at java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2820) at java.io.ObjectInputStream.readString(ObjectInputStream.java:1599) at java.io.ObjectInputStream.readTypeString(ObjectInputStream.java:1401) at java.io.ObjectStreamClass.readNonProxy(ObjectStreamClass.java:650) at java.io.ObjectInputStream.readClassDescriptor(ObjectInputStream.java:809) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1565) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:637) [WARNINGS] Parsing warnings in log file... FATAL: null java.lang.NullPointerException at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:152) at hudson.plugins.warnings.util.HealthAwarePublisher.perform(HealthAwarePublisher.java:179) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:323) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:311) at hudson.model.Build$RunnerImpl.post2(Build.java:132) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:296) at hudson.model.Run.run(Run.java:862) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90)

    Jenkins JIRA | 8 years ago | tallpgr
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Attempting to use the "archive artifacts" option on a job that is run on a windows slave (and a separate workspace) managed by a solaris hudson master fails during the archive step. It appears that the file path pattern contains mixed unix (/) and windows (\) path separators. A cursory glimpse at the code shows FilePath::readFromTar hard-coding a unix file separator when constructing a path for remote -> local copies rather than the character defined by the property file.separator. But I'm not sure that is the root cause of the problem yet (I have been running the slave as a JNLP applet, not under a debugger). A sample exception in the build log follows. Also notice that the warning parser failed with an NPE, possibly due to java exceptions being present in the log. Time Elapsed 00:01:32.20 [locks-and-latches] Releasing all the locks [locks-and-latches] All the locks released ERROR: Failed to archive artifacts: bin\*.* hudson.util.IOException2: hudson.util.IOException2: Failed to read the remote stream S:\Projects\libPlasma\Plasma/bin\*.* at hudson.FilePath.readFromTar(FilePath.java:1024) at hudson.FilePath.copyRecursiveTo(FilePath.java:936) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:78) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:323) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:311) at hudson.model.Build$RunnerImpl.post2(Build.java:132) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:296) at hudson.model.Run.run(Run.java:862) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90) Caused by: Error while expanding S:\Projects\libPlasma\Plasma/bin\*.* at org.apache.tools.ant.taskdefs.Untar.expandResource(Untar.java:121) at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:119) at hudson.FilePath.readFromTar(FilePath.java:1022) ... 10 more Caused by: java.io.IOException: Write end dead at java.io.PipedInputStream.read(PipedInputStream.java:294) at java.io.PipedInputStream.read(PipedInputStream.java:361) at hudson.util.HeadBufferingStream.read(HeadBufferingStream.java:36) at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:221) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141) at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read1(BufferedInputStream.java:258) at java.io.BufferedInputStream.read(BufferedInputStream.java:317) at java.io.BufferedInputStream.read1(BufferedInputStream.java:256) at java.io.BufferedInputStream.read(BufferedInputStream.java:317) at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257) at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223) at org.apache.tools.tar.TarInputStream.read(TarInputStream.java:340) at java.io.FilterInputStream.read(FilterInputStream.java:90) at org.apache.tools.ant.taskdefs.Expand.extractFile(Expand.java:282) at org.apache.tools.ant.taskdefs.Untar.expandStream(Untar.java:142) at org.apache.tools.ant.taskdefs.Untar.expandResource(Untar.java:119) ... 12 more at hudson.FilePath.copyRecursiveTo(FilePath.java:943) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:78) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:323) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:311) at hudson.model.Build$RunnerImpl.post2(Build.java:132) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:296) at hudson.model.Run.run(Run.java:862) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90) Caused by: java.util.concurrent.ExecutionException: hudson.remoting.RequestAbortedException: java.io.EOFException at hudson.remoting.Request$1.get(Request.java:179) at hudson.remoting.Request$1.get(Request.java:134) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:36) at hudson.FilePath.copyRecursiveTo(FilePath.java:939) ... 9 more Caused by: hudson.remoting.RequestAbortedException: java.io.EOFException at hudson.remoting.Request.abort(Request.java:200) at hudson.remoting.Channel.terminate(Channel.java:500) at hudson.remoting.Channel$ReaderThread.run(Channel.java:656) Caused by: java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2281) at java.io.ObjectInputStream$BlockDataInputStream.readUnsignedShort(ObjectInputStream.java:2762) at java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2820) at java.io.ObjectInputStream.readString(ObjectInputStream.java:1599) at java.io.ObjectInputStream.readTypeString(ObjectInputStream.java:1401) at java.io.ObjectStreamClass.readNonProxy(ObjectStreamClass.java:650) at java.io.ObjectInputStream.readClassDescriptor(ObjectInputStream.java:809) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1565) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:637) [WARNINGS] Parsing warnings in log file... FATAL: null java.lang.NullPointerException at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:152) at hudson.plugins.warnings.util.HealthAwarePublisher.perform(HealthAwarePublisher.java:179) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:323) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:311) at hudson.model.Build$RunnerImpl.post2(Build.java:132) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:296) at hudson.model.Run.run(Run.java:862) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90)

    Jenkins JIRA | 8 years ago | tallpgr
    java.lang.NullPointerException
  6. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    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 hudson.plugins.warnings.WarningsPublisher.perform()
    2. hudson.plugins.warnings
      WarningsPublisher.perform
      1. hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:237)
      1 frame
    3. Static Analysis Utilities
      HealthAwarePublisher.perform
      1. hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:281)
      1 frame
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:624)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:603)
      4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:581)
      5. hudson.model.Build$RunnerImpl.post2(Build.java:160)
      6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:550)
      7. hudson.model.Run.run(Run.java:1386)
      8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      9. hudson.model.ResourceController.execute(ResourceController.java:88)
      10. hudson.model.Executor.run(Executor.java:145)
      10 frames