|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQJMS1034E |
« View previous topic :: View next topic » |
Author |
Message
|
Rohit_ |
Posted: Wed Nov 26, 2008 11:14 am Post subject: MQJMS1034E |
|
|
 Novice
Joined: 10 Jan 2008 Posts: 24
|
Hi Forum,
I am getting below exceptions on my logs :
MQJMS1034E MessageListener threw: java.lang.NullPointerException
MQJMS1022E failed to redirect message
Because of this,No messages are coming to my application.
Searched google/forum but could'nt figure out the reason.
:help: |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Nov 26, 2008 11:29 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Articulate the problem. Give all the context and error information including the JMSException if any and the LinkedException if any.
This is like saying I entered the rocket, pushed the "toMars" button and nothing happened.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Rohit_ |
Posted: Wed Nov 26, 2008 12:13 pm Post subject: |
|
|
 Novice
Joined: 10 Jan 2008 Posts: 24
|
I just get these two lines and nuthing else in my logs.
If I comment the code,where i am setting the MessageListener then I don't get this exception
consumer.setMessageListener(new TradeMsgListener((m_mqSession, "FUT") );
I create a connection then seesion,consumer & producer.
I guess while I am setting the listener,my application starts getting the messages. so i get this exception??
From api :
The effect of calling MessageConsumer.setMessageListener while messages are being consumed by an existing listener or the consumer is being used to consume messages synchronously is undefined |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Nov 26, 2008 3:10 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Rohit_ wrote: |
I just get these two lines and nuthing else in my logs.
If I comment the code,where i am setting the MessageListener then I don't get this exception
consumer.setMessageListener(new TradeMsgListener((m_mqSession, "FUT") );
I create a connection then seesion,consumer & producer.
I guess while I am setting the listener,my application starts getting the messages. so i get this exception??
From api :
The effect of calling MessageConsumer.setMessageListener while messages are being consumed by an existing listener or the consumer is being used to consume messages synchronously is undefined |
Can we see the code for the TradeMsgListener ?
As well it looks like a closing ')' is missing: your line with consumer.setMessageListener has 3 '(' but only 2 ')'... How did that compile? Or was the double '((' after new TradeMsgListener just a typo?
To be safe I would create the TradeMsgListener outside of the setMessageListener call. If ever anything goes wrong in this call you'll have hell to pinpoint it. Your null pointer exception could come from the fact that you could not create the TradeMsgListener and are now passing a null argument....
Have fun  _________________ 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
|
|
|
|