Author |
Message
|
ravip |
Posted: Thu Mar 10, 2005 12:19 pm Post subject: JMSException: com.ibm.mq.jms.NoBrokerResponseException: MQJM |
|
|
Novice
Joined: 22 Feb 2005 Posts: 23
|
I've seen a bunch of posts on this but no resolution as such. Is there a definitive reason why this happens and if so a definitive resolution to this? |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Mar 10, 2005 12:26 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
It can be a number of things which makes it hard to say what exactly is wrong. The two things that I always check:
- Make sure your broker really is running: It is amazing how many times it doesn't get started and the error is legitimate.
- Make sure you don't have any 'bad' messages on the broker's input queue: It seems like a message that is bad gets stuck in a retry state while your good message gets stuck at the back of the queue. I usually solve this problem by stopping the broker and clearing its queue. |
|
Back to top |
|
 |
ravip |
Posted: Thu Mar 10, 2005 6:11 pm Post subject: |
|
|
Novice
Joined: 22 Feb 2005 Posts: 23
|
are you not going to loose the messages if you clear out the broker queue? is that the only way out of it? I restarted the queue manager on that machine and everything started working ok, is there a more elegant solution to this? |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Mar 10, 2005 7:23 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Yes, you will lose messages, and they may be important. I've only seen this error in development environments and the quickest solution was always the clear. I'm guessing that shutting down the qmgr removed the messages since they were probably non-persistent. To be honest, I'd suggest that the next time it happens, you take a look at the messages on the queue. You should be able to tell from looking what might be wrong which might shed some light on the bad message in the first place. |
|
Back to top |
|
 |
ravip |
Posted: Fri Mar 11, 2005 3:04 pm Post subject: |
|
|
Novice
Joined: 22 Feb 2005 Posts: 23
|
yeah if the messages are non-persistent then they will be removed after the restart. In our case all the messages were redelivered since we had durable subscribers on those topics, but still restart is not a very convincing reply, may be as you said I need to look at the messages to see whats wrong?
can you tell me what you meant by bad messages? are you referring to improper message format and errors like that? |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Mar 14, 2005 7:27 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
ravip wrote: |
can you tell me what you meant by bad messages? are you referring to improper message format and errors like that? |
Messages that have an improper format. You can use the amqsbcg program to browse the queue and look over the header. |
|
Back to top |
|
 |
|