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

ClassCastException when running some Durable Consumer test cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.6.0
    • 5.6.0
    • Message Store
    • None

    Description

      When running the DurableSubProcessWithRestartTest for long intervals you can sometimes see.

      ERROR rableSubProcessWithRestartTest - Server.run failed
      java.lang.RuntimeException: Server.run failed
      	at org.apache.activemq.usecases.DurableSubProcessWithRestartTest.exit(DurableSubProcessWithRestartTest.java:738)
      	at org.apache.activemq.usecases.DurableSubProcessWithRestartTest$Server.run(DurableSubProcessWithRestartTest.java:185)
      Caused by: javax.jms.JMSException: STORE COMMIT FAILED: Transaction rolled back.
      	at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
      	at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1297)
      	at org.apache.activemq.TransactionContext.syncSendPacketWithInterruptionHandling(TransactionContext.java:748)
      	at org.apache.activemq.TransactionContext.commit(TransactionContext.java:322)
      	at org.apache.activemq.ActiveMQSession.commit(ActiveMQSession.java:560)
      	at org.apache.activemq.usecases.DurableSubProcessWithRestartTest$Server.send(DurableSubProcessWithRestartTest.java:232)
      	at org.apache.activemq.usecases.DurableSubProcessWithRestartTest$Server.run(DurableSubProcessWithRestartTest.java:179)
      Caused by: javax.transaction.xa.XAException: STORE COMMIT FAILED: Transaction rolled back.
      	at org.apache.activemq.transaction.LocalTransaction.commit(LocalTransaction.java:77)
      	at org.apache.activemq.broker.TransactionBroker.commitTransaction(TransactionBroker.java:252)
      	at org.apache.activemq.broker.MutableBrokerFilter.commitTransaction(MutableBrokerFilter.java:103)
      	at org.apache.activemq.broker.TransportConnection.processCommitTransactionOnePhase(TransportConnection.java:414)
      	at org.apache.activemq.command.TransactionInfo.visit(TransactionInfo.java:100)
      	at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:291)
      	at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:149)
      	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:218)
      	at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
      	at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:680)
      Caused by: java.lang.ClassCastException: org.apache.kahadb.index.BTreeNode cannot be cast to org.apache.kahadb.index.ListNode
      	at org.apache.kahadb.index.ListIndex.loadNode(ListIndex.java:289)
      	at org.apache.kahadb.index.ListIndex.getHead(ListIndex.java:98)
      	at org.apache.kahadb.index.ListIndex.iterator(ListIndex.java:266)
      	at org.apache.kahadb.index.ListIndex.get(ListIndex.java:127)
      	at org.apache.activemq.store.kahadb.MessageDatabase.addAckLocationForNewMessage(MessageDatabase.java:1826)
      	at org.apache.activemq.store.kahadb.MessageDatabase.upadateIndex(MessageDatabase.java:1130)
      	at org.apache.activemq.store.kahadb.MessageDatabase$AddOpperation.execute(MessageDatabase.java:2029)
      	at org.apache.activemq.store.kahadb.MessageDatabase$18.execute(MessageDatabase.java:1055)
      	at org.apache.kahadb.page.Transaction.execute(Transaction.java:765)
      	at org.apache.activemq.store.kahadb.MessageDatabase.process(MessageDatabase.java:1052)
      	at org.apache.activemq.store.kahadb.MessageDatabase$13.visit(MessageDatabase.java:921)
      	at org.apache.activemq.store.kahadb.data.KahaCommitCommand.visit(KahaCommitCommand.java:130)
      	at org.apache.activemq.store.kahadb.MessageDatabase.process(MessageDatabase.java:903)
      	at org.apache.activemq.store.kahadb.MessageDatabase.store(MessageDatabase.java:815)
      	at org.apache.activemq.store.kahadb.KahaDBTransactionStore.commit(KahaDBTransactionStore.java:267)
      	at org.apache.activemq.transaction.LocalTransaction.commit(LocalTransaction.java:72)
      	... 14 more
      
      

      Attachments

        Activity

          People

            gtully Gary Tully
            tabish Timothy A. Bish
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: