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 » MQJMS1034E

Post new topic  Reply to topic
 MQJMS1034E « View previous topic :: View next topic » 
Author Message
Rohit_
PostPosted: Wed Nov 26, 2008 11:14 am    Post subject: MQJMS1034E Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Nov 26, 2008 11:29 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Rohit_
PostPosted: Wed Nov 26, 2008 12:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Nov 26, 2008 3:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQJMS1034E
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.