报错信息:
javax.jms.JMSException: Unknown data type: 47 at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:72) at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1423) at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1510) at org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:524) at com.Send.product(Send.java:21) at com.Send.main(Send.java:53) Caused by: java.io.IOException: Unknown data type: 47 at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:365) at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:285) at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:221) at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:213) at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196) at java.lang.Thread.run(Thread.java:744)
解决方法:
默认连接端口误配成了8161,应该为61616。