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

NullPointerException in ActiveMQSession.rollback()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 5.5.1, 5.6.0, 5.7.0
    • 5.x
    • JMS client
    • None

    Description

      Sometimes we get this exception:

      java.lang.NullPointerException
      at org.apache.activemq.ActiveMQSession.rollback(ActiveMQSession.java:581)
      at com.barra.cp.common.activemq.MultiQueueReceiver.rollback(MultiQueueReceiver.java:212)
      at com.barra.cp.common.activemq.MultiQueueReceiver.onMessage(MultiQueueReceiver.java:185)

      The synchronized dispose() method nulls the transactionContext and sets closed to true. In many places in the code, not synchronized code checks closed member variable and later references transactionContext, which can become null by that time.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vpesochi Vadim Pesochinskiy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: