[
https://issues.apache.org/activemq/browse/AMQ-1169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39979
]
Lari Hotari commented on AMQ-1169:
----------------------------------
This issue has probably nothing to do with backport-util-concurrent version...
I'm getting ClassCastExceptions in my test environment several times a week.
The ActiveMQ version is 4.1.1 running on Sun Java 1.5.0_11
It's hard to understand why this exception is possible:
Exception in thread "ActiveMQ Transport: tcp://localhost/127.0.0.1:61616"
java.lang.ClassCastException: org.apache.activemq.command.BrokerId
at
org.apache.activemq.openwire.v2.MessageMarshaller.looseUnmarshal(MessageMarshaller.java:193)
at
org.apache.activemq.openwire.v2.ActiveMQMessageMarshaller.looseUnmarshal(ActiveMQMessageMarshaller.java:101)
at
org.apache.activemq.openwire.v2.ActiveMQStreamMessageMarshaller.looseUnmarshal(ActiveMQStreamMessageMarshaller.java:101)
at
org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:349)
at
org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
at
org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
at java.lang.Thread.run(Thread.java:595)
It's expecting a ProducerId object, but it receives a BrokerId object.
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId
> -------------------------------------------------------------------
>
> Key: AMQ-1169
> URL: https://issues.apache.org/activemq/browse/AMQ-1169
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 4.1.0
> Environment: winxp
> Reporter: Vadim Pesochinskiy
> Fix For: 4.1.1
>
>
> There were a lot of ": Channel was inactive for too long" messages before and
> after the ClassCastException. I do not know if the system would recover from
> this by itself.
> java.lang.ClassCastException: org.apache.activemq.command.BrokerId
> at
> org.apache.activemq.openwire.v2.MessageDispatchMarshaller.tightUnmarshal(MessageDispatchMarshaller.java:70)
> at
> org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:347)
> at
> org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:273)
> at
> org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:156)
> at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136)
> at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.