activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (AMQ-1930) NPE during shutdown of embedded activemq
Date Wed, 13 Jul 2011 18:01:04 GMT

     [ https://issues.apache.org/jira/browse/AMQ-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Timothy Bish closed AMQ-1930.
-----------------------------

    Resolution: Cannot Reproduce

Not test case presented and so far no tests seems to produce this error.

> NPE during shutdown of embedded activemq
> ----------------------------------------
>
>                 Key: AMQ-1930
>                 URL: https://issues.apache.org/jira/browse/AMQ-1930
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.2.0
>         Environment: revision 675393 of trunk, ActiveMQ 5.2.0
>            Reporter: Scott Stanton
>             Fix For: NEEDS_REVIEWED
>
>
> I received the following exception from the VMTransport thread when shutting down the
broker:
> {code}
> Async error occurred: java.lang.NullPointerException
> java.lang.NullPointerException
> 	at org.apache.activemq.broker.TransportConnection.processRemoveConsumer(TransportConnection.java:542)
> 	at org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:64)
> 	at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:292)
> 	at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:180)
> 	at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:104)
> 	at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)
> 	at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:205)
> 	at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
> 	at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
> 	at java.lang.Thread.run(Thread.java:619)
> {code}
> The failure occurred at the following lines of code:
> {code}
>         TransportConnectionState cs = lookupConnectionState(connectionId);
>         SessionState ss = cs.getSessionState(sessionId);
> {code}
> It appears that there is a race during shutdown where the connection state is discarded
before the last consumer is removed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message