Note that there are some explanatory texts on larger screens.

plurals
  1. POJava program MQ 7 connection issue
    text
    copied!<p>I am trying to connect to the MQ7 Server below is the code : </p> <pre><code>Hashtable props = new Hashtable(); // Change the host name to your host name. Leave it as it is if // queue manager is on the same machine props.put(CMQC.HOST_NAME_PROPERTY, serverConfig.server); props.put(CMQC.PORT_PROPERTY, serverConfig.port); props.put(CMQC.CHANNEL_PROPERTY, serverConfig.sChannel); qMgr = new MQQueueManager(qManager, props); System.out.println("Queue Manager : "+qMgr+" null"); int openOptions = MQC.MQOO_INPUT_AS_Q_DEF | MQC.MQOO_OUTPUT | MQC.MQOO_INQUIRE; queue = qMgr.accessQueue(queueName, openOptions); System.out.println("Successfully registered"); //creating msg message = new MQMessage(); </code></pre> <p>it's getting connected but after sending one message its throwing a error</p> <pre><code>" MQJE001: Completion Code '1', Reason '2068'. com.ibm.mq.MQException: MQJE001: Completion Code '1', Reason '2068'. strngError: No valid counters. strngError: No valid counters. at com.ibm.mq.MQManagedObject.inquire(MQManagedObject.java:269) at com.ibm.mq.MQManagedObject.getInt(MQManagedObject.java:479) at com.ibm.mq.MQQueue.getCurrentDepth(MQQueue.java:995) at middlewarex.IBMmq.getQueueCount(IBMmq.java:227) at middlewarex.ThreadScenario.run(ThreadScenario.java:94) at java.lang.Thread.run(Thread.java:722) </code></pre> <p>pointing on the line </p> <pre><code>" public long getQueueCount() throws Exception{ return queue.getCurrentDepth(); } " </code></pre> <p>Kindly Help me</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload