activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron Koerner (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQ-4838) java.lang.ClassCastException: org.apache.activemq.store.kahadb.data.KahaTraceCommand cannot be cast to org.apache.activemq.store.kahadb.data.KahaAddMessageCommand
Date Wed, 30 Oct 2013 13:49:27 GMT
Ron Koerner created AMQ-4838:
--------------------------------

             Summary: java.lang.ClassCastException: org.apache.activemq.store.kahadb.data.KahaTraceCommand
cannot be cast to org.apache.activemq.store.kahadb.data.KahaAddMessageCommand
                 Key: AMQ-4838
                 URL: https://issues.apache.org/jira/browse/AMQ-4838
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.8.0
         Environment: Standalone single ActiveMQ 5.8.0, Linux
            Reporter: Ron Koerner
            Priority: Critical


I got this exception out of the blue on a standalone ActiveMQ broker which was running for
8 days at that time. I set the priority to critical as we lost a lot of data due to this bug.

{code}
2013-10-29 16:09:54,439 ERROR on.cursors.AbstractStoreCursor - org.apache.activemq.broker.region.cursors.QueueStorePrefetch@261c44
:esf.deubait.ice,batchResetNeeded=false,storeHasMessages=true,size=41413,cacheEnabled=false,maxBatchSize:200
- Failed to fill batc
h [ActiveMQ Transport: tcp:///10.254.98.20:36270@6909]
java.lang.RuntimeException: java.lang.ClassCastException: org.apache.activemq.store.kahadb.data.KahaTraceCommand
cannot be cast to
 org.apache.activemq.store.kahadb.data.KahaAddMessageCommand
        at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:277)
~[activemq-broker
-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.reset(AbstractStoreCursor.java:110)
~[activemq-broker-5.8
.0.jar:5.8.0]
        at org.apache.activemq.broker.region.cursors.StoreQueueCursor.reset(StoreQueueCursor.java:157)
[activemq-broker-5.8.0.jar:
5.8.0]
        at org.apache.activemq.broker.region.Queue.doPageInForDispatch(Queue.java:1775) [activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.region.Queue.pageInMessages(Queue.java:2003) [activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.region.Queue.iterate(Queue.java:1491) [activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.region.Queue.wakeup(Queue.java:1709) [activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.region.Queue.messageSent(Queue.java:1704) [activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.region.Queue.doMessageSend(Queue.java:795) [activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.region.Queue.send(Queue.java:721) [activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.region.AbstractRegion.send(AbstractRegion.java:406)
[activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.region.RegionBroker.send(RegionBroker.java:392) [activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.jmx.ManagedRegionBroker.send(ManagedRegionBroker.java:282)
[activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:129) [activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.CompositeDestinationBroker.send(CompositeDestinationBroker.java:96)
[activemq-broker-5.8.0.j
ar:5.8.0]
        at org.apache.activemq.broker.TransactionBroker.send(TransactionBroker.java:317) [activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:129) [activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.security.AuthorizationBroker.send(AuthorizationBroker.java:202)
[activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:129) [activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.MutableBrokerFilter.send(MutableBrokerFilter.java:135)
[activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.TransportConnection.processMessage(TransportConnection.java:499)
[activemq-broker-5.8.0.jar:
5.8.0]
        at org.apache.activemq.command.ActiveMQMessage.visit(ActiveMQMessage.java:749) [activemq-client-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:329)
[activemq-broker-5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:184)
[activemq-broker-5.8.0.jar:5.8
.0]
        at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)
[activemq-client-5.8.0.jar:5.8.0]
        at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
[activemq-client-5.8.0.jar:
5.8.0]
        at org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:288)
[activemq-client-
5.8.0.jar:5.8.0]
        at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
[activemq-client-5.8.0.jar:5.8.0]
        at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214) [activemq-client-5.8.0.jar:5.8.0]
        at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196) [activemq-client-5.8.0.jar:5.8.0]
        at java.lang.Thread.run(Thread.java:619) [na:1.6.0_04]
Caused by: java.lang.ClassCastException: org.apache.activemq.store.kahadb.data.KahaTraceCommand
cannot be cast to org.apache.activ
emq.store.kahadb.data.KahaAddMessageCommand
        at org.apache.activemq.store.kahadb.KahaDBStore.loadMessage(KahaDBStore.java:1029)
~[activemq-kahadb-store-5.8.0.jar:5.8.0
]
        at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore$4.execute(KahaDBStore.java:557)
~[activemq-kahadb-store
-5.8.0.jar:5.8.0]
        at org.apache.activemq.store.kahadb.disk.page.Transaction.execute(Transaction.java:779)
~[activemq-kahadb-store-5.8.0.jar:
5.8.0]
        at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.recoverNextMessages(KahaDBStore.java:546)
~[activemq-ka
hadb-store-5.8.0.jar:5.8.0]
        at org.apache.activemq.store.ProxyMessageStore.recoverNextMessages(ProxyMessageStore.java:106)
~[activemq-broker-5.8.0.jar
:5.8.0]
        at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.doFillBatch(QueueStorePrefetch.java:97)
~[activemq-broker-
5.8.0.jar:5.8.0]
        at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:274)
~[activemq-broker
-5.8.0.jar:5.8.0]
        ... 30 common frames omitted
{code}





--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message