Activemq嵌入式代理尝试启动时出错

时间:2017-09-08 03:09:38

标签: java jms activemq

ERROR org.apache.activemq.broker.BrokerService - Failed to start Apache ActiveMQ ([localhost, null], java.io.IOException: org/apache/activemq/store/NoLocalSubscriptionAware)

INFO  org.apache.activemq.broker.BrokerService - Apache ActiveMQ 5.9.1 (localhost, null) is shutting down

INFO  org.apache.activemq.broker.TransportConnector - Connector tcp://localhost:61616 stopped

WARN  org.apache.activemq.broker.jmx.ManagementContext - Failed to start JMX connector Cannot bind to URL [rmi://localhost:1099/jmxrmi]: javax.naming.NameAlreadyBoundException: jmxrmi [Root exception is java.rmi.AlreadyBoundException: jmxrmi]. Will restart management to re-create JMX connector, trying to remedy this issue.

我尝试使用的代码是

BrokerService broker = new BrokerService();
TransportConnector connector = new TransportConnector();
connector.setUri(new URI("tcp://localhost:61616"));
broker.addConnector(connector);
broker.start();

我在start()方法中遇到异常。我正在服务器上部署它,而不是在我的计算机上。

1 个答案:

答案 0 :(得分:0)

鉴于信息有限,很难说出了什么问题,但我要检查的一件事是,在该服务器上运行的代理已经不存在,因为看起来有些事情发生了至少已经坐在JMX端口上了。您可以签入代理日志以查看代理是否记录有关错误的任何其他信息。