|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MDB Failing to Pickup Message, RFH Problem? |
« View previous topic :: View next topic » |
Author |
Message
|
Aktavian |
Posted: Mon Apr 30, 2007 8:56 am Post subject: MDB Failing to Pickup Message, RFH Problem? |
|
|
Newbie
Joined: 13 Mar 2007 Posts: 5
|
I was hoping someone might shed some light on this problem. Currently I have a java application which uses Websphere to send/receive message with a mainframe using MQSeries (which is the older name of Websphere MQ I guess).
(1)What's happening is, when I send a JMS message to them, what the mainframe application does is strip the RFH from the original message and echo it back in their MQMessage. This works perfectly fine.
I don't know too much about the Websphere MQ middleware, but I'm assuming it does some kind of conversaion with JMS and MQ messages.
(2) However, the mainframe is suppose to send a message at a later time after we send a message and receive a reply. In this message, there's nothing we need to use the RFH for so we told them not to write/send one.
So in (1), the message structure from the mainfame seems like it should be MQMD-RFH-DATA. In (2), the message structure seems like it should be MQMD-DATA. If this is wrong please correct me.
Now in (1), this works perfect fine. We can receive messages via MDB's. However, in (2), everytime the MDB tries to pick up a message, it throws some really cryptic exception which I'm not able to understand and it just leaves the message in the queue. My question is, is the absence of a RFH in the MQMessage causing a problem with the middleware in term of converting a MQ message back toa JMS message?
Thanks for the help in advance. |
|
Back to top |
|
 |
teal |
Posted: Mon Apr 30, 2007 9:13 am Post subject: |
|
|
 Acolyte
Joined: 15 Dec 2004 Posts: 66
|
Quote: |
everytime the MDB tries to pick up a message, it throws some really cryptic exception |
What is this exception. Are you getting the linked MQ exception to get the actual MQ RC?
We can help you much better with this info. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Apr 30, 2007 9:44 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Are you checking for a ClassCastException?
If the MDB tries to cast the message from Message to TextMessage and the format of the message(MQMD-MQFMT) was not set to MQFMT-STRING you are in trouble...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Aktavian |
Posted: Mon Apr 30, 2007 10:57 am Post subject: Error Message |
|
|
Newbie
Joined: 13 Mar 2007 Posts: 5
|
The error message doesn't really seem to provide any insight of the related problem, but here it is:
[12/30/06 13:56:20:815 CST] 00000018 WorkSpaceMana A WKSP0023I: Workspace configuration consistency check is enabled.
[12/30/06 13:56:25:294 CST] 0000003b ServerSession W WMSG0031E: Exception processing JMS Message for MDB ProxyExecutionMdb, JMSDestination jms/BLOCKORDEREXEC_INPUT : java.lang.StringIndexOutOfBoundsException: String index out of range: 808464473
at java.lang.String.checkBounds(String.java(Compiled Code))
at java.lang.String.<init>(String.java(Compiled Code))
at com.ibm.mq.jms.MQJMSMessage.createJMSMessage(MQJMSMessage.java:427)
at com.ibm.mq.jms.MQSession.consume(MQSession.java:3060)
at com.ibm.mq.jms.MQSession.run(MQSession.java:1612)
at com.ibm.ejs.jms.JMSSessionHandle.run(JMSSessionHandle.java:960)
at com.ibm.ejs.jms.listener.ServerSession.connectionConsumerOnMessage(ServerSession.java:813)
at com.ibm.ejs.jms.listener.ServerSession.onMessage(ServerSession.java:614)
at com.ibm.ejs.jms.listener.ServerSession.dispatch(ServerSession.java:581)
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(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.ejs.jms.listener.ServerSessionDispatcher.dispatch(ServerSessionDispatcher.java:37)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:91)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:127)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:456)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
[12/30/06 13:56:25:304 CST] 0000003b ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "onMessage" on bean "BeanId(Phase3Proxy#ProxyEJB.jar#ProxyExecutionMdb, null)". Exception data: java.lang.reflect.InvocationTargetException
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(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.ejs.jms.listener.ServerSessionDispatcher.dispatch(ServerSessionDispatcher.java:37)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:91)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:127)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:456)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 808464473
at java.lang.String.checkBounds(String.java(Compiled Code))
at java.lang.String.<init>(String.java(Compiled Code))
at com.ibm.mq.jms.MQJMSMessage.createJMSMessage(MQJMSMessage.java:427)
at com.ibm.mq.jms.MQSession.consume(MQSession.java:3060)
at com.ibm.mq.jms.MQSession.run(MQSession.java:1612)
at com.ibm.ejs.jms.JMSSessionHandle.run(JMSSessionHandle.java:960)
at com.ibm.ejs.jms.listener.ServerSession.connectionConsumerOnMessage(ServerSession.java:813)
at com.ibm.ejs.jms.listener.ServerSession.onMessage(ServerSession.java:614)
at com.ibm.ejs.jms.listener.ServerSession.dispatch(ServerSession.java:581)
... 10 more |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue May 01, 2007 8:01 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You have an IndexOutOfBoundsException....
So what are you triying to do with an index. Is it 0 or 1 based?
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|