java.lang.NullPointerException

Sonatype JIRA | Peter Lynch | 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

    https://builds.sonatype.org/job/nexus-oss/645/jdk=java-6x,label=linux/testReport/junit/org.sonatype.nexus.error.reporting/DefaultErrorReportingManagerLRTest/testTaskFailure/ {noformat} org.sonatype.nexus.error.reporting.DefaultErrorReportingManagerLRTest.testTaskFailure (from DefaultErrorReportingManagerLRTest) Failing for the past 1 build (Since #645 ) Took 0.75 sec. add description Stacktrace java.lang.NullPointerException at org.sonatype.nexus.error.reporting.DefaultErrorReportingManagerLRTest.testTaskFailure(DefaultErrorReportingManagerLRTest.java:380) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68) Standard Output 02:16:36.614 [main] WARN o.s.s.c.s.FileSecurityConfigurationSource - No configuration file in place, copying the default one and continuing with it. 02:16:36.615 [main] INFO o.s.s.c.s.FileSecurityConfigurationSource - Loading Security configuration from /opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-app/target/plexus-home--216141768649138363/nexus-work/conf/security-configuration.xml == Shutting down SECURITY! 02:16:36.617 [main] INFO o.s.n.c.a.DefaultNexusConfiguration - Loading Nexus Configuration... 02:16:36.619 [main] INFO o.s.n.c.s.StaticConfigurationSource - Configuration loaded succesfully. 02:16:36.619 [main] WARN o.s.n.c.s.FileConfigurationSource - No configuration file in place, copying the default one and continuing with it. 02:16:36.628 [main] INFO o.s.n.c.s.FileConfigurationSource - Loading Nexus configuration from /opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-app/target/plexus-home--216141768649138363/nexus-work/conf/nexus.xml 02:16:36.629 [main] INFO o.s.n.c.s.FileConfigurationSource - Configuration loaded succesfully. 02:16:36.637 [main] INFO o.s.n.c.v.DefaultApplicationConfigurationValidator - Nexus configuration validated succesfully. 02:16:36.640 [main] INFO o.s.n.c.a.DefaultNexusConfiguration - Applying Nexus Configuration... 02:16:36.641 [main] INFO o.s.n.c.a.DefaultNexusConfiguration - Applying Nexus Configuration... 02:16:36.641 [main] INFO o.s.n.c.v.DefaultApplicationConfigurationValidator - Nexus configuration validated succesfully. == Shutting down SECURITY! 02:16:36.681 [main] INFO org.sonatype.nexus.DefaultNexus - ------------------------------------------------- Initializing Nexus (OSS), Version 1.10.0-SNAPSHOT ------------------------------------------------- 02:16:36.681 [main] INFO org.sonatype.nexus.DefaultNexus - Activating locally installed plugins... [INFO] Creating and configuring EHCache manager with classpath:/ehcache.xml, using disk store 'none' 02:16:36.697 [main] INFO o.s.n.c.a.DefaultNexusConfiguration - Loading Nexus Configuration... 02:16:36.698 [main] INFO o.s.n.c.s.StaticConfigurationSource - Configuration loaded succesfully. 02:16:36.698 [main] INFO o.s.n.c.s.FileConfigurationSource - Loading Nexus configuration from /opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-app/target/plexus-home--216141768649138363/nexus-work/conf/nexus.xml 02:16:36.700 [main] INFO o.s.n.c.s.FileConfigurationSource - Configuration loaded succesfully. 02:16:36.707 [main] INFO o.s.n.c.v.DefaultApplicationConfigurationValidator - Nexus configuration validated succesfully. 02:16:36.717 [main] INFO o.s.n.c.a.DefaultNexusConfiguration - Applying Nexus Configuration... 02:16:36.718 [main] INFO o.s.s.c.s.FileSecurityConfigurationSource - Loading Security configuration from /opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-app/target/plexus-home--216141768649138363/nexus-work/conf/security-configuration.xml 02:16:36.719 [main] INFO o.a.s.cache.ehcache.EhCacheManager - Cache with name 'org.sonatype.security.realms.XmlAuthenticatingRealm.authorizationCache.44' does not yet exist. Creating now. 02:16:36.719 [main] INFO o.a.s.cache.ehcache.EhCacheManager - Added EhCache named [org.sonatype.security.realms.XmlAuthenticatingRealm.authorizationCache.44] 02:16:36.719 [main] INFO o.a.s.cache.ehcache.EhCacheManager - Cache with name 'org.sonatype.security.realms.XmlAuthorizingRealm.authorizationCache.45' does not yet exist. Creating now. 02:16:36.719 [main] INFO o.a.s.cache.ehcache.EhCacheManager - Added EhCache named [org.sonatype.security.realms.XmlAuthorizingRealm.authorizationCache.45] 02:16:36.719 [main] INFO o.s.n.p.r.DefaultRepositoryTypeRegistry - Registered default repository types. 02:16:36.735 [main] INFO o.s.n.p.a.DefaultLSAttributeStorage - Default LS AttributeStorage in place. 02:16:36.736 [main] INFO o.s.n.p.a.LegacyFSAttributeStorage - Legacy FS AttributeStorage in place. 02:16:36.736 [main] INFO o.s.n.p.a.TransitioningAttributeStorage - Transitioning AttributeStorage in place. 02:16:36.750 [main] INFO o.s.n.p.r.DefaultRepositoryRegistry - Added repository ID='central' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenProxyRepository') 02:16:36.759 [main] INFO o.s.n.p.r.DefaultRepositoryRegistry - Added repository ID='google' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenProxyRepository') 02:16:36.767 [main] INFO o.s.n.p.r.DefaultRepositoryRegistry - Added repository ID='apache-snapshots' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenProxyRepository') 02:16:36.777 [main] INFO o.s.n.p.r.DefaultRepositoryRegistry - Added repository ID='codehaus-snapshots' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenProxyRepository') 02:16:36.781 [main] INFO o.s.n.p.r.DefaultRepositoryRegistry - Added repository ID='releases' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenHostedRepository') 02:16:36.785 [main] INFO o.s.n.p.r.DefaultRepositoryRegistry - Added repository ID='snapshots' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenHostedRepository') 02:16:36.790 [main] INFO o.s.n.p.r.DefaultRepositoryRegistry - Added repository ID='thirdparty' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.maven.MavenHostedRepository') 02:16:36.795 [main] INFO o.s.n.p.r.DefaultRepositoryRegistry - Added repository ID='central-m1' (contentClass='maven1', mainFacet='org.sonatype.nexus.proxy.maven.MavenShadowRepository') 02:16:36.804 [main] INFO o.s.n.p.r.DefaultRepositoryRegistry - Added repository ID='public' (contentClass='maven2', mainFacet='org.sonatype.nexus.proxy.repository.GroupRepository') 02:16:36.804 [main] INFO o.s.s.DefaultTaskConfigManager - 0 task(s) to load. 02:16:36.804 [main] INFO org.sonatype.nexus.DefaultNexus - Nexus Work Directory : /opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-app/target/plexus-home--216141768649138363/nexus-work 02:16:36.805 [main] INFO org.sonatype.nexus.DefaultNexus - Started Nexus (version 1.10.0-SNAPSHOT OSS) 02:16:36.805 [main] WARN o.s.s.m.s.FileModelConfigurationSource - No configuration file in place, copying the default one and continuing with it. 02:16:36.806 [main] INFO o.s.s.m.s.FileModelConfigurationSource - Loading Security configuration from /opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-app/target/plexus-home--216141768649138363/nexus-work/conf/security.xml 02:16:36.851 [main] INFO o.s.n.c.a.DefaultNexusConfiguration - Applying Nexus Configuration... 02:16:36.851 [main] INFO o.s.n.c.v.DefaultApplicationConfigurationValidator - Nexus configuration validated succesfully. 02:16:37.052 [nxevthost-70-thread-2] ERROR o.s.n.e.r.DefaultErrorReportingManager - Detected Error in Nexus java.lang.RuntimeException: Runtime exception 13440cb5e00 at org.sonatype.nexus.error.reporting.ExceptionTask.doRun(ExceptionTask.java:35) ~[test-classes/:na] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:152) ~[classes/:na] at org.sonatype.nexus.error.reporting.DefaultErrorReportingManagerLRTest.doCall(DefaultErrorReportingManagerLRTest.java:396) ~[test-classes/:na] at org.sonatype.nexus.error.reporting.DefaultErrorReportingManagerLRTest.testTaskFailure(DefaultErrorReportingManagerLRTest.java:374) ~[test-classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_25] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_25] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) ~[junit-dep-4.8.2.jar:na] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) ~[junit-dep-4.8.2.jar:na] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) ~[junit-dep-4.8.2.jar:na] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) ~[junit-dep-4.8.2.jar:na] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) ~[junit-dep-4.8.2.jar:na] at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) ~[junit-dep-4.8.2.jar:na] at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) ~[junit-dep-4.8.2.jar:na] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) ~[junit-dep-4.8.2.jar:na] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) ~[junit-dep-4.8.2.jar:na] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) ~[junit-dep-4.8.2.jar:na] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) ~[junit-dep-4.8.2.jar:na] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) ~[junit-dep-4.8.2.jar:na] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) ~[junit-dep-4.8.2.jar:na] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) ~[junit-dep-4.8.2.jar:na] at org.junit.runners.ParentRunner.run(ParentRunner.java:236) ~[junit-dep-4.8.2.jar:na] at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) ~[na:na] at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123) ~[na:na] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104) ~[na:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_25] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_25] at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) ~[surefire-api-2.10.jar:2.10] at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) ~[surefire-booter-2.10.jar:2.10] at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175) ~[surefire-booter-2.10.jar:2.10] at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107) ~[surefire-booter-2.10.jar:2.10] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68) ~[surefire-booter-2.10.jar:2.10] [INFO] Shutting down EHCache manager. 02:16:37.251 [main] INFO org.sonatype.nexus.DefaultNexus - Stopped Nexus (version 1.10.0-SNAPSHOT OSS) {noformat}

    Sonatype JIRA | 5 years ago | Peter Lynch
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.sonatype.nexus.error.reporting.DefaultErrorReportingManagerLRTest.testTaskFailure()
    2. org.sonatype.nexus
      DefaultErrorReportingManagerLRTest.testTaskFailure
      1. org.sonatype.nexus.error.reporting.DefaultErrorReportingManagerLRTest.testTaskFailure(DefaultErrorReportingManagerLRTest.java:380)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. JUnit
      ParentRunner.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      6. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      7. org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
      8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
      9. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
      10. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      11. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      12. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      13. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      14. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      15. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      15 frames
    5. JUnit4 Provider
      JUnit4Provider.invoke
      1. org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
      3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
      3 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    7. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
      2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
      3. org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
      4. org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
      5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
      5 frames