]
Howard Gao closed JBMESSAGING-1801.
-----------------------------------
Resolution: Done
Note:
test
org.jboss.test.messaging.jms.TopicTest.testTopicNonDurableSubShutdown()
should be run manually to examine on the console log if NullPointerException has occurred.
This is because in the consumer.close() call exceptions are intentionally swallowed by
JBM. So there is no chance to get the test catch the exception and fail the test.
ServerConsumerEndpoint.localClose() throws NullPointerException
during shutdown
-------------------------------------------------------------------------------
Key: JBMESSAGING-1801
URL:
https://jira.jboss.org/jira/browse/JBMESSAGING-1801
Project: JBoss Messaging
Issue Type: Bug
Components: JMS Destination Manager
Affects Versions: 1.4.0.SP3.CP10, 1.4.6.GA
Environment: EJB2.1, EJB3
Reporter: Toshiya Kobayashi
Assignee: Howard Gao
Fix For: 1.4.0.SP3.CP11, 1.4.6.GA.SP1
Attachments: JBMESSAGING-1801.zip
In case I deployed a simple message driven bean which consumes a Topic,
ServerConsumerEndpoint.localClose() throws NullPointerException during shutdown.
You can repoduce it after deploying attached mdb and just shutdown JBoss instance.
http://anonsvn.jboss.org/repos/messaging/tags/JBossMessaging_1_4_6_GA/src...
: L542
===============
Queue queue = postOffice.getBindingForQueueName(queueName).queue;
===============
postOffice.getBindingForQueueName(queueName) returned null, because the queue had been
already removed by preceding TopicService.stopService().
server.log
=====================
2010-04-20 14:08:42,801 DEBUG [org.jboss.system.ServiceController] (JBoss Shutdown Hook)
stopping service: jboss.messaging.destination:service=Topic,name=control-signal
2010-04-20 14:08:42,802 DEBUG [org.jboss.jms.server.destination.TopicService] (JBoss
Shutdown Hook) Stopping jboss.messaging.destination:service=Topic,name=control-signal
2010-04-20 14:08:42,802 TRACE [org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore]
(JBoss Shutdown Hook) clearing security configuration for topic control-signal
2010-04-20 14:08:42,802 DEBUG [org.jboss.jms.server.DestinationJNDIMapper] (JBoss
Shutdown Hook) unregistered topic control-signal
2010-04-20 14:08:42,802 TRACE
[org.jboss.messaging.core.impl.postoffice.MessagingPostOffice] (JBoss Shutdown Hook) 0
unbind queue: 9c-54p1988g-1-wfx0988g-xvzp8f-100j3 all nodes false
2010-04-20 14:08:42,802 DEBUG
[org.jboss.jms.server.connectionfactory.ConnectionFactoryJNDIMapper] (JBoss Shutdown Hook)
Server[0].ConnFactoryJNDIMapper received notification from node 0
2010-04-20 14:08:42,802 TRACE [org.jboss.messaging.core.impl.ChannelSupport] (JBoss
Shutdown Hook) Queue[25673018/0/660-9c-54p1988g-1-wfx0988g-xvzp8f-100j3] removing all
references, there are 0
2010-04-20 14:08:42,802 TRACE [org.jboss.messaging.core.impl.ChannelSupport] (JBoss
Shutdown Hook) Queue[25673018/0/660-9c-54p1988g-1-wfx0988g-xvzp8f-100j3] done removing all
references, there are 0
2010-04-20 14:08:42,803 TRACE
[org.jboss.messaging.core.impl.postoffice.MessagingPostOffice] (JBoss Shutdown Hook) 0
unbind queue: bc-25p1988g-1-wfx0988g-xvzp8f-100j3 all nodes false
2010-04-20 14:08:42,803 DEBUG
[org.jboss.jms.server.connectionfactory.ConnectionFactoryJNDIMapper] (JBoss Shutdown Hook)
Server[0].ConnFactoryJNDIMapper received notification from node 0
2010-04-20 14:08:42,803 TRACE [org.jboss.messaging.core.impl.ChannelSupport] (JBoss
Shutdown Hook) Queue[23457041/0/661-bc-25p1988g-1-wfx0988g-xvzp8f-100j3] removing all
references, there are 0
2010-04-20 14:08:42,803 TRACE [org.jboss.messaging.core.impl.ChannelSupport] (JBoss
Shutdown Hook) Queue[23457041/0/661-bc-25p1988g-1-wfx0988g-xvzp8f-100j3] done removing all
references, there are 0
2010-04-20 14:08:42,803 INFO [org.jboss.jms.server.destination.TopicService] (JBoss
Shutdown Hook) Topic[/topic/control-signal] stopped
2010-04-20 14:08:42,803 DEBUG [org.jboss.jms.server.destination.TopicService] (JBoss
Shutdown Hook) Stopped jboss.messaging.destination:service=Topic,name=control-signal
2010-04-20 14:08:42,803 DEBUG [org.jboss.system.ServiceController] (JBoss Shutdown Hook)
destroying service: jboss.messaging.destination:service=Topic,name=control-signal
2010-04-20 14:08:42,803 DEBUG [org.jboss.jms.server.destination.TopicService] (JBoss
Shutdown Hook) Destroying jboss.messaging.destination:service=Topic,name=control-signal
2010-04-20 14:08:42,803 DEBUG [org.jboss.jms.server.destination.TopicService] (JBoss
Shutdown Hook) Destroyed jboss.messaging.destination:service=Topic,name=control-signal
...
2010-04-20 14:08:42,894 ERROR [org.jboss.messaging.util.ExceptionUtil] (JBoss Shutdown
Hook) ConsumerEndpoint[8c-54p1988g-1-wfx0988g-xvzp8f-100j3] close
[cc-u0f8988g-1-wfx0988g-xvzp8f-100j3]
java.lang.NullPointerException
at
org.jboss.jms.server.endpoint.ServerConsumerEndpoint.localClose(ServerConsumerEndpoint.java:542)
at
org.jboss.jms.server.endpoint.ServerConsumerEndpoint.close(ServerConsumerEndpoint.java:388)
at
org.jboss.jms.server.endpoint.advised.ConsumerAdvised.org$jboss$jms$server$endpoint$advised$ConsumerAdvised$close$aop(ConsumerAdvised.java:59)
at
org.jboss.jms.server.endpoint.advised.ConsumerAdvised$close_N4742752445160157748.invokeNext(ConsumerAdvised$close_N4742752445160157748.java)
at
org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
at
org.jboss.jms.server.endpoint.advised.ConsumerAdvised$close_N4742752445160157748.invokeNext(ConsumerAdvised$close_N4742752445160157748.java)
at
org.jboss.jms.server.endpoint.advised.ConsumerAdvised.close(ConsumerAdvised.java)
at org.jboss.jms.wireformat.CloseRequest.serverInvoke(CloseRequest.java:66)
at
org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:157)
...]
at org.jboss.ejb3.EJBContainer.stop(EJBContainer.java:937)
...
at org.jboss.system.ServiceController.stop(ServiceController.java:510)
...
at
org.jboss.system.server.profileservice.repository.AbstractProfileService.deactivateProfile(AbstractProfileService.java:448)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.deactivateProfiles(ProfileServiceBootstrap.java:381)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.shutdown(ProfileServiceBootstrap.java:339)
at
org.jboss.bootstrap.AbstractServerImpl.shutdownServer(AbstractServerImpl.java:571)
at
org.jboss.bootstrap.AbstractServerImpl$ShutdownHook.run(AbstractServerImpl.java:909)
=======================
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: