Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.4.0
-
None
-
None
Description
During testing, ran into the following NullPointerException:
06-15-2010 21:06:44: ERROR: javax.jms.JMSException: java.lang.NullPointerException
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1286)
at org.apache.activemq.ActiveMQSession.syncSendPacket(ActiveMQSession.java:1873)
at org.apache.activemq.ActiveMQMessageConsumer.(ActiveMQMessageConsumer.java:249)
at org.apache.activemq.ActiveMQTopicSubscriber.(ActiveMQTopicSubscriber.java:117)
at org.apache.activemq.ActiveMQSession.createDurableSubscriber(ActiveMQSession.java:1275)
at org.apache.activemq.ActiveMQSession.createDurableSubscriber(ActiveMQSession.java:1220)
at org.apache.activemq.ra.ManagedSessionProxy.createDurableSubscriber(ManagedSessionProxy.java:175)
at org.apache.activemq.ActiveMQTopicSession.createDurableSubscriber(ActiveMQTopicSession.java:147)
...
Caused by: java.lang.NullPointerException
at org.apache.activemq.broker.region.Topic.deleteSubscription(Topic.java:168)
at org.apache.activemq.broker.region.TopicRegion.addConsumer(TopicRegion.java:86)
at org.apache.activemq.broker.region.RegionBroker.addConsumer(RegionBroker.java:407)
at org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:89)
at org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:89)
at org.apache.activemq.advisory.AdvisoryBroker.addConsumer(AdvisoryBroker.java:91)
at org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:89)
at org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:89)
at org.apache.activemq.broker.MutableBrokerFilter.addConsumer(MutableBrokerFilter.java:95)
at org.apache.activemq.broker.TransportConnection.processAddConsumer(TransportConnection.java:543)
at org.apache.activemq.command.ConsumerInfo.visit(ConsumerInfo.java:349)
at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:306)
at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:182)
at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69)
at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:217)
at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:219)
at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:201)
at java.lang.Thread.run(Thread.java:619)
Fix seems pretty straightforward.