gpt4 book ai didi

java - JMS - 即使与远程提供程序的连接正常,也无法创建 session 工厂

转载 作者:行者123 更新时间:2023-12-05 06:31:53 27 4
gpt4 key购买 nike

我制作了一个 jar 来连接到 JMS 提供程序,它在服务器 (a) 中工作正常,但在服务器 (b) 中不起作用。

我通过 telnet 验证从服务器 (b) 到 JMS 提供程序的连接是否正常,如下所示:

    -> telnet -d 10.127.161.247 4447
Trying 10.127.161.247...
Connected to 10.127.161.247.

它抛出的日志和异常如下:

2018/08/01 11:19:47:921 - Processing command line arguments...
2018/08/01 11:19:47:927 - Preparing the output... Writing to file = true
2018/08/01 11:19:50:315 - Trying to establish connection, attempt: 0
2018/08/01 11:19:52:132 - Connecting to provider: remote://10.127.161.247:4447 using user: oad_user
2018/08/01 11:19:52:132 - Creating a regular (non-secure) connection factory...
2018/08/01 11:19:53:073 - Opening a connection to the JMS provider...
2018/08/01 11:20:24:192 - Attempt failed: Failed to create session factory
javax.jms.JMSException: Failed to create session factory
at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:675)
at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createTopicConnection(ActiveMQConnectionFactory.java:267)
at com.alcatel.ossgw.client.jms.JmsSubscriberClient.prepareConnection(JmsSubscriberClient.java:334)
at com.alcatel.ossgw.client.jms.JmsSubscriberClient.connect(JmsSubscriberClient.java:274)
at com.alcatel.ossgw.client.jms.JmsSubscriberClient.listen(JmsSubscriberClient.java:97)
at com.alcatel.ossgw.client.jms.JmsSubscriberClient.main(JmsSubscriberClient.java:536)
Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ119007: Cannot connect to server(s). Tried with all available servers.]
at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:818)
at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:67

我不知道如何调试这样的问题,因为我是 JMS 的新手,我将不胜感激任何评论和想法..

非常感谢

最佳答案

你有没有想过为什么会这样?我有一个相关的问题, Activity JMS 连接突然断开并且系统开始抛出此异常,直到系统重新启动完成,然后它再次连接而不会失败。

关于java - JMS - 即使与远程提供程序的连接正常,也无法创建 session 工厂,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51629828/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com