Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-5933

NullPointerException in SelectorAwareVirtualTopicInterceptor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 5.11.1, 5.11.2, 5.12.0
    • 5.12.1, 5.11.3, 5.13.0
    • Broker
    • None

    Description

      Check the following call stack, should check whether selectors is null first

      javax.jms.JMSException: java.lang.NullPointerException
      at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:54)
      at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1420)
      at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1346)
      at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1904)
      at org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:288)
      at org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:223)
      at org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:241)
      at Active.Sample.SampleSender.sendTopic(SampleSender.java:59)
      at Active.Sample.SampleActiveMQTest.main(SampleActiveMQTest.java:15)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
      Caused by: java.lang.NullPointerException
      at org.apache.activemq.broker.region.virtual.SelectorAwareVirtualTopicInterceptor.tryMatchingCachedSubs(SelectorAwareVirtualTopicInterceptor.java:90)
      at org.apache.activemq.broker.region.virtual.SelectorAwareVirtualTopicInterceptor.matchesSomeConsumer(SelectorAwareVirtualTopicInterceptor.java:76)
      at org.apache.activemq.broker.region.virtual.SelectorAwareVirtualTopicInterceptor.send(SelectorAwareVirtualTopicInterceptor.java:57)
      at org.apache.activemq.broker.region.virtual.VirtualTopicInterceptor.send(VirtualTopicInterceptor.java:53)
      at org.apache.activemq.broker.region.AbstractRegion.send(AbstractRegion.java:419)
      at org.apache.activemq.broker.region.RegionBroker.send(RegionBroker.java:468)
      at org.apache.activemq.broker.jmx.ManagedRegionBroker.send(ManagedRegionBroker.java:297)
      at org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:152)
      at org.apache.activemq.broker.CompositeDestinationBroker.send(CompositeDestinationBroker.java:96)
      at org.apache.activemq.broker.TransactionBroker.send(TransactionBroker.java:307)
      at org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:152)
      at org.apache.activemq.broker.MutableBrokerFilter.send(MutableBrokerFilter.java:157)
      at org.apache.activemq.broker.TransportConnection.processMessage(TransportConnection.java:541)
      at org.apache.activemq.command.ActiveMQMessage.visit(ActiveMQMessage.java:768)
      at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:334)
      at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:188)
      at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)
      at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
      at org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:270)
      at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
      at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)
      at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)
      at java.lang.Thread.run(Thread.java:745)

      Attachments

        Activity

          People

            gtully Gary Tully
            alt_alt JIE CHEN
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: