java.lang.NullPointerException

Jenkins JIRA | Martha Tiambeng | 6 years ago
  1. 0

    FATAL: null java.lang.NullPointerException at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:118) at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) at java.io.FilterOutputStream.close(FilterOutputStream.java:140) at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:149) at java.io.FilterOutputStream.close(FilterOutputStream.java:143) at org.apache.tools.tar.TarBuffer.close(TarBuffer.java:450) at hudson.org.apache.tools.tar.TarOutputStream.close(TarOutputStream.java:150) at hudson.util.io.TarArchiver.close(TarArchiver.java:114) at hudson.FilePath.writeToTar(FilePath.java:1545) at hudson.FilePath.copyRecursiveTo(FilePath.java:1470) at hudson.FilePath.copyRecursiveTo(FilePath.java:1399) at hudson.plugins.copyartifact.FilePathCopyMethod.init(FilePathCopyMethod.java:56) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:221) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:199) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.Build$RunnerImpl.build(Build.java:174) at hudson.model.Build$RunnerImpl.doRun(Build.java:138) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1257) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:127) I'm wondering what could make window null in line 118 for hudson.remoting.ProxyOutputStream? 103 _write(b, off, len); 104 } 105 106 /** 107 * {@link #write(byte[])} without the close check. 108 */ 109 private synchronized void _write(byte[] b, int off, int len) throws IOException { 110 if(channel==null) { 111 if(tmp==null) 112 tmp = new ByteArrayOutputStream(); 113 tmp.write(b,off,len); 114 } else { 115 while (len>0) { 116 int sendable; 117 try { 118 sendable = Math.min(window.get(),len);

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

    FATAL: null java.lang.NullPointerException at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:118) at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) at java.io.FilterOutputStream.close(FilterOutputStream.java:140) at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:149) at java.io.FilterOutputStream.close(FilterOutputStream.java:143) at org.apache.tools.tar.TarBuffer.close(TarBuffer.java:450) at hudson.org.apache.tools.tar.TarOutputStream.close(TarOutputStream.java:150) at hudson.util.io.TarArchiver.close(TarArchiver.java:114) at hudson.FilePath.writeToTar(FilePath.java:1545) at hudson.FilePath.copyRecursiveTo(FilePath.java:1470) at hudson.FilePath.copyRecursiveTo(FilePath.java:1399) at hudson.plugins.copyartifact.FilePathCopyMethod.init(FilePathCopyMethod.java:56) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:221) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:199) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.Build$RunnerImpl.build(Build.java:174) at hudson.model.Build$RunnerImpl.doRun(Build.java:138) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1257) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:127) I'm wondering what could make window null in line 118 for hudson.remoting.ProxyOutputStream? 103 _write(b, off, len); 104 } 105 106 /** 107 * {@link #write(byte[])} without the close check. 108 */ 109 private synchronized void _write(byte[] b, int off, int len) throws IOException { 110 if(channel==null) { 111 if(tmp==null) 112 tmp = new ByteArrayOutputStream(); 113 tmp.write(b,off,len); 114 } else { 115 while (len>0) { 116 int sendable; 117 try { 118 sendable = Math.min(window.get(),len);

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

    I got this NullPointer during a build... Pproject is a maven 2 job, running "-e install site" 9:12:30 [HUDSON] Archiving site from /data/hudson/experiments/.hudson/jobs/Test_Build_Webchannel/workspace/trunk/service/shipment/shipment-ejb/target/site to /data/hudson/experiments/.hudson/jobs/Test_Build_Webchannel/site/shipment-ejb 19:12:42 [INFO] ------------------------------------------------------------------------ 19:12:42 [ERROR] FATAL ERROR 19:12:42 [INFO] ------------------------------------------------------------------------ 19:12:42 [INFO] null 19:12:42 [INFO] ------------------------------------------------------------------------ 19:12:42 [INFO] Trace 19:12:42 java.lang.NullPointerException 19:12:42 at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:118) 19:12:42 at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103) 19:12:42 at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) 19:12:42 at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109) 19:12:42 at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:161) 19:12:42 at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:118) 19:12:42 at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:72) 19:12:42 at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105) 19:12:42 at org.apache.tools.tar.TarBuffer.writeBlock(TarBuffer.java:410) 19:12:42 at org.apache.tools.tar.TarBuffer.writeRecord(TarBuffer.java:388) 19:12:42 at hudson.org.apache.tools.tar.TarOutputStream.write(TarOutputStream.java:337) 19:12:42 at hudson.util.io.TarArchiver.visit(TarArchiver.java:103) 19:12:42 at hudson.util.DirScanner$Glob.scan(DirScanner.java:104) 19:12:42 at hudson.FilePath.writeToTar(FilePath.java:1543) 19:12:42 at hudson.FilePath.copyRecursiveTo(FilePath.java:1470) 19:12:42 at hudson.FilePath.copyRecursiveTo(FilePath.java:1399) 19:12:42 at hudson.maven.reporters.MavenSiteArchiver.postExecute(MavenSiteArchiver.java:81) 19:12:42 at hudson.maven.MavenModuleSetBuild$Builder.postExecute(MavenModuleSetBuild.java:828) 19:12:42 at hudson.maven.MavenBuilder$Adapter.postExecute(MavenBuilder.java:300) 19:12:42 at hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.callPost(PluginManagerInterceptor.java:170) 19:12:42 at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:183) 19:12:42 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) 19:12:42 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) 19:12:42 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) 19:12:42 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) 19:12:42 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) 19:12:42 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) 19:12:42 at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65) 19:12:42 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) 19:12:42 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) 19:12:42 at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) 19:12:42 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 19:12:42 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 19:12:42 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 19:12:42 at java.lang.reflect.Method.invoke(Method.java:597) 19:12:42 at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) 19:12:42 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) 19:12:42 at hudson.maven.agent.Main.launch(Main.java:165) 19:12:42 at hudson.maven.MavenBuilder.call(MavenBuilder.java:165) 19:12:42 at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:750) 19:12:42 at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:694) 19:12:42 at hudson.remoting.UserRequest.perform(UserRequest.java:114) 19:12:42 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 19:12:42 at hudson.remoting.Request$2.run(Request.java:270) 19:12:42 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 19:12:42 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 19:12:42 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 19:12:42 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 19:12:42 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 19:12:42 at java.lang.Thread.run(Thread.java:619) Build fails after that.

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

    Automated exception search integrated into your IDE

  5. 0

    I got this NullPointer during a build... Pproject is a maven 2 job, running "-e install site" 9:12:30 [HUDSON] Archiving site from /data/hudson/experiments/.hudson/jobs/Test_Build_Webchannel/workspace/trunk/service/shipment/shipment-ejb/target/site to /data/hudson/experiments/.hudson/jobs/Test_Build_Webchannel/site/shipment-ejb 19:12:42 [INFO] ------------------------------------------------------------------------ 19:12:42 [ERROR] FATAL ERROR 19:12:42 [INFO] ------------------------------------------------------------------------ 19:12:42 [INFO] null 19:12:42 [INFO] ------------------------------------------------------------------------ 19:12:42 [INFO] Trace 19:12:42 java.lang.NullPointerException 19:12:42 at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:118) 19:12:42 at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103) 19:12:42 at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) 19:12:42 at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109) 19:12:42 at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:161) 19:12:42 at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:118) 19:12:42 at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:72) 19:12:42 at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105) 19:12:42 at org.apache.tools.tar.TarBuffer.writeBlock(TarBuffer.java:410) 19:12:42 at org.apache.tools.tar.TarBuffer.writeRecord(TarBuffer.java:388) 19:12:42 at hudson.org.apache.tools.tar.TarOutputStream.write(TarOutputStream.java:337) 19:12:42 at hudson.util.io.TarArchiver.visit(TarArchiver.java:103) 19:12:42 at hudson.util.DirScanner$Glob.scan(DirScanner.java:104) 19:12:42 at hudson.FilePath.writeToTar(FilePath.java:1543) 19:12:42 at hudson.FilePath.copyRecursiveTo(FilePath.java:1470) 19:12:42 at hudson.FilePath.copyRecursiveTo(FilePath.java:1399) 19:12:42 at hudson.maven.reporters.MavenSiteArchiver.postExecute(MavenSiteArchiver.java:81) 19:12:42 at hudson.maven.MavenModuleSetBuild$Builder.postExecute(MavenModuleSetBuild.java:828) 19:12:42 at hudson.maven.MavenBuilder$Adapter.postExecute(MavenBuilder.java:300) 19:12:42 at hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.callPost(PluginManagerInterceptor.java:170) 19:12:42 at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:183) 19:12:42 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) 19:12:42 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) 19:12:42 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) 19:12:42 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) 19:12:42 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) 19:12:42 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) 19:12:42 at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65) 19:12:42 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) 19:12:42 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) 19:12:42 at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) 19:12:42 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 19:12:42 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 19:12:42 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 19:12:42 at java.lang.reflect.Method.invoke(Method.java:597) 19:12:42 at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) 19:12:42 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) 19:12:42 at hudson.maven.agent.Main.launch(Main.java:165) 19:12:42 at hudson.maven.MavenBuilder.call(MavenBuilder.java:165) 19:12:42 at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:750) 19:12:42 at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:694) 19:12:42 at hudson.remoting.UserRequest.perform(UserRequest.java:114) 19:12:42 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 19:12:42 at hudson.remoting.Request$2.run(Request.java:270) 19:12:42 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 19:12:42 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 19:12:42 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 19:12:42 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 19:12:42 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 19:12:42 at java.lang.Thread.run(Thread.java:619) Build fails after that.

    Jenkins JIRA | 6 years ago | lynggaard
    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.remoting.ProxyOutputStream._write()
    2. Hudson :: Remoting Layer
      ProxyOutputStream.write
      1. hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:118)
      2. hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103)
      2 frames
    3. Java RT
      FilterOutputStream.close
      1. java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
      2. java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
      3. java.io.FilterOutputStream.close(FilterOutputStream.java:140)
      4. java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:149)
      5. java.io.FilterOutputStream.close(FilterOutputStream.java:143)
      5 frames
    4. Ant
      TarBuffer.close
      1. org.apache.tools.tar.TarBuffer.close(TarBuffer.java:450)
      1 frame
    5. Hudson
      FilePath.copyRecursiveTo
      1. hudson.org.apache.tools.tar.TarOutputStream.close(TarOutputStream.java:150)
      2. hudson.util.io.TarArchiver.close(TarArchiver.java:114)
      3. hudson.FilePath.writeToTar(FilePath.java:1545)
      4. hudson.FilePath.copyRecursiveTo(FilePath.java:1470)
      5. hudson.FilePath.copyRecursiveTo(FilePath.java:1399)
      5 frames
    6. hudson.plugins.copyartifact
      CopyArtifact.perform
      1. hudson.plugins.copyartifact.FilePathCopyMethod.init(FilePathCopyMethod.java:56)
      2. hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:221)
      3. hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:199)
      3 frames
    7. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
      3. hudson.model.Build$RunnerImpl.build(Build.java:174)
      4. hudson.model.Build$RunnerImpl.doRun(Build.java:138)
      5. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      6. hudson.model.Run.run(Run.java:1257)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:127)
      9 frames