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

" java.lang.ClassCastException: org.apache.activemq.command.ExceptionResponse cannot be cast to org.apache.activemq.command.IntegerResponse, attempting to automatically reconnect"

    XMLWordPrintableJSON

Details

    • Patch Available

    Description

      If an XA prepare() raises an exception back to the client it results in the warning

      WARN  FailoverTransport - Transport (tcp://127.0.0.1:61249) failed, reason:  java.io.IOException: 
      Unexpected error occured: java.lang.ClassCastException: 
      org.apache.activemq.command.ExceptionResponse cannot be cast to 
      org.apache.activemq.command.IntegerResponse, attempting to automatically reconnect
      

      which triggers a failover reconnect and a replay of the transaction which then causes

      2013-12-20 13:38:12,581 [main] - WARN  TransactionContext - prepare of: 
      XID:[86,globalId=00000001,branchId=00000001] failed with: javax.jms.JMSException: Cannot call prepare now.
      

      Attachments

        Activity

          People

            tmielke Torsten Mielke
            tmielke Torsten Mielke
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: