Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:
      None

      Description

      Lot of NPEs during UT runs:

      [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)
      

        Attachments

          Activity

            People

            • Assignee:
              cstamas Tamás Cservenák
              Reporter:
              cstamas Tamás Cservenák
              Last Updated By:
              Rich Seddon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response:

                Time Tracking

                Estimated:
                Original Estimate - 1h Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1.5h
                1.5h