[ 
https://issues.apache.org/activemq/browse/SMXCOMP-592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54008#action_54008
 ] 

Gert Vanthienen commented on SMXCOMP-592:
-----------------------------------------

Apparently, there's yet another scenario which can leads to the tests being 
stalled (cfr. 
http://hudson.zones.apache.org/hudson/job/ServiceMix-Components/124/).  The log 
snippet below for an example of a test that stalled during the startup of the 
container/broker.

{noformat}
2009-09-04 00:14:48,309 [main           ] INFO  ComponentMBeanImpl             
- Initializing component: receiver
2009-09-04 00:14:48,309 [main           ] DEBUG ComponentContextImpl           
- Component: receiver activated endpoint: receiver : endpoint
2009-09-04 00:14:48,309 [main           ] DEBUG WSDL1Processor                 
- Endpoint ServiceEndpoint[service=receiver,endpoint=endpoint] has no service 
description
2009-09-04 00:14:48,309 [main           ] DEBUG WSDL2Processor                 
- Endpoint ServiceEndpoint[service=receiver,endpoint=endpoint] has no service 
description
2009-09-04 00:14:48,309 [main           ] INFO  ComponentMBeanImpl             
- Starting component: receiver
2009-09-04 00:14:48,309 [main           ] INFO  JBIContainer                   
- Activating component for: [container=ServiceMix,name=echo] with service: null 
component: org.apache.servicemix.components.util.echocompon...@10d9151
2009-09-04 00:14:48,309 [main           ] INFO  ComponentMBeanImpl             
- Initializing component: echo
2009-09-04 00:14:48,309 [main           ] DEBUG ComponentContextImpl           
- Component: echo activated endpoint: echo : endpoint
2009-09-04 00:14:48,309 [main           ] DEBUG WSDL1Processor                 
- Endpoint ServiceEndpoint[service=echo,endpoint=endpoint] has no service 
description
2009-09-04 00:14:48,309 [main           ] DEBUG WSDL2Processor                 
- Endpoint ServiceEndpoint[service=echo,endpoint=endpoint] has no service 
description
2009-09-04 00:14:48,309 [main           ] INFO  ComponentMBeanImpl             
- Starting component: echo
2009-09-04 00:14:48,310 [main           ] INFO  JBIContainer                   
- Activating component for: [container=ServiceMix,name=servicemix-jms] with 
service: null component: org.apache.servicemix.jms.jmscompon...@74db2c
2009-09-04 00:14:48,310 [main           ] INFO  ComponentMBeanImpl             
- Initializing component: servicemix-jms
2009-09-04 00:14:48,310 [main           ] DEBUG JmsComponent                   
- Initializing component
2009-09-04 00:14:48,312 [main           ] INFO  TransportConnector             
- Connector vm://localhost Started
2009-09-04 00:14:48,312 [main           ] DEBUG essionMessageListenerContainer 
- Established shared JMS Connection
2009-09-04 00:14:48,313 [://localhost#44] ERROR TransportConnection            
- Could not stop service: Transport Connection to: vm://localhost#50. Reason: 
java.lang.NullPointerException
java.lang.NullPointerException
        at 
org.apache.activemq.broker.TransportConnection.stopAsync(TransportConnection.java:917)
        at 
org.apache.activemq.broker.TransportConnection.stop(TransportConnection.java:902)
        at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
        at 
org.apache.activemq.broker.TransportConnector.stop(TransportConnector.java:270)
        at 
org.apache.activemq.util.ServiceSupport.dispose(ServiceSupport.java:43)
        at 
org.apache.activemq.transport.vm.VMTransportFactory.stopped(VMTransportFactory.java:213)
        at 
org.apache.activemq.transport.vm.VMTransportServer.stop(VMTransportServer.java:120)
        at 
org.apache.activemq.transport.vm.VMTransportServer$1.stop(VMTransportServer.java:83)
        at 
org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:64)
        at 
org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:64)
        at 
org.apache.activemq.transport.ResponseCorrelator.stop(ResponseCorrelator.java:120)
        at 
org.apache.activemq.util.ServiceSupport.dispose(ServiceSupport.java:43)
        at 
org.apache.activemq.ActiveMQConnection$5.run(ActiveMQConnection.java:1795)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
{noformat}

> JmsConsumerEndpointTest intermittently fails with NullPointerException
> ----------------------------------------------------------------------
>
>                 Key: SMXCOMP-592
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-592
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-jms
>    Affects Versions: servicemix-jms-2009.01
>            Reporter: Gert Vanthienen
>            Assignee: Gert Vanthienen
>            Priority: Minor
>             Fix For: servicemix-jms-2009.02
>
>
> The JmsConsumerEndpointTest sometimes fails with a NPE in the tearDown method:
> \\
> {code:xml}
>   <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>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to