ActiveMQ
  1. ActiveMQ
  2. AMQ-4475

NullPointerException with IndividualDeadLetterStrategy and TimeStampBrokerPlugin

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.8.0
    • Fix Version/s: 5.9.0
    • Component/s: Broker
    • Labels:
      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)
      
      

        Activity

          People

          • Assignee:
            Timothy Bish
            Reporter:
            Timothy Bish
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development