ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ JMS Error MQCT_NONE

Post new topic  Reply to topic
 MQ JMS Error MQCT_NONE « View previous topic :: View next topic » 
Author Message
anveshita
PostPosted: Thu Jul 02, 2009 10:04 am    Post subject: MQ JMS Error MQCT_NONE Reply with quote

Master

Joined: 27 Sep 2004
Posts: 254
Location: Jambudweepam

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();

      cf.setHostName("xxx.xx.xxx.xxxx");
      cf.setPort(1414);
      cf.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
      cf.setQueueManager("QM_1");
      cf.setChannel("SYSTEM.ADMIN.SVRCONN");
      MQQueueConnection connection = (MQQueueConnection) cf.createQueueConnection();


Can you please help to find why I am getting the error MQCT_NONE
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jul 02, 2009 11:37 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Possibly because
  • 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 ....

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ JMS Error MQCT_NONE
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.