Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-710 Intermittent failure in QuartzComponentTest
  3. SMXCOMP-592

JmsConsumerEndpointTest intermittently fails with NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • servicemix-jms-2009.01
    • 2013.02
    • servicemix-jms
    • None

    Description

      The JmsConsumerEndpointTest sometimes fails with a NPE in the tearDown method:

        <testcase time="0.045" name="testConsumerServer">
          <error type="java.lang.NullPointerException">java.lang.NullPointerException
      	at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue.stop(SedaQueue.java:159)
      	at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue.shutDown(SedaQueue.java:168)
      	at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.shutDown(SedaFlow.java:140)
      	at org.apache.servicemix.jbi.nmr.DefaultBroker.shutDown(DefaultBroker.java:191)
      	at org.apache.servicemix.jbi.container.JBIContainer.shutDown(JBIContainer.java:719)
      	at org.apache.servicemix.jms.AbstractJmsTestSupport.tearDown(AbstractJmsTestSupport.java:63)
      	at junit.framework.TestCase.runBare(TestCase.java:140)
      	at junit.framework.TestResult$1.protect(TestResult.java:110)
      	at junit.framework.TestResult.runProtected(TestResult.java:128)
      	at junit.framework.TestResult.run(TestResult.java:113)
      	at junit.framework.TestCase.run(TestCase.java:124)
      	at junit.framework.TestSuite.runTest(TestSuite.java:232)
      	at junit.framework.TestSuite.run(TestSuite.java:227)
      	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
      	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
      	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
      	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
      	at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
      	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:585)
      	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261)
      	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:875)
          </error>
        </testcase>
      

      Attachments

        Activity

          People

            gertvanthienen Gert Vanthienen
            gertvanthienen Gert Vanthienen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: