I have also encountered this error. At that time, the queue manager, queue, and channel were created one by one, but an error was reported.
Hostname = 192.168.8.46
Channel = Channels
Qmanager = wnms3_qm
Mqje001: complete Code It is "2" and the reason is "2059 ".
Com. IBM. MQ. mqexception: mqje001: the completion code is "2" and the reason is "2059 ".
At com. IBM. MQ. mqmanagedconnectionj11. <init> (mqmanagedconnectionj11.java: 229)
At com. IBM. MQ. mqclientmanagedconnectionfactoryj11. _ createmanagedconnection (mqclientmanagedconnectionfactoryj11.java: 500)
At com. IBM. MQ. mqclientmanagedconnectionfactoryj11.createmanagedconnection (mqclientmanagedconnectionfactoryj11.java: 541)
At com. IBM. MQ. storedmanagedconnection. <init> (storedmanagedconnection. Java: 95)
At com. IBM. MQ. mqsimpleconnectionmanager. allocateconnection (mqsimpleconnectionmanager. Java: 182)
At com. IBM. MQ. mqqueuemanagerfactory. obtainbasemqqueuemanager (mqqueuemanagerfactory. Java: 870)
At com. IBM. MQ. mqqueuemanagerfactory. Procure (mqqueuemanagerfactory. Java: 756)
At com. IBM. MQ. mqqueuemanagerfactory. constructqueuemanager (mqqueuemanagerfactory. Java: 704)
At com. IBM. MQ. mqqueuemanagerfactory. createqueuemanager (mqqueuemanagerfactory. Java: 169)
At com. IBM. MQ. mqqueuemanager. <init> (mqqueuemanager. Java: 594)
At testsend. Main (testsend. Java: 32)
Caused by: COM. IBM. MQ. jmqi. jmqiexception: CC = 2; rc = 2059; amq9503: channel negotiation failed. [3 = Bytes ]
At com. IBM. MQ. jmqi. Remote. Internal. system. remoteconnection. initsess (remoteconnection. Java: 1435)
At com. IBM. MQ. jmqi. Remote. Internal. system. remoteconnection. Connect (remoteconnection. Java: 991)
At com. IBM. MQ. jmqi. Remote. Internal. system. remoteconnectionpool. getconnection (remoteconnectionpool. Java: 293)
At com. IBM. MQ. jmqi. Remote. Internal. remotefap. jmqiconnect (remotefap. Java: 1371)
At com. IBM. MQ. mqsession. mqconnx_j (mqsession. Java: 924)
At com. IBM. MQ. mqmanagedconnectionj11. <init> (mqmanagedconnectionj11.java: 224)
... 10 more
Solution: After careful analysis, I can view information on some official IBM websites,It should beProgramCreate a queue manager to set charactersSetEncoding Problems.
Mqenvironment. ccsid = 1383; // The default character set encoding is installed on the MQ server.