You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Tomas Hofman (JIRA)" <ji...@apache.org> on 2016/10/17 14:16:58 UTC

[jira] [Updated] (ARTEMIS-805) ClassCastException: SessionBindingQueryResponseMessage_V2 cannot be cast to SessionBindingQueryResponseMessage_V3

     [ https://issues.apache.org/jira/browse/ARTEMIS-805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomas Hofman updated ARTEMIS-805:
---------------------------------
    Description: 
If Artemis 1.4.0 standalone JMS client tries to connect to 1.1.0 server then ClassCastException is trhown during creating of producer on session. 

Client logs following error:
{code}
WARN: AMQ212052: Packet PACKET(SessionBindingQueryResponseMessage_V2)[type=-8, channelID=15, packetObject=SessionBindingQueryResponseMessage_V2, exists=true, queueNames=[jms.queue.InQueue], autoCreateJmsQueues=false] was answered out of sequence due to a previous server timeout and it's being ignored
java.lang.Exception: trace
	at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:386)
	at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:307)
	at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.addressQuery(ActiveMQSessionContext.java:296)
	at org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.addressQuery(ClientSessionImpl.java:360)
	at org.apache.activemq.artemis.jms.client.ActiveMQSession.createProducer(ActiveMQSession.java:305)
	at ProducerTransSession.run(ProducerTransSession.java:53)

Producer got exception and ended:java.lang.ClassCastException: org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionBindingQueryResponseMessage_V2 cannot be cast to org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionBindingQueryResponseMessage_V3
{code}

This is breaking backward compatibility of JMS clients.

  was:
If EAP 7.1.0.DR6 (Artemis 1.4.0) standalone JMS client tries to connect to EAP 7.0 server then ClassCastException is trhown during creating of producer on session. 

Client logs following error:
{code}
WARN: AMQ212052: Packet PACKET(SessionBindingQueryResponseMessage_V2)[type=-8, channelID=15, packetObject=SessionBindingQueryResponseMessage_V2, exists=true, queueNames=[jms.queue.InQueue], autoCreateJmsQueues=false] was answered out of sequence due to a previous server timeout and it's being ignored
java.lang.Exception: trace
	at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:386)
	at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:307)
	at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.addressQuery(ActiveMQSessionContext.java:296)
	at org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.addressQuery(ClientSessionImpl.java:360)
	at org.apache.activemq.artemis.jms.client.ActiveMQSession.createProducer(ActiveMQSession.java:305)
	at ProducerTransSession.run(ProducerTransSession.java:53)

Producer got exception and ended:java.lang.ClassCastException: org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionBindingQueryResponseMessage_V2 cannot be cast to org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionBindingQueryResponseMessage_V3
{code}

This is breaking backward compatibility of JMS clients.


> ClassCastException: SessionBindingQueryResponseMessage_V2 cannot be cast to SessionBindingQueryResponseMessage_V3
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-805
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-805
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Tomas Hofman
>
> If Artemis 1.4.0 standalone JMS client tries to connect to 1.1.0 server then ClassCastException is trhown during creating of producer on session. 
> Client logs following error:
> {code}
> WARN: AMQ212052: Packet PACKET(SessionBindingQueryResponseMessage_V2)[type=-8, channelID=15, packetObject=SessionBindingQueryResponseMessage_V2, exists=true, queueNames=[jms.queue.InQueue], autoCreateJmsQueues=false] was answered out of sequence due to a previous server timeout and it's being ignored
> java.lang.Exception: trace
> 	at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:386)
> 	at org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:307)
> 	at org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.addressQuery(ActiveMQSessionContext.java:296)
> 	at org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.addressQuery(ClientSessionImpl.java:360)
> 	at org.apache.activemq.artemis.jms.client.ActiveMQSession.createProducer(ActiveMQSession.java:305)
> 	at ProducerTransSession.run(ProducerTransSession.java:53)
> Producer got exception and ended:java.lang.ClassCastException: org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionBindingQueryResponseMessage_V2 cannot be cast to org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionBindingQueryResponseMessage_V3
> {code}
> This is breaking backward compatibility of JMS clients.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)