2 Replies Latest reply on Dec 23, 2013 11:11 AM by arvdias

    HornetQ 2.3.1 compatibility with HornetQ 2.2.5

    arvdias

      Hi all

       

      I have a Jboss 6.1.0 Final server with HornetQ 2.2.5.

      I'm trying to publish a message to this server from another server which is Jboss 6 EAP that has HornetQ 2.3.1

      I configured a RemoteConnectionFactory in the "client" server like this:

       

       

      This connectionFactory references the following connector:

       

       

      which in turn uses the following socket binding:

       

      From a EJB in the JBoss 6 EAP server i can create a create a connection to the other server, but when i try to create a session it fails.

      @17:54:08,947 ERROR [pt.ptinovacao.m2m.nacl.common.utils.JMSMessagePublisher] (http-nacl-adias/10.112.200.58:8080-1) failed to publish message: javax.jms.JMSException: Failed to create session factory
              at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:587)
              at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:107)
              at pt.ptinovacao.m2m.nacl.common.utils.JMSMessagePublisherImpl.publishMessage(JMSMessagePublisherImpl.java:37) [common-0.1-SNAPSHOT.jar:]

      In the remote Jboss 6.1.Final server i get this in the logs:

       

      2013-12-12 17:28:42,699 ERROR [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] Failed to decode: java.lang.IllegalArgumentException: Invalid type: 113
              at org.hornetq.core.protocol.core.impl.PacketDecoder.decode(PacketDecoder.java:529) [:]
              at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:424) [:]
              at org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:459) [:]
              at org.hornetq.core.remoting.impl.netty.HornetQChannelHandler.messageReceived(HornetQChannelHandler.java:73) [:]
              at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:100) [:]
              at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:372) [:]
              at org.jboss.netty.channel.StaticChannelPipeline$StaticChannelHandlerContext.sendUpstream(StaticChannelPipeline.java:534) [:]
              at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:287) [:]
              at org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.decode(HornetQFrameDecoder2.java:169) [:]
              at org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.messageReceived(HornetQFrameDecoder2.java:134) [:]
              at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [:]
              at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:372) [:]
              at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:367) [:]
              at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274) [:]
              at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261) [:]

       

      Does anyone know if HornetQ 2.3.1 is supposed to be compatible with 2.2.5?

      If not, can i upgrade HornetQ 2.2.5 in Jboss 6.1.0.Final  to version 2.3.1 and how?