简体   繁体   English

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

[英]JMS - Couldn't create session factory even if connection to remote provider is OK

I make a jar to connect to JMS provider, it's work fine in a server (a) but doesn't work on a server (b).我制作了一个 jar 来连接到 JMS 提供者,它在服务器 (a) 中工作正常,但在服务器 (b) 上不起作用。

I verify that connection to the JMS provider from server (b) is OK via telnet as shown below:我通过 telnet 验证从服务器 (b) 到 JMS 提供程序的连接是否正常,如下所示:

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

The logs and exception that it's throw is below :它抛出的日志和异常如下:

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

I don't how to debug such a problem knowing i'm new in JMS, i'll be grateful for any remarks and ideas..知道我是 JMS 新手,我不知道如何调试这样的问题,我将不胜感激任何评论和想法..

Many thanks非常感谢

Did you ever find out why this was happening?你有没有发现为什么会这样? I have a related issue where an active JMS connection suddenly disconnects and the system starts throwing this exception until a system restart is done and then it connects again without fail.我有一个相关的问题,一个活动的 JMS 连接突然断开连接,系统开始抛出这个异常,直到系统重新启动完成,然后它再次连接,没有失败。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM