Author |
Message
|
Vitor |
Posted: Fri Oct 27, 2006 4:21 am Post subject: Re: eroor in reading a message from a MQ queue |
|
|
 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 |
|
 |
jefflowrey |
Posted: Fri Oct 27, 2006 4:43 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
dvishu78 |
Posted: Sat Oct 28, 2006 12:46 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Sat Oct 28, 2006 7:24 am Post subject: |
|
|
 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 |
|
 |
madhoo |
Posted: Mon Oct 30, 2006 10:38 pm Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Tue Oct 31, 2006 3:58 am Post subject: |
|
|
 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 |
|
 |
dvishu78 |
Posted: Tue Oct 31, 2006 7:11 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Tue Oct 31, 2006 7:49 pm Post subject: |
|
|
 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 |
|
 |
dvishu78 |
Posted: Thu Nov 02, 2006 8:39 pm Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Nov 02, 2006 9:10 pm Post subject: |
|
|
 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 |
|
 |
dvishu78 |
Posted: Sat Nov 04, 2006 3:51 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Sat Nov 04, 2006 5:50 am Post subject: |
|
|
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 |
|
 |
|