AMQ9208: Error on receive from host,AMQ9999: Channel ‘ACLIENT‘ to host ‘192.168.159.1‘ ended abnorma

在java 连接服务端通道时报了如下错

MQJE001: 完成代码为“2”,原因为“2045”。

AMQ9208: Error on receive from host,AMQ9999: Channel ‘ACLIENT‘ to host ‘192.168.159.1‘ ended abnorma_第1张图片

ibmmq 版本8.0

AMQ9208: Error on receive from host,AMQ9999: Channel ‘ACLIENT‘ to host ‘192.168.159.1‘ ended abnorma_第2张图片

查了这些博客 发现以下可以解决

连接远程队列

  1. java代码 MQAPI  openOptions 一定不要放这个属性 MQConstants.MQOO_INPUT_AS_Q_DEF 

    AMQ9208: Error on receive from host,AMQ9999: Channel ‘ACLIENT‘ to host ‘192.168.159.1‘ ended abnorma_第3张图片

     

  2. 在此之前关闭认证 执行ALTER QMGR CONNAUTH(' ') REFRESH SECURITY TYPE(CONNAUTH)
02/19/2023 02:29:00 AM - Process(53875.28) User(mqm) Program(amqrmppa)
                    Host(basenode) Installation(Installation1)
                    VRMF(8.0.0.9) QMgr(QM_A)
                   
AMQ9208: Error on receive from host 192.168.159.1.

EXPLANATION:
An error occurred receiving data from 192.168.159.1 over TCP/IP. This may be
due to a communications failure.
ACTION:
The return code from the TCP/IP read() call was 104 (X'68'). Record these
values and tell the systems administrator.
----- amqccita.c : 4117 -------------------------------------------------------
02/19/2023 02:29:00 AM - Process(53875.28) User(mqm) Program(amqrmppa)
                    Host(basenode) Installation(Installation1)
                    VRMF(8.0.0.9) QMgr(QM_A)
                   
AMQ9999: Channel 'ACLIENT' to host '192.168.159.1' ended abnormally.

EXPLANATION:
The channel program running under process ID 53875 for channel 'ACLIENT' ended
abnormally. The host name is '192.168.159.1'; in some cases the host name
cannot be determined and so is shown as '????'.
ACTION:
Look at previous error messages for the channel program in the error logs to
determine the cause of the failure. Note that this message can be excluded
completely or suppressed by tuning the "ExcludeMessage" or "SuppressMessage"
attributes under the "QMErrorLog" stanza in qm.ini. Further information can be
found in the System Administration Guide.
----- amqrmrsa.c : 930 --------------------------------------------------------


 

你可能感兴趣的:(java,开发语言)