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 » eroor in reading a message from a MQ queue

Post new topic  Reply to topic Goto page Previous  1, 2
 eroor in reading a message from a MQ queue « View previous topic :: View next topic » 
Author Message
Vitor
PostPosted: Fri Oct 27, 2006 4:21 am    Post subject: Re: eroor in reading a message from a MQ queue Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

fjb_saper wrote:

DID YOU APPLY THE FIXPACK?

Try it again @version 6.0.1.0



This sounds like quite clear advice to me. Have you tried this? What was the outcome?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Oct 27, 2006 4:43 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/csqzaw1487.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
dvishu78
PostPosted: Sat Oct 28, 2006 12:46 am    Post subject: Reply with quote

Novice

Joined: 15 Jun 2006
Posts: 20
Location: INDIA

hi Saper,

where you refering to the Version of WAS or MQ series

thanks
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Sat Oct 28, 2006 7:24 am    Post subject: Reply with quote

Grand High Poobah

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

dvishu78 wrote:
hi Saper,

where you refering to the Version of WAS or MQ series

thanks


MQ Series you should not run 6.0 without at least the refresh pack.
Best install the latest fix pack.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
madhoo
PostPosted: Mon Oct 30, 2006 10:38 pm    Post subject: Reply with quote

Newbie

Joined: 27 Oct 2006
Posts: 8

Hi saper
istalled fresf pack and run we are able to end messages correctly using JMS API while receiving getting the same error and iam seeing the quedepth it is decreasing every time i run my receive program do we need to do any conversions as the messages iam trying to receieve are put by MainFrame Application

working fine with GET of MQ API

thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Oct 31, 2006 3:58 am    Post subject: Reply with quote

Grand High Poobah

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

madhoo wrote:
Hi saper
istalled fresf pack and run we are able to end messages correctly using JMS API while receiving getting the same error and iam seeing the quedepth it is decreasing every time i run my receive program do we need to do any conversions as the messages iam trying to receieve are put by MainFrame Application

working fine with GET of MQ API

thanks

Did you replace the client jars with the newer ones after the upgrade to the latest fixpack? We are using WAS with JMS and have no problems...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
dvishu78
PostPosted: Tue Oct 31, 2006 7:11 am    Post subject: Reply with quote

Novice

Joined: 15 Jun 2006
Posts: 20
Location: INDIA

Hi Saper,

as iam not getting the message with TextMessage
i tried using BytesMessage but trying to convert to TextMessage iam getting
Class CastNotSupported Exception

BytesMessage bms=(BytesMessage) qreceiver.receive();

so i gave SOP to bms with that i got the details as below

JMS Message class: jms_bytes
JMSType: null
JMSDeliveryMode: 1
JMSExpiration: 0
JMSPriority: 0
JMSMessageID: ID:c3e2d840c5e4f5d84040404040404040bfa28266a9b9972f
JMSTimestamp: 1162286292920
JMSCorrelationID:null
JMSDestination: null
JMSReplyTo: null
JMSRedelivered: false
JMSXDeliveryCount:1
JMS_IBM_MsgType:8
JMSXAppID:CAILIB
JMS_IBM_Format:
JMS_IBM_Encoding:785
JMS_IBM_PutApplType:2
JMS_IBM_Character_Set:500
JMSXUserID:cailib
JMS_IBM_PutTime:09181292
JMS_IBM_PutDate:20061031
Integer encoding: 1, Floating point encoding 768
e385a2a3409485a2a281878540969540d683a340f3f040d496958481a84086969940e589a288407a
40f3

what metod to be used to get data as bytes from this and convert string iam trying lot to get or read message
please if u find any way advice me.
thanks
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Tue Oct 31, 2006 7:49 pm    Post subject: Reply with quote

Grand High Poobah

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

Well if it is indeed text data have the sending application set the format as MQSTR in the message descriptor.(MQMD) You should then be able to cast the message to a TextMessage
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
dvishu78
PostPosted: Thu Nov 02, 2006 8:39 pm    Post subject: Reply with quote

Novice

Joined: 15 Jun 2006
Posts: 20
Location: INDIA

Hi saper,

done as you said and got the error cleared now iam able to send and get messages from my machine but when i had done the same setup of JMS and ran same code iam getting following error

caught JMSException: javax.jms.JMSException: MQJMS2007: failed to send message to MQ queue
Linked Exception is : com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2009



please can suggest me what could be the reason


thanks
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Thu Nov 02, 2006 9:10 pm    Post subject: Reply with quote

Grand High Poobah

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

dvishu78 wrote:
Completion Code 2, Reason 2009


Network problems possibly? Search this site with 2009 and you should get tons of hits...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
dvishu78
PostPosted: Sat Nov 04, 2006 3:51 am    Post subject: Reply with quote

Novice

Joined: 15 Jun 2006
Posts: 20
Location: INDIA

Hi Saper,

thanks for reply i did the same setup on other machine and ran my code iam getting the following error

caught JMSException: javax.jms.JMSException: MQJMS2007: failed to send message to MQ queue
javax.jms.JMSException: MQJMS2007: failed to send message to MQ queue
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:553)
at com.ibm.mq.jms.MQMessageProducer.sendInternal(MQMessageProducer.java:1589)
at com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1012)
at com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1046)
at com.ibm.jee.SendMsg.main(SendMsg.java:74)
at Main.main(Main.java:14)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:5
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:649)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:435)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:5
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:190)
Linked Exception is : com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2009


it is bcoz of refresh pack not installed on the new machine?

thanks
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Sat Nov 04, 2006 5:50 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

RC2009 is a generic client channel error.

There are a thousand reasons you could be getting it.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ Java / JMS » eroor in reading a message from a MQ queue
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.