我尝试通过JMS从位于JBoss 4服务器上的远程队列上的JBoss 7客户端发送TextMessage。
当服务器收到消息时,抛出异常:
2012-08-24 12:06:26,988 ERROR [ServerThread] Worker thread initialization failure
java.io.IOException: Can not read data for version 0. Supported versions: 1,2,22
at org.jboss.remoting.transport.socket.ServerThread.versionedRead(ServerThread.java:712)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:572)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:409)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:176)
所以我将-Djboss.remoting.pre_2_0_compatible = true添加到jvm参数中,但现在我又得到了另一个例外:
java.lang.IllegalArgumentException: Invalid packet type: 17
at org.jboss.jms.wireformat.PacketSupport.createPacket(PacketSupport.java:379)
at org.jboss.jms.wireformat.JMSWireFormat.read(JMSWireFormat.java:290)
at org.jboss.remoting.transport.socket.ServerThread.versionedRead(ServerThread.java:704)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:572)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:409)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:176)
有没有人可以帮助我如何通过JMS从JBoss 7向JBoss 4服务器发送消息?