【发布时间】:2020-12-23 04:44:22
【问题描述】:
美好的一天。我无法克服这个错误。
我发送 xml 消息并且给定的错误下降。
是我这边的发送配置有问题还是有其他问题?
JMSWMQ0018: Failed to connect to queue manager 'QM1' with connection mode 'Client' and host name 'localhost(1414)'.; nested exception is com.ibm.msg.client.jms.DetailedIllegalStateException: JMSWMQ0018: Failed to connect to queue manager 'QM1' with connection mode 'Client' and host name 'localhost(1414)'.
Check the queue manager is started and if running in client mode, check there is a listener running. Please see the linked exception for more information.; nested exception is com.ibm.mq.MQException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2538' ('MQRC_HOST_NOT_AVAILABLE').
【问题讨论】:
-
如报错
2538' ('MQRC_HOST_NOT_AVAILABLE'),这表示MQ客户端无法连接localhost(1414),可以试试简单的telnet localhost 1414看看能不能连接?还值得检查您是否在队列管理器AMQERR01.LOG中发现任何相应的错误。