Writing a SimplePTP to connect to a queue manager to put a message. Getting the following error:
Code:
Exception in thread "main" java.lang.NoSuchFieldError: MQCT_NONE
at com.ibm.mq.MQConnectionOptions.<clinit>(MQConnectionOptions.java:67)
at com.ibm.mq.jms.MQConnection.<init>(MQConnection.java:512)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:73)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:185)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:112)
at com.chandra.common.mq.SimplePTP.main(SimplePTP.java:42)
Following is the code segment:
Code:
MQQueueConnectionFactory cf = new MQQueueConnectionFactory();
The destination is not reachable (firewall/tcp/ip/router problem)
QM_1 is not running
QM_1 is not running on host xxx.xxx.xxx.xxx port 1414 and chl SYSTEM.ADMIN.SVRCONN
you did not specify the right form of connect for a client connection:
cf.createConnection(user,dummypasswd), for a standalone...
Usually this is taken care of by the JAAS alias in J2EE...
Note that the user should be less or equal to 12 chars....
You have a tool like mqipt in the communications mix and you did not check those logs.
You have ssl on the channel and have trouble with the certs or the handshake...
etc...
However and as you say MQCT_NONE, I suspect somewhere an error setting the correlationId to MQCI_NONE... typo between CT and CI ....
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum