How to fix 'JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED')' How to fix 'JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED')' docker docker

How to fix 'JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED')'


Just fixed this error. I added the 'mqm' user I was using on the docker container to my createQueueConnection call like this:

MQQueueConnection queueConn = (MQQueueConnection) cf.createQueueConnection("admin1", "");


this is the typical error when the MQ client does not provide conn creds, it can also happen in the WebSphere log when you forgot to specify creds in the Integrated Console