ActiveMQ常见错误二:javax.jms.JMSException: Unknown data type: 47
作者:互联网
Java连接ActiveMQ时报错:
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)
解决方法:
默认连接端口为61616
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://172.168.10.153:61616");
标签:TcpTransport,JMSException,java,ActiveMQConnection,activemq,jms,apache,org,type 来源: https://blog.csdn.net/yuyecsdn/article/details/90741581