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

NullPointerException with IndividualDeadLetterStrategy and TimeStampBrokerPlugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.8.0
    • 5.9.0
    • Broker
    • None

    Description

      When using the IndividualDeadLetterStrategy and and the TimestampBrokerPlugin if a Message is forwarded from one Queue to another over the VM Transport you get a NullPointerException

      We are getting the null pointer below when using TimeStampingBrokerPlugin & IndividualDeadLetterStrategy:
      
      Caused by: java.lang.NullPointerException
      	at org.apache.activemq.broker.region.policy.IndividualDeadLetterStrategy.getDeadLetterQueueFor(IndividualDeadLetterStrategy.java:44)
      	at org.apache.activemq.broker.util.TimeStampingBrokerPlugin.isDestinationDLQ(TimeStampingBrokerPlugin.java:148)
      	at org.apache.activemq.broker.util.TimeStampingBrokerPlugin.send(TimeStampingBrokerPlugin.java:105)
      	at org.apache.activemq.broker.MutableBrokerFilter.send(MutableBrokerFilter.java:135)
      	at org.apache.activemq.broker.TransportConnection.processMessage(TransportConnection.java:450)
      	at org.apache.activemq.command.ActiveMQMessage.visit(ActiveMQMessage.java:680)
      	at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:294)
      	at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:152)
      	at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:116)
      	at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)
      	at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:241)
      	at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:129)
      	at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:47)
      
      

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            tabish Timothy A. Bish
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: