我尝试运行 wso2mb-3.1.0/samples/JmsMessageListenerClient 但在服务器启动时出现以下错误。我错过了一些配置吗?
org.wso2.andes.AMQConnectionFailureException: Unable to Connect
at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:475)
at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:328)
at org.wso2.andes.client.AMQConnectionFactory.createTopicConnection(AMQConnectionFactory.java:443)
at com.wickes.common.jms.service.wso2mq.Wso2MessageListener.registerSubscribers(Wso2MessageListener.java:41)
at com.wickes.product.web.Controller.get(Controller.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.wso2.msf4j.internal.router.HttpMethodInfo.invoke(HttpMethodInfo.java:132)
at org.wso2.msf4j.internal.MSF4JMessageProcessor.dispatchMethod(MSF4JMessageProcessor.java:130)
at org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JMessageProcessor.java:72)
at org.wso2.carbon.transport.http.netty.listener.WorkerPoolDispatchingSourceHandler.lambda$publishToWorkerPool$12(WorkerPoolDispatchingSourceHandler.java:125)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
javax.jms.JMSException: Error creating connection: Unable to Connect
at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:338)
at org.wso2.andes.client.AMQConnectionFactory.createTopicConnection(AMQConnectionFactory.java:443)
at com.wickes.common.jms.service.wso2mq.Wso2MessageListener.registerSubscribers(Wso2MessageListener.java:41)
at com.wickes.product.web.Controller.get(Controller.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.wso2.msf4j.internal.router.HttpMethodInfo.invoke(HttpMethodInfo.java:132)
at org.wso2.msf4j.internal.MSF4JMessageProcessor.dispatchMethod(MSF4JMessageProcessor.java:130)
at org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JMessageProcessor.java:72)
at org.wso2.carbon.transport.http.netty.listener.WorkerPoolDispatchingSourceHandler.lambda$publishToWorkerPool$12(WorkerPoolDispatchingSourceHandler.java:125)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.wso2.andes.AMQConnectionFailureException: Unable to Connect
at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:475)
at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:328)
... 14 more
2017-02-21 16:03 错误 AMQStateManager:162 - 通知服务员([org.wso2.andes.client.state.StateWaiter@520acd8f])错误:针对 AMQConnection 引发的异常:主机:本地主机端口:5672 虚拟主机:碳客户端 ID:carbon 活动会话计数:0:org.wso2.andes.AMQDisconnectedException:服务器关闭连接并且不允许重新连接。2017-02-21 16:03 错误 AMQProtocolHandler:485 - 异常处理框架 org.wso2.andes.framing.AMQProtocolClassException:预期协议类 1;在 org.wso2.andes.client.protocol.AMQProtocolHandler$2.run(AMQProtocolHandler.java:476) 在 org.wso2.andes 的 org.wso2.andes.framing.ProtocolInitiation.checkVersion(ProtocolInitiation.java:190) 收到 3。 pool.Job.processAll(Job.java:109) 在 org.wso2.andes.pool.Job.run(Job.java: 157) 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 在 java.lang.Thread.run(Thread.java :745) 2017-02-21 16:03 错误 AMQConnection:1307 - Throwable 已接收但未设置侦听器:org.wso2.andes.AMQDisconnectedException:服务器关闭连接并且不允许重新连接。2017-02-21 16:03 错误 AMQConnection:1307 - Throwable 已接收但未设置侦听器:org.wso2.andes.framing.AMQProtocolClassException:预期协议类 1;收到 3 03 错误 AMQConnection:1307 - Throwable 已接收但未设置侦听器:org.wso2.andes.AMQDisconnectedException:服务器关闭连接并且不允许重新连接。2017-02-21 16:03 错误 AMQConnection:1307 - Throwable 已接收但未设置侦听器:org.wso2.andes.framing.AMQProtocolClassException:预期协议类 1;收到 3 03 错误 AMQConnection:1307 - Throwable 已接收但未设置侦听器:org.wso2.andes.AMQDisconnectedException:服务器关闭连接并且不允许重新连接。2017-02-21 16:03 错误 AMQConnection:1307 - Throwable 已接收但未设置侦听器:org.wso2.andes.framing.AMQProtocolClassException:预期协议类 1;收到 3
谢谢,马尼什