gpt4 book ai didi

java - MQ 队列管理器在连接期间立即关闭 channel

转载 作者:行者123 更新时间:2023-11-30 04:19:29 26 4
gpt4 key购买 nike

根据我的问题,我读了很多文章,但仍然没有解决方案。

当我尝试创建与 WebSpereMQ 的连接时,我得到

MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009

阅读不同的文章后,我尝试通过以下方式更改 CCSID

MQEnvironment.properties.put(MQC.CCSID_PROPERTY, 1208); 
// also tried other CCSIDs like 1200,819,500

但我没有成功。我读到一个好主意是查看 MQ 日志文件以查明是否有另一个进程中断连接。但我无法调查该日志文件,因为它们是经过编码的,而且我不知道如何阅读它们。

问题:1)你知道如何读取MQ日志吗?如何使它们可读?2)您知道还有什么可能导致此类问题吗?

文件 AMQERR01.txt 中的日志:

----- amqxfdcp.c : 773 --------------------------------------------------------
04.07.2013 10:41:01 - Process(2880.3) User(Anton.Kasianchuk) Program(javaw.exe)
AMQ6118: An internal WebSphere MQ error has occurred (20806211)

EXPLANATION:
An error has been detected, and the MQ error recording routine has been called.
ACTION:
Use the standard facilities supplied with your system to record the problem
identifier, and to save the generated output files. Contact your IBM support
center. Do not discard these files until the problem has been resolved.
----- amqxfdcp.c : 735 --------------------------------------------------------
04.07.2013 10:41:01 - Process(2880.3) User(Anton.Kasianchuk) Program(javaw.exe)
AMQ6184: An internal WebSphere MQ error has occurred on queue manager MMSG01Q2.

EXPLANATION:
An error has been detected, and the WebSphere MQ error recording routine has
been called. The failing process is process 2880.
ACTION:
Use the standard facilities supplied with your system to record the problem
identifier, and to save the generated output files. Contact your IBM support
center. Do not discard these files until the problem has been resolved.
----- amqxfdcp.c : 773 --------------------------------------------------------
04.07.2013 10:41:05 - Process(2880.1) User(Anton.Kasianchuk) Program(javaw.exe)
AMQ6118: An internal WebSphere MQ error has occurred (20806211)

EXPLANATION:
An error has been detected, and the MQ error recording routine has been called.
ACTION:
Use the standard facilities supplied with your system to record the problem
identifier, and to save the generated output files. Contact your IBM support
center. Do not discard these files until the problem has been resolved.
----- amqxfdcp.c : 735 --------------------------------------------------------
04.07.2013 10:41:05 - Process(2880.1) User(Anton.Kasianchuk) Program(javaw.exe)
AMQ6184: An internal WebSphere MQ error has occurred on queue manager MMSG01Q2.

EXPLANATION:
An error has been detected, and the WebSphere MQ error recording routine has
been called. The failing process is process 2880.
ACTION:
Use the standard facilities supplied with your system to record the problem
identifier, and to save the generated output files. Contact your IBM support
center. Do not discard these files until the problem has been resolved.
----- amqxfdcp.c : 773 --------------------------------------------------------
04.07.2013 10:41:05 - Process(2880.1) User(Anton.Kasianchuk) Program(javaw.exe)
AMQ6118: An internal WebSphere MQ error has occurred (20806211)

EXPLANATION:
An error has been detected, and the MQ error recording routine has been called.
ACTION:
Use the standard facilities supplied with your system to record the problem
identifier, and to save the generated output files. Contact your IBM support
center. Do not discard these files until the problem has been resolved.
----- amqxfdcp.c : 735 --------------------------------------------------------
04.07.2013 10:41:05 - Process(2880.1) User(Anton.Kasianchuk) Program(javaw.exe)
AMQ6184: An internal WebSphere MQ error has occurred on queue manager MMSG01Q2.

EXPLANATION:
An error has been detected, and the WebSphere MQ error recording routine has
been called. The failing process is process 2880.
ACTION:
Use the standard facilities supplied with your system to record the problem
identifier, and to save the generated output files. Contact your IBM support
center. Do not discard these files until the problem has been resolved.
----- amqxfdcp.c : 773 --------------------------------------------------------
04.07.2013 10:41:05 - Process(2880.1) User(Anton.Kasianchuk) Program(javaw.exe)
AMQ6118: An internal WebSphere MQ error has occurred (20806211)

EXPLANATION:
An error has been detected, and the MQ error recording routine has been called.
ACTION:
Use the standard facilities supplied with your system to record the problem
identifier, and to save the generated output files. Contact your IBM support
center. Do not discard these files until the problem has been resolved.
----- amqxfdcp.c : 735 --------------------------------------------------------
04.07.2013 10:41:05 - Process(2880.1) User(Anton.Kasianchuk) Program(javaw.exe)
AMQ6184: An internal WebSphere MQ error has occurred on queue manager MMSG01Q2.

EXPLANATION:
An error has been detected, and the WebSphere MQ error recording routine has
been called. The failing process is process 2880.
ACTION:
Use the standard facilities supplied with your system to record the problem
identifier, and to save the generated output files. Contact your IBM support
center. Do not discard these files until the problem has been resolved.
----- amqxfdcp.c : 773 --------------------------------------------------------
04.07.2013 10:41:05 - Process(2880.1) User(Anton.Kasianchuk) Program(javaw.exe)
AMQ6118: An internal WebSphere MQ error has occurred (20806211)

EXPLANATION:
An error has been detected, and the MQ error recording routine has been called.
ACTION:
Use the standard facilities supplied with your system to record the problem
identifier, and to save the generated output files. Contact your IBM support
center. Do not discard these files until the problem has been resolved.
----- amqxfdcp.c : 735 --------------------------------------------------------
04.07.2013 10:41:05 - Process(2880.1) User(Anton.Kasianchuk) Program(javaw.exe)
AMQ6184: An internal WebSphere MQ error has occurred on queue manager MMSG01Q2.

EXPLANATION:
An error has been detected, and the WebSphere MQ error recording routine has
been called. The failing process is process 2880.
ACTION:
Use the standard facilities supplied with your system to record the problem
identifier, and to save the generated output files. Contact your IBM support
center. Do not discard these files until the problem has been resolved.
----- amqxfdcp.c : 773 --------------------------------------------------------
04.07.2013 10:45:41 - Process(3192.1) User(Anton.Kasianchuk) Program(crtmqm.exe)
AMQ6119: An internal WebSphere MQ error has occurred (Failed to create mapped
memory segment: [rc=536895769 errorCode=5])

EXPLANATION:
MQ detected an unexpected error when calling the operating system. The MQ error
recording routine has been called.
ACTION:
Use the standard facilities supplied with your system to record the problem
identifier, and to save the generated output files. Contact your IBM support
center. Do not discard these files until the problem has been resolved.
----- amqxfdcp.c : 735 --------------------------------------------------------
04.07.2013 10:45:41 - Process(3192.1) User(Anton.Kasianchuk) Program(crtmqm.exe)
AMQ6183: An internal WebSphere MQ error has occurred.

EXPLANATION:
An error has been detected, and the WebSphere MQ error recording routine has
been called. The failing process is process 3192.
ACTION:
Use the standard facilities supplied with your system to record the problem
identifier, and to save the generated output files. Contact your IBM support
center. Do not discard these files until the problem has been resolved.
----- amqxfdcp.c : 779 --

来自文件 amqtsivt.txt 的日志

10:45:39 IVT Started

10:45:41 Setup IVT Environment...

10:45:41 Creating Queue Manager...

10:45:42 Starting Queue Manager...

10:45:42 Ready.

10:45:42 Connect to QueueManager(1), CC:2 - RC:2058

10:45:42 Connect to QueueManager(2), CC:2 - RC:2058

10:45:42 Open queue, CC:2 - RC:2018

10:45:42 Put Message, CC:2 - RC:2018

10:45:42 Message Put: AMQMTSIVT

10:45:42 Get Message, CC:2 - RC:2018

10:45:42 Message Returned:

10:45:42 Close queue, CC:2 - RC:2018

10:45:42 Started thread 01

10:45:42 MQOpen in Child Thread, CC:2 - RC:2018

10:45:42 MQPut in Child Thread, CC:2 - RC:2018

10:45:42 MQGet in Child Thread, CC:2 - RC:2018

10:45:42 MQClose in Child Thread, CC:2 - RC:2018

10:45:42 Child Thread finished 43 cycles

10:45:43 Started thread 02

10:45:43 MQOpen in Child Thread, CC:2 - RC:2018

10:45:43 MQPut in Child Thread, CC:2 - RC:2018

10:45:43 MQGet in Child Thread, CC:2 - RC:2018

10:45:43 MQClose in Child Thread, CC:2 - RC:2018

10:45:43 Child Thread finished 46 cycles

10:45:44 Started thread 03

10:45:44 MQOpen in Child Thread, CC:2 - RC:2018

10:45:44 MQPut in Child Thread, CC:2 - RC:2018

10:45:44 MQGet in Child Thread, CC:2 - RC:2018

10:45:44 MQClose in Child Thread, CC:2 - RC:2018

10:45:44 Child Thread finished 49 cycles

10:45:45 Started thread 04

10:45:45 MQOpen in Child Thread, CC:2 - RC:2018

10:45:45 MQPut in Child Thread, CC:2 - RC:2018

10:45:45 MQGet in Child Thread, CC:2 - RC:2018

10:45:45 MQClose in Child Thread, CC:2 - RC:2018

10:45:45 Child Thread finished 3 cycles

10:45:45 Started thread 05

10:45:45 MQOpen in Child Thread, CC:2 - RC:2018

10:45:45 MQPut in Child Thread, CC:2 - RC:2018

10:45:45 MQGet in Child Thread, CC:2 - RC:2018

10:45:45 MQClose in Child Thread, CC:2 - RC:2018

10:45:45 Child Thread finished 3 cycles

10:45:45 Started thread 06

10:45:45 MQOpen in Child Thread, CC:2 - RC:2018

10:45:45 MQPut in Child Thread, CC:2 - RC:2018

10:45:45 MQGet in Child Thread, CC:2 - RC:2018

10:45:45 MQClose in Child Thread, CC:2 - RC:2018

10:45:45 Child Thread finished 3 cycles

10:45:45 Started thread 07

10:45:45 MQOpen in Child Thread, CC:2 - RC:2018

10:45:45 MQPut in Child Thread, CC:2 - RC:2018

10:45:45 MQGet in Child Thread, CC:2 - RC:2018

10:45:45 MQClose in Child Thread, CC:2 - RC:2018

10:45:45 Child Thread finished 3 cycles

10:45:45 Started thread 08

10:45:45 MQOpen in Child Thread, CC:2 - RC:2018

10:45:45 MQPut in Child Thread, CC:2 - RC:2018

10:45:45 MQGet in Child Thread, CC:2 - RC:2018

10:45:45 MQClose in Child Thread, CC:2 - RC:2018

10:45:45 Child Thread finished 3 cycles

10:45:46 Started thread 09

10:45:46 MQOpen in Child Thread, CC:2 - RC:2018

10:45:46 MQPut in Child Thread, CC:2 - RC:2018

10:45:46 MQGet in Child Thread, CC:2 - RC:2018

10:45:46 MQClose in Child Thread, CC:2 - RC:2018

10:45:46 Child Thread finished 6 cycles

10:45:47 User cancelled action

10:45:47 Started thread 10

10:45:47 MQOpen in Child Thread, CC:2 - RC:2018

10:45:47 MQPut in Child Thread, CC:2 - RC:2018

10:45:47 MQGet in Child Thread, CC:2 - RC:2018

10:45:47 MQClose in Child Thread, CC:2 - RC:2018

10:45:47 Child Thread finished 9 cycles

10:45:48 Error(s) encountered during thread execution

10:45:48 All threads terminated

10:45:48 Disconnect from QueueManager (1), CC:2 - RC:2018

10:45:48 Disconnect from QueueManager (2), CC:2 - RC:2018

10:45:48 Ready.

10:45:49 Cleaning Up...

10:45:49 Deleting MTS Package

10:45:49 Access MTS Admin Catalog, OK

10:45:52 Get MTS Packages, OK

10:45:52 Ending Queue Manager...

10:45:52 Deleting Queue Manager...

10:45:53 Ready.

来自\Qmgrs\MMSG01Q2\errors\AMQERR01.txt 的日志

----- amqrmrsa.c : 468 --------------------------------------------------------
05.07.2013 09:41:10 - Process(6004.21) User(j2mquser) Program(amqrmppa.exe)
AMQ9502: Type of channel not suitable for action requested.

EXPLANATION:
The operation requested cannot be performed on channel 'CLOUD.MMSG01Q2.S1'.
Some operations are only valid for certain channel types. For example, you can
only ping a channel from the end sending the message.
ACTION:
Check whether the channel name is specified correctly. If it is check that the
channel has been defined correctly.
----- amqrmsaa.c : 1072 -------------------------------------------------------
05.07.2013 09:41:10 - Process(6004.21) User(j2mquser) Program(amqrmppa.exe)
AMQ9999: Channel program ended abnormally.

EXPLANATION:
Channel program 'CLOUD.MMSG01Q2.S1' ended abnormally.
ACTION:
Look at previous error messages for channel program 'CLOUD.MMSG01Q2.S1' in the
error files to determine the cause of the failure.
----- amqrmrsa.c : 468 --------------------------------------------------------

最佳答案

您指的是哪些日志? MQ 错误日志不是二进制的。您可以在(在 Windows 上)WebSphere MQ 安装文件夹下找到它们。特定于队列管理器的错误日志将位于\Qmgrs\"qmgr"\文件夹下。请查看这些错误日志,它们可能包含有关您的问题的信息。

检查您在应用程序中使用的端口是否是队列管理器正在监听的端口。您是否在队列管理器端口上启用了 SSL,并且您的应用程序不使用 SSL?

关于java - MQ 队列管理器在连接期间立即关闭 channel ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17452912/

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