You're catching JMSException, but a RuntimException is being thrown
(according to the debug). If you want to catch RuntimeException, do

  catch (RuntimeException e)

not

  catch (JMSException e)

:-)

D.

-- 
Danny Yates
 


-----Original Message-----
From: Ionel GARDAIS [mailto:[EMAIL PROTECTED] 
Sent: 21 January 2004 16:17
To: jboss-user
Subject: [JBoss-user] MessageListener threw a RuntimeException


Hi,

i am getting the followinf warning everytime my topic
MessageListener gets a message :

2004-01-21 17:08:59,849 [MessageListenerThread -
performance] WARN  org.jboss.mq.SpyMessageConsumer -
Message listener
[EMAIL PROTECTED]
threw a RuntimeException.

What is this exception ?

Everything I do inside the onMessage method is
surrounded by a try/catch JMSException block

I saw this since I use log4j for logging purpose.

thanks,
ionel

_________________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Notice to recipient:
The information in this internet e-mail and any attachments is confidential
and may be privileged. It is intended solely for the addressee. If you are
not the intended addressee please notify the sender immediately by
telephone. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful.
When addressed to external clients any opinions or advice contained in this
internet e-mail are subject to the terms and conditions expressed in any
applicable governing terms of business or client engagement letter issued by
the pertinent Bank of America group entity.
If this email originates from the U.K. please note that Bank of America,
N.A., London Branch, Banc of America Securities Limited and Banc of America
Futures Incorporated are regulated by the Financial Services Authority.


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to