An error is returned when Java connects to MQ. mqje001 fails channel negotiation: the completion code is "2" and the reason is "2059 ".

Source: Internet
Author: User

 

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.