Topic
  • 2 replies
  • Latest Post - ‏2017-08-03T04:29:25Z by Hyginous
ManuDeWitte
ManuDeWitte
3 Posts

Pinned topic Setting the client channel definition table URL gives me MQRC_CLIENT_ERROR

‏2011-04-06T14:20:40Z |
Hi

I'm trying to create a client connection to a queue manager in Java, by using a client channel definition table (WebSphere MQ 7.0.1.3). 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();

qcf.setHostName("localhost");
qcf.setPort("1414");
qcf.setQueueManager("QM1");
qcf.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
qcf.setUseConnectionPooling(true);
qcf.setCCDTURL(ccdtURL);

String userName = "";
String password = "";
qcf.createConnection(userName, password); //giving me the error 2278
This is a link with an explanation of the error:
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.amqzao.doc/fm14400_.htm

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.
Updated on 2011-04-19T07:34:59Z at 2011-04-19T07:34:59Z by ManuDeWitte
  • ManuDeWitte
    ManuDeWitte
    3 Posts

    Re: Setting the client channel definition table URL gives me MQRC_CLIENT_ERROR

    ‏2011-04-07T11:37:20Z  
    I'm getting this error with both MQ for Java and MQ for JMS :-(
  • ManuDeWitte
    ManuDeWitte
    3 Posts

    Re: Setting the client channel definition table URL gives me MQRC_CLIENT_ERROR

    ‏2011-04-19T07:34:59Z  
    The configuration of my channel was not correct.