我正在尝试在单个WebLogic计算机上配置ActiveMQ主/从设置。问题是当我启动Managed Server1它成功连接到vm传输并且一切正常,但是当我启动Managed Server2时,我在代理日志中收到以下错误
INFO 2016-September-27 10:08:00,227 ActiveMQEndpointWorker:124 - Connection attempt already in progress, ignoring connection exception
INFO 2016-September-27 10:08:01,161 TransportConnector:260 - Connector vm://localhost started
INFO 2016-September-27 10:08:30,228 TransportConnector:291 - Connector vm://localhost stopped
INFO 2016-September-27 10:08:30,229 TransportConnector:260 - Connector vm://localhost started
WARN 2016-September-27 10:08:30,228 ActiveMQManagedConnection:385 - Connection failed: javax.jms.JMSException: peer (vm://localhost#61) stopped.
WARN 2016-September-27 10:08:30,231 TransportConnection:823 - Failed to add Connection ID:ndl-wls-300.mydomain.com-52251-1474966937425-65:1 due to java.lang.NullPointerException
ERROR 2016-September-27 10:08:30,233 ActiveMQEndpointWorker:183 - Failed to connect to broker [vm://localhost?create=false]: java.lang.NullPointerException
javax.jms.JMSException: java.lang.NullPointerException
请帮助,我坚持这个。
答案 0 :(得分:0)
我仍然没有在同一个VM中看到奴隶的原因。我建议您联系ActiveMQ专家顾问来验证您的架构。
但是,我想我可以帮助你更接近这个问题:
这里有一个基本的错误理解..虚拟机网址被分解为:
VM:// $ {brokerName}选项=值等
第一次创建vm:// localhost?create = true ..您创建了一个代理
第二次引用vm:// localhost?create = false ..您已经创建了与第一个代理的客户端连接。
要获得两个经纪人,您需要两个不同的vm:// $ {brokerName}?create = true