activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From titou10 <titou10.tito...@gmail.com>
Subject Artemis 2.0 : Client with v2.0.x jars in the classpath to a v1.5.x server. is it supported?
Date Fri, 24 Mar 2017 13:11:15 GMT
Hi,

I have a java client with the Artemis v2.0.0 client jar on the classpath trying to talk to
a v1.5.2 server

It fails with exception "AMQ214013: Failed to decode packet: java.lang.IllegalArgumentException:
AMQ119032: Invalid type: -12"

Is this supported, ie v2.0.x jars talking to a v1.5.x server? If so should I open a JIRA?

Thanks

Denis (Author of JMSToolBox on sourceforge)
===================
The code:
    Session sessionJMS = ...
    Queue  managementQueue = ActiveMQJMSClient.createQueue("activemq.management");
    QueueRequestor requestorJMS = new QueueRequestor((QueueSession) sessionJMS, managementQueue);
//->fails here

The client side exception :
08:58:25,727 ERROR [org.apache.activemq.artemis.core.client] AMQ214013: Failed to decode packet:
java.lang.IllegalArgumentException: 
AMQ119032: Invalid type: -12
     at org.apache.activemq.artemis.core.protocol.core.impl.PacketDecoder.decode(PacketDecoder.java:424)

[artemis-core-client-1.5.2.jar:1.5.2]
     at org.apache.activemq.artemis.core.protocol.ClientPacketDecoder.decode(ClientPacketDecoder.java:60)

[artemis-core-client-1.5.2.jar:1.5.2]
     at org.apache.activemq.artemis.core.protocol.ServerPacketDecoder.decode(ServerPacketDecoder.java:202)

[artemis-server-1.5.2.jar:1.5.2]
     at org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:349)

[artemis-core-client-1.5.2.jar:1.5.2]
     at 
org.apache.activemq.artemis.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:621)

[artemis-server-1.5.2.jar:1.5.2]
     at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:68)

[artemis-core-client-1.5.2.jar:1.5.2]
     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)

[netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)

[netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)

[netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)

[netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
[netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)

[netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)

[netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)

[netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)

[netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)

[netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)

[netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
[netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:129)

[netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:610) [netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:551)
[netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:465) [netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:437) [netty-all-4.1.5.Final.jar:4.1.5.Final]
     at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)

[netty-all-4.1.5.Final.jar:4.1.5.Final]
     at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_121]



Mime
View raw message