2 u011067688 u011067688 于 2016.02.15 11:05 提问

配置好url之后,提示无法连接到url,试过更换为ip、本机的方式

javax.jms.JMSException: Could not connect to broker URL: tcp://192.168.1.137:61616. Reason: java.net.ConnectException: Connection refused: connect
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:358)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303)
at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:243)
at com.hanthink.framework.client.jms.MessageTransceiver.initialize(MessageTransceiver.java:91)
at com.hanthink.framework.client.jms.MessageTransceiver.(MessageTransceiver.java:86)
at com.hanthink.framework.client.jms.MessageSender.(MessageSender.java:15)
at jms.Sender.(Sender.java:74)
at jms.Sender.main(Sender.java:29)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
at org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:338)
... 7 more

2个回答

bdmh
bdmh   Ds   Rxr 2016.02.15 11:14

确认61616端口是否开发,telnet试试

u011067688
u011067688 如下图
接近 2 年之前 回复
u011067688
u011067688   2016.02.15 11:48

图片说明
这个是不是说明端口已经打开了

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!