I have also encountered this error, when the queue manager, queues, channels are all created, but is an error
hostname=192.168.8.46
Channel=ch1
Qmanager=wnms3_qm
MQJE001: The completion code 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=ch1]
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)
... Ten more
Solution: After my careful analysis, and on some of the IBM official website to view the data, should be the program to create a queue manager set up the character set encoding problem.
Mqenvironment.ccsid = 1383; MQ Server installs the default character set encoding
Article from: http://blog.csdn.net/lizhitao/article/details/6039462