java.lang.NullPointerException

Sonatype JIRA | Tamás Cservenák | 7 years ago
  1. 0

    Lot of NPEs during UT runs: {noformat} [WARNING] EventInspector hint='NexusStartedEvent' class='org.sonatype.nexus.events.NexusStartedEventInspector' had problem inspecting an event='class org.sonatype.nexus.proxy.events.NexusStartedEvent' java.lang.NullPointerException at java.io.File.<init>(File.java:222) at org.sonatype.nexus.log.Log4jLogConfigurationSource.getSource(Log4jLogConfigurationSource.java:31) at org.sonatype.nexus.log.Log4jLogConfigurationSource.getSource(Log4jLogConfigurationSource.java:23) at org.sonatype.nexus.log.Log4jLogConfiguration.load(Log4jLogConfiguration.java:82) at org.sonatype.nexus.log.Log4jLogManager.getLogConfig(Log4jLogManager.java:160) at org.sonatype.nexus.events.NexusStartedEventInspector.ensureErrorWarningAppender(NexusStartedEventInspector.java:78) at org.sonatype.nexus.events.NexusStartedEventInspector.inspect(NexusStartedEventInspector.java:51) at org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:48) at org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:62) at org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55) at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:733) at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:647) at org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase.execute(StartPhase.java:33) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:97) at org.codehaus.plexus.component.manager.AbstractComponentManager.start(AbstractComponentManager.java:167) at org.codehaus.plexus.component.builder.XBeanComponentBuilder.startComponentLifecycle(XBeanComponentBuilder.java:280) at org.codehaus.plexus.component.builder.XBeanComponentBuilder.build(XBeanComponentBuilder.java:129) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:181) at org.codehaus.plexus.component.manager.SingletonComponentManager.getComponent(SingletonComponentManager.java:67) at org.codehaus.plexus.DefaultComponentRegistry.getComponent(DefaultComponentRegistry.java:351) at org.codehaus.plexus.DefaultComponentRegistry.lookup(DefaultComponentRegistry.java:178) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:383) at org.codehaus.plexus.PlexusTestCase.lookup(PlexusTestCase.java:208) at org.sonatype.nexus.rest.repositories.RepositoryCreateUpdateTest.setUp(RepositoryCreateUpdateTest.java:40) at junit.framework.TestCase.runBare(TestCase.java:128) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) 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.junit.JUnitTestSet.execute(JUnitTestSet.java:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) 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.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) {noformat}

    Sonatype JIRA | 7 years ago | Tamás Cservenák
    java.lang.NullPointerException
  2. 0

    Lot of NPEs during UT runs: {noformat} [WARNING] EventInspector hint='NexusStartedEvent' class='org.sonatype.nexus.events.NexusStartedEventInspector' had problem inspecting an event='class org.sonatype.nexus.proxy.events.NexusStartedEvent' java.lang.NullPointerException at java.io.File.<init>(File.java:222) at org.sonatype.nexus.log.Log4jLogConfigurationSource.getSource(Log4jLogConfigurationSource.java:31) at org.sonatype.nexus.log.Log4jLogConfigurationSource.getSource(Log4jLogConfigurationSource.java:23) at org.sonatype.nexus.log.Log4jLogConfiguration.load(Log4jLogConfiguration.java:82) at org.sonatype.nexus.log.Log4jLogManager.getLogConfig(Log4jLogManager.java:160) at org.sonatype.nexus.events.NexusStartedEventInspector.ensureErrorWarningAppender(NexusStartedEventInspector.java:78) at org.sonatype.nexus.events.NexusStartedEventInspector.inspect(NexusStartedEventInspector.java:51) at org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:48) at org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:62) at org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55) at org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:733) at org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:647) at org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase.execute(StartPhase.java:33) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:97) at org.codehaus.plexus.component.manager.AbstractComponentManager.start(AbstractComponentManager.java:167) at org.codehaus.plexus.component.builder.XBeanComponentBuilder.startComponentLifecycle(XBeanComponentBuilder.java:280) at org.codehaus.plexus.component.builder.XBeanComponentBuilder.build(XBeanComponentBuilder.java:129) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:181) at org.codehaus.plexus.component.manager.SingletonComponentManager.getComponent(SingletonComponentManager.java:67) at org.codehaus.plexus.DefaultComponentRegistry.getComponent(DefaultComponentRegistry.java:351) at org.codehaus.plexus.DefaultComponentRegistry.lookup(DefaultComponentRegistry.java:178) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:383) at org.codehaus.plexus.PlexusTestCase.lookup(PlexusTestCase.java:208) at org.sonatype.nexus.rest.repositories.RepositoryCreateUpdateTest.setUp(RepositoryCreateUpdateTest.java:40) at junit.framework.TestCase.runBare(TestCase.java:128) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) 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.junit.JUnitTestSet.execute(JUnitTestSet.java:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) 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.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) {noformat}

    Sonatype JIRA | 7 years ago | Tamás Cservenák
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

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 java.io.File.<init>()
  2. Java RT
    File.<init>
    1. java.io.File.<init>(File.java:222)
    1 frame
  3. ${project.groupId}:${project.artifactId}
    DefaultEventInspectorHost.onEvent
    1. org.sonatype.nexus.log.Log4jLogConfigurationSource.getSource(Log4jLogConfigurationSource.java:31)
    2. org.sonatype.nexus.log.Log4jLogConfigurationSource.getSource(Log4jLogConfigurationSource.java:23)
    3. org.sonatype.nexus.log.Log4jLogConfiguration.load(Log4jLogConfiguration.java:82)
    4. org.sonatype.nexus.log.Log4jLogManager.getLogConfig(Log4jLogManager.java:160)
    5. org.sonatype.nexus.events.NexusStartedEventInspector.ensureErrorWarningAppender(NexusStartedEventInspector.java:78)
    6. org.sonatype.nexus.events.NexusStartedEventInspector.inspect(NexusStartedEventInspector.java:51)
    7. org.sonatype.nexus.events.DefaultEventInspectorHost.processEvent(DefaultEventInspectorHost.java:48)
    8. org.sonatype.nexus.events.DefaultEventInspectorHost.onEvent(DefaultEventInspectorHost.java:62)
    8 frames
  4. ${project.groupId}:${project.artifactId}
    AbstractSimpleEventMulticaster.notifyEventListeners
    1. org.sonatype.plexus.appevents.AbstractSimpleEventMulticaster.notifyEventListeners(AbstractSimpleEventMulticaster.java:55)
    1 frame
  5. ${project.groupId}:${project.artifactId}
    DefaultNexus.start
    1. org.sonatype.nexus.DefaultNexus.startService(DefaultNexus.java:733)
    2. org.sonatype.nexus.DefaultNexus.start(DefaultNexus.java:647)
    2 frames
  6. Plexus
    PlexusTestCase.lookup
    1. org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase.execute(StartPhase.java:33)
    2. org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:97)
    3. org.codehaus.plexus.component.manager.AbstractComponentManager.start(AbstractComponentManager.java:167)
    4. org.codehaus.plexus.component.builder.XBeanComponentBuilder.startComponentLifecycle(XBeanComponentBuilder.java:280)
    5. org.codehaus.plexus.component.builder.XBeanComponentBuilder.build(XBeanComponentBuilder.java:129)
    6. org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:181)
    7. org.codehaus.plexus.component.manager.SingletonComponentManager.getComponent(SingletonComponentManager.java:67)
    8. org.codehaus.plexus.DefaultComponentRegistry.getComponent(DefaultComponentRegistry.java:351)
    9. org.codehaus.plexus.DefaultComponentRegistry.lookup(DefaultComponentRegistry.java:178)
    10. org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:383)
    11. org.codehaus.plexus.PlexusTestCase.lookup(PlexusTestCase.java:208)
    11 frames
  7. Nexus Core
    RepositoryCreateUpdateTest.setUp
    1. org.sonatype.nexus.rest.repositories.RepositoryCreateUpdateTest.setUp(RepositoryCreateUpdateTest.java:40)
    1 frame
  8. JUnit
    TestSuite.run
    1. junit.framework.TestCase.runBare(TestCase.java:128)
    2. junit.framework.TestResult$1.protect(TestResult.java:106)
    3. junit.framework.TestResult.runProtected(TestResult.java:124)
    4. junit.framework.TestResult.run(TestResult.java:109)
    5. junit.framework.TestCase.run(TestCase.java:120)
    6. junit.framework.TestSuite.runTest(TestSuite.java:230)
    7. junit.framework.TestSuite.run(TestSuite.java:225)
    7 frames
  9. 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
  10. org.apache.maven
    JUnitTestSet.execute
    1. org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
    1 frame
  11. SureFire
    Surefire.run
    1. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
    2. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
    3. org.apache.maven.surefire.Surefire.run(Surefire.java:177)
    3 frames
  12. 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
  13. SureFire
    SurefireBooter.main
    1. org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
    2. org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
    2 frames