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 » Getting Error when starting a Get Operation

Post new topic  Reply to topic
 Getting Error when starting a Get Operation « View previous topic :: View next topic » 
Author Message
ganeshxp
PostPosted: Wed Jul 29, 2009 5:05 am    Post subject: Getting Error when starting a Get Operation Reply with quote

Newbie

Joined: 29 Jul 2009
Posts: 3

Hi I am using Business Objects Data Services Tool, and connect to the MQ Series Server using the JMS Adapter.

I am getting the below message for when I start a GET Operation

JMS GET OPERATION ERROR : ERROR IN JMS INITIALIZATION.
javax.jms.InvalidDestinationException: MQJMS2008: failed to open MQ
queue at com.ibm.mq.jms.MQQueueServices.getQueueOpenException
(MQQueueServices.java:412) at
com.ibm.mq.jms.JMSServicesMgr.getQueueOpenException
(JMSServicesMgr.java:120) at com.ibm.mq.jms.MQSession.createQReceiver
(MQSession.java:6000) at com.ibm.mq.jms.MQQueueSession.createReceiver
(MQQueueSession.java:278) at
com.ibm.mq.jms.MQQueueSession.createReceiver(MQQueueSession.java:256)"

Please anyone has any idea of this messgae?
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Wed Jul 29, 2009 5:11 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

Whats the MQ reason code?

There should be more info in the exception trace which will help identify the issue
Back to top
View user's profile Send private message
ganeshxp
PostPosted: Wed Jul 29, 2009 5:50 am    Post subject: Reply with quote

Newbie

Joined: 29 Jul 2009
Posts: 3

In my trace log of my application I am not able to find any reason code????

By the way, my Websphere MQ server version is 6.0 and client is also same.

Is that true that we need to compulsorily use Username & Password from MQ v6.0? Somewhere I hered like that.

Also I get this Message previously:
java.lang.ClassCastException:
com.ibm.jms.JMSBytesMessage
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Wed Jul 29, 2009 6:17 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

ganeshxp wrote:
In my trace log of my application I am not able to find any reason code????


You may need to change the code to print all of the exception out but it will be most helpful to get to the MQRC.

Quote:

Is that true that we need to compulsorily use Username & Password from MQ v6.0? Somewhere I hered like that.


no

Quote:


Also I get this Message previously:
java.lang.ClassCastException:
com.ibm.jms.JMSBytesMessage


Are you explicity casting a bytes message to some other type (eg text message) probably with a line of code like:
Code:
TextMessage tm = (TextMessage) message
Back to top
View user's profile Send private message
anilit99
PostPosted: Wed Jul 29, 2009 8:10 am    Post subject: Reply with quote

Voyager

Joined: 28 May 2009
Posts: 75
Location: London, UK

Extract the linked exception from your JMSException. You can find the error code there.

I am not sure why you are getting the cast exception, since you weren't able to send the message across.
_________________
"I almost care !"
Back to top
View user's profile Send private message
anilit99
PostPosted: Wed Jul 29, 2009 8:13 am    Post subject: Reply with quote

Voyager

Joined: 28 May 2009
Posts: 75
Location: London, UK

oops my bad.

You were doing a GET and you were trying to cast two different types as already been pointed.
_________________
"I almost care !"
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Getting Error when starting a Get Operation
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.