activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jydev <jyoony...@gmail.com>
Subject ClassCastException with VirtualTopic on 5.1
Date Fri, 16 May 2008 22:17:42 GMT

Hello,

Getting the following error with VirtualTopic on 5.1, when there are more
than one topic subscribers.

ERROR Service                        - Async error occurred:
java.lang.ClassCastException: org.apache.activemq.broker.region.Topic cannot
be cast to org.apache.activemq.broker.region.Queue
java.lang.ClassCastException: org.apache.activemq.broker.region.Topic cannot
be cast to org.apache.activemq.broker.region.Queue
        at
org.apache.activemq.broker.region.QueueSubscription.acknowledge(QueueSubscription.java:50)
        at
org.apache.activemq.broker.region.PrefetchSubscription.acknowledge(PrefetchSubscription.java:224)
        at
org.apache.activemq.broker.region.AbstractRegion.acknowledge(AbstractRegion.java:364)
        at
org.apache.activemq.broker.region.RegionBroker.acknowledge(RegionBroker.java:470)
        at
org.apache.activemq.broker.TransactionBroker.acknowledge(TransactionBroker.java:194)
        at
org.apache.activemq.broker.BrokerFilter.acknowledge(BrokerFilter.java:73)
        at
org.apache.activemq.broker.BrokerFilter.acknowledge(BrokerFilter.java:73)
        at
org.apache.activemq.broker.MutableBrokerFilter.acknowledge(MutableBrokerFilter.java:84)
        at
org.apache.activemq.broker.TransportConnection.processMessageAck(TransportConnection.java:443)
        at org.apache.activemq.command.MessageAck.visit(MessageAck.java:196)
        at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:292)
        at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:180)
        at
org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)
        at
org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:143)
        at
org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:206)
        at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84)
        at
org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:196)
        at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:183)
        at java.lang.Thread.run(Thread.java:619)

This seems to be already captured as an issue:
https://issues.apache.org/activemq/browse/AMQ-1687

Any idea when there will be a patch for this?  Is there a work around?

It seems like the messages are getting to the listeners ok even though
broker is spitting out the errors above.  But I want to make sure that there
would be no weird side-effects due to the error.

Thanks you in advance
jydev
-- 
View this message in context: http://www.nabble.com/ClassCastException-with-VirtualTopic-on-5.1-tp17285256s2354p17285256.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message