I'm trying to create a client connection to a queue manager in Java, by using a client channel definition table (WebSphere MQ 188.8.131.52). But I keep on getting the "com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2278" when I try to create the connection.
I can connect to the queue when I don't use a CCDT, but just specifiy a channel. Just to be sure, also check in code that the CCDT URL points to an existing file (java.net.File#exists and java.net.File#isFile).
Basically, my code looks like this:
URL ccdtURL = new URL("file:///c:/AMQCLCHL.TAB");
MQConnectionFactory qcf = new MQConnectionFactory();
String userName = "";
String password = "";
qcf.createConnection(userName, password); //giving me the error 2278
This is a link with an explanation of the error:
The resolutions suggested on that page:
- Ensure that at least one of ClientConnOffset and ClientConnPtr is zero.
- Ensure that the field used points to accessible storage.
- Ensure that the URL of the client channel definition table is correct.
I do not understand the first and second resolution as I'm new to WebSphere MQ.
Any help would be highly appreciated.