You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "Minutello, Nick" <ni...@credit-suisse.com> on 2010/05/24 17:26:55 UTC

Uncaught exception in subscriber ends subscription

Hi chaps/chappettes,

We are seeing an issue with ActiveMQ Topic subscription when there is an
uncaught exception.

It appears to be related to an old report (but who knows) :
http://mail-archives.apache.org/mod_mbox/activemq-users/200805.mbox/<171
89972.post@talk.nabble.com>
<http://mail-archives.apache.org/mod_mbox/activemq-users/200805.mbox/%3C
17189972.post@talk.nabble.com%3E>  

Basically, what happens is our Consumer (onMessage) was throwing an NPE.
After that happens, the consumer no longer receives any more messages.

Following it through in the debugger - when the exception is thrown,
what we see is the the "ActiveMQ Session Task" thread completes... 
After that, it never seems to execute again. Seems some state in the
PooledTaskRunner gets borked? Investigating further - but at first
glance it appears it thinks the connection is shutting down...

-Nick

=============================================================================== 
Please access the attached hyperlink for an important electronic communications disclaimer: 
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html 
=============================================================================== 


RE: Uncaught exception in subscriber ends subscription

Posted by "Minutello, Nick" <ni...@credit-suisse.com>.
 
Cheers.

Here is the issue. https://issues.apache.org/activemq/browse/AMQ-2761

-N

-----Original Message-----
From: Bruce Snyder [mailto:bruce.snyder@gmail.com] 
Sent: 30 May 2010 15:53
To: users@activemq.apache.org
Cc: infrastructure
Subject: Re: Uncaught exception in subscriber ends subscription

On Tue, May 25, 2010 at 2:25 PM, Minutello, Nick
<ni...@credit-suisse.com> wrote:
>
> Cheers, will do. Just need to get a jira admin to update my email 
> address in jira so I can reset my password :) (email address is from a

> past job - I think its nick.minutello@bnpparibas.com - username is 
> nickminutello )

I have forwarded your request on to the ASF sys admins.

Bruce
--
perl -e 'print
unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder

=============================================================================== 
Please access the attached hyperlink for an important electronic communications disclaimer: 
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html 
=============================================================================== 


Re: Uncaught exception in subscriber ends subscription

Posted by Bruce Snyder <br...@gmail.com>.
On Tue, May 25, 2010 at 2:25 PM, Minutello, Nick
<ni...@credit-suisse.com> wrote:
>
> Cheers, will do. Just need to get a jira admin to update my email
> address in jira so I can reset my password :)
> (email address is from a past job - I think its
> nick.minutello@bnpparibas.com - username is nickminutello )

I have forwarded your request on to the ASF sys admins.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder

RE: Uncaught exception in subscriber ends subscription

Posted by "Minutello, Nick" <ni...@credit-suisse.com>.
Any joy updating my email address so I can raise a bug?

-Nick


-----Original Message-----
From: Minutello, Nick 
Sent: 25 May 2010 21:26
To: 'users@activemq.apache.org'
Subject: RE: Uncaught exception in subscriber ends subscription

 
Cheers, will do. Just need to get a jira admin to update my email
address in jira so I can reset my password :) (email address is from a
past job - I think its nick.minutello@bnpparibas.com - username is
nickminutello )

Cheers,
-N

-----Original Message-----
From: Gary Tully [mailto:gary.tully@gmail.com]
Sent: 25 May 2010 17:46
To: users@activemq.apache.org
Subject: Re: Uncaught exception in subscriber ends subscription

please open a jira issue with your test code and we can get to the
bottom of this.

On 25 May 2010 15:48, Minutello, Nick
<ni...@credit-suisse.com>wrote:

>
> Has anyone else seen this issue?
> I don't believe I've stumbled across a bug like this... seems a bit 
> too fundamental ...
> -Nick
>
> > _____________________________________________
> > From:         Minutello, Nick
> > Sent: 24 May 2010 20:00
> > To:   'users@activemq.apache.org'
> > Subject:      RE: Uncaught exception in subscriber ends subscription
> >
> >
> > Forgive me if I'm missing something daft - its been a while since I 
> > read the JMS spec - but I'm pretty sure an uncaught exception isn't 
> > meant to kill a subscription...
> >
> > Here is the simplest code sample to reproduce the problem.
> >
> >  << File: TestMessageSenderer.java >>
> >
> > This is running against AMQ 5.3.0.
> >
> > Can someone confirm this is a bug? I'll raise an issue in Jira.
> >
> > Cheers, thanks,
> > Nick
> >
> >
> >
> > _____________________________________________
> > From:         Minutello, Nick
> > Sent: 24 May 2010 16:27
> > To:   'users@activemq.apache.org'
> > Subject:      Uncaught exception in subscriber ends subscription
> >
> >
> > Hi chaps/chappettes,
> >
> > We are seeing an issue with ActiveMQ Topic subscription when there 
> > is an uncaught exception.
> >
> > It appears to be related to an old report (but who knows) :
> > http://mail-archives.apache.org/mod_mbox/activemq-users/200805.mbox/
> > <1
> > 7189972.post@talk.nabble.com>
> > <http://mail-archives.apache.org/mod_mbox/activemq-users/200805.mbox
> > /%
> > 3C17189972.post@talk.nabble.com%3E>
> >
> > Basically, what happens is our Consumer (onMessage) was throwing an 
> > NPE. After that happens, the consumer no longer receives any more 
> > messages.
> >
> > Following it through in the debugger - when the exception is thrown,

> > what we see is the the "ActiveMQ Session Task" thread completes...
> > After that, it never seems to execute again. Seems some state in the

> > PooledTaskRunner gets borked? Investigating further - but at first 
> > glance it appears it thinks the connection is shutting down...
> >
> > -Nick
>
>
> ======================================================================
> ========= Please access the attached hyperlink for an important 
> electronic communications disclaimer:
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>
> ======================================================================
> =========
>
>


--
http://blog.garytully.com

Open Source Integration
http://fusesource.com

=============================================================================== 
Please access the attached hyperlink for an important electronic communications disclaimer: 
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html 
=============================================================================== 


RE: Uncaught exception in subscriber ends subscription

Posted by "Minutello, Nick" <ni...@credit-suisse.com>.
 
Cheers, will do. Just need to get a jira admin to update my email
address in jira so I can reset my password :)
(email address is from a past job - I think its
nick.minutello@bnpparibas.com - username is nickminutello )

Cheers,
-N

-----Original Message-----
From: Gary Tully [mailto:gary.tully@gmail.com] 
Sent: 25 May 2010 17:46
To: users@activemq.apache.org
Subject: Re: Uncaught exception in subscriber ends subscription

please open a jira issue with your test code and we can get to the
bottom of this.

On 25 May 2010 15:48, Minutello, Nick
<ni...@credit-suisse.com>wrote:

>
> Has anyone else seen this issue?
> I don't believe I've stumbled across a bug like this... seems a bit 
> too fundamental ...
> -Nick
>
> > _____________________________________________
> > From:         Minutello, Nick
> > Sent: 24 May 2010 20:00
> > To:   'users@activemq.apache.org'
> > Subject:      RE: Uncaught exception in subscriber ends subscription
> >
> >
> > Forgive me if I'm missing something daft - its been a while since I 
> > read the JMS spec - but I'm pretty sure an uncaught exception isn't 
> > meant to kill a subscription...
> >
> > Here is the simplest code sample to reproduce the problem.
> >
> >  << File: TestMessageSenderer.java >>
> >
> > This is running against AMQ 5.3.0.
> >
> > Can someone confirm this is a bug? I'll raise an issue in Jira.
> >
> > Cheers, thanks,
> > Nick
> >
> >
> >
> > _____________________________________________
> > From:         Minutello, Nick
> > Sent: 24 May 2010 16:27
> > To:   'users@activemq.apache.org'
> > Subject:      Uncaught exception in subscriber ends subscription
> >
> >
> > Hi chaps/chappettes,
> >
> > We are seeing an issue with ActiveMQ Topic subscription when there 
> > is an uncaught exception.
> >
> > It appears to be related to an old report (but who knows) :
> > http://mail-archives.apache.org/mod_mbox/activemq-users/200805.mbox/
> > <1
> > 7189972.post@talk.nabble.com>
> > <http://mail-archives.apache.org/mod_mbox/activemq-users/200805.mbox
> > /%
> > 3C17189972.post@talk.nabble.com%3E>
> >
> > Basically, what happens is our Consumer (onMessage) was throwing an 
> > NPE. After that happens, the consumer no longer receives any more 
> > messages.
> >
> > Following it through in the debugger - when the exception is thrown,

> > what we see is the the "ActiveMQ Session Task" thread completes...
> > After that, it never seems to execute again. Seems some state in the

> > PooledTaskRunner gets borked? Investigating further - but at first 
> > glance it appears it thinks the connection is shutting down...
> >
> > -Nick
>
>
> ======================================================================
> ========= Please access the attached hyperlink for an important 
> electronic communications disclaimer:
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>
> ======================================================================
> =========
>
>


--
http://blog.garytully.com

Open Source Integration
http://fusesource.com

=============================================================================== 
Please access the attached hyperlink for an important electronic communications disclaimer: 
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html 
=============================================================================== 


Re: Uncaught exception in subscriber ends subscription

Posted by Gary Tully <ga...@gmail.com>.
please open a jira issue with your test code and we can get to the bottom of
this.

On 25 May 2010 15:48, Minutello, Nick <ni...@credit-suisse.com>wrote:

>
> Has anyone else seen this issue?
> I don't believe I've stumbled across a bug like this... seems a bit too
> fundamental ...
> -Nick
>
> > _____________________________________________
> > From:         Minutello, Nick
> > Sent: 24 May 2010 20:00
> > To:   'users@activemq.apache.org'
> > Subject:      RE: Uncaught exception in subscriber ends subscription
> >
> >
> > Forgive me if I'm missing something daft - its been a while since I
> > read the JMS spec - but I'm pretty sure an uncaught exception isn't
> > meant to kill a subscription...
> >
> > Here is the simplest code sample to reproduce the problem.
> >
> >  << File: TestMessageSenderer.java >>
> >
> > This is running against AMQ 5.3.0.
> >
> > Can someone confirm this is a bug? I'll raise an issue in Jira.
> >
> > Cheers, thanks,
> > Nick
> >
> >
> >
> > _____________________________________________
> > From:         Minutello, Nick
> > Sent: 24 May 2010 16:27
> > To:   'users@activemq.apache.org'
> > Subject:      Uncaught exception in subscriber ends subscription
> >
> >
> > Hi chaps/chappettes,
> >
> > We are seeing an issue with ActiveMQ Topic subscription when there is
> > an uncaught exception.
> >
> > It appears to be related to an old report (but who knows) :
> > http://mail-archives.apache.org/mod_mbox/activemq-users/200805.mbox/<1
> > 7189972.post@talk.nabble.com>
> > <http://mail-archives.apache.org/mod_mbox/activemq-users/200805.mbox/%
> > 3C17189972.post@talk.nabble.com%3E>
> >
> > Basically, what happens is our Consumer (onMessage) was throwing an
> > NPE. After that happens, the consumer no longer receives any more
> > messages.
> >
> > Following it through in the debugger - when the exception is thrown,
> > what we see is the the "ActiveMQ Session Task" thread completes...
> > After that, it never seems to execute again. Seems some state in the
> > PooledTaskRunner gets borked? Investigating further - but at first
> > glance it appears it thinks the connection is shutting down...
> >
> > -Nick
>
>
> ===============================================================================
> Please access the attached hyperlink for an important electronic
> communications disclaimer:
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>
> ===============================================================================
>
>


-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com

RE: Uncaught exception in subscriber ends subscription

Posted by "Minutello, Nick" <ni...@credit-suisse.com>.
Has anyone else seen this issue?
I don't believe I've stumbled across a bug like this... seems a bit too
fundamental ... 
-Nick

> _____________________________________________ 
> From: 	Minutello, Nick  
> Sent:	24 May 2010 20:00
> To:	'users@activemq.apache.org'
> Subject:	RE: Uncaught exception in subscriber ends subscription
> 
> 
> Forgive me if I'm missing something daft - its been a while since I
> read the JMS spec - but I'm pretty sure an uncaught exception isn't
> meant to kill a subscription... 
> 
> Here is the simplest code sample to reproduce the problem.
> 
>  << File: TestMessageSenderer.java >> 
> 
> This is running against AMQ 5.3.0.
> 
> Can someone confirm this is a bug? I'll raise an issue in Jira.
> 
> Cheers, thanks,
> Nick
> 
> 
> 
> _____________________________________________ 
> From: 	Minutello, Nick  
> Sent:	24 May 2010 16:27
> To:	'users@activemq.apache.org'
> Subject:	Uncaught exception in subscriber ends subscription
> 
> 
> Hi chaps/chappettes,
> 
> We are seeing an issue with ActiveMQ Topic subscription when there is
> an uncaught exception.
> 
> It appears to be related to an old report (but who knows) :
> http://mail-archives.apache.org/mod_mbox/activemq-users/200805.mbox/<1
> 7189972.post@talk.nabble.com>
> <http://mail-archives.apache.org/mod_mbox/activemq-users/200805.mbox/%
> 3C17189972.post@talk.nabble.com%3E>  
> 
> Basically, what happens is our Consumer (onMessage) was throwing an
> NPE. After that happens, the consumer no longer receives any more
> messages.
> 
> Following it through in the debugger - when the exception is thrown,
> what we see is the the "ActiveMQ Session Task" thread completes... 
> After that, it never seems to execute again. Seems some state in the
> PooledTaskRunner gets borked? Investigating further - but at first
> glance it appears it thinks the connection is shutting down...
> 
> -Nick

=============================================================================== 
Please access the attached hyperlink for an important electronic communications disclaimer: 
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html 
=============================================================================== 


RE: Uncaught exception in subscriber ends subscription

Posted by "Minutello, Nick" <ni...@credit-suisse.com>.
Forgive me if I'm missing something daft - its been a while since I read
the JMS spec - but I'm pretty sure an uncaught exception isn't meant to
kill a subscription... 

Here is the simplest code sample to reproduce the problem.

 <<TestMessageSenderer.java>> 

This is running against AMQ 5.3.0.

Can someone confirm this is a bug? I'll raise an issue in Jira.

Cheers, thanks,
Nick



> _____________________________________________ 
> From: 	Minutello, Nick  
> Sent:	24 May 2010 16:27
> To:	'users@activemq.apache.org'
> Subject:	Uncaught exception in subscriber ends subscription
> 
> 
> Hi chaps/chappettes,
> 
> We are seeing an issue with ActiveMQ Topic subscription when there is
> an uncaught exception.
> 
> It appears to be related to an old report (but who knows) :
> http://mail-archives.apache.org/mod_mbox/activemq-users/200805.mbox/<1
> 7189972.post@talk.nabble.com>
> <http://mail-archives.apache.org/mod_mbox/activemq-users/200805.mbox/%
> 3C17189972.post@talk.nabble.com%3E>  
> 
> Basically, what happens is our Consumer (onMessage) was throwing an
> NPE. After that happens, the consumer no longer receives any more
> messages.
> 
> Following it through in the debugger - when the exception is thrown,
> what we see is the the "ActiveMQ Session Task" thread completes... 
> After that, it never seems to execute again. Seems some state in the
> PooledTaskRunner gets borked? Investigating further - but at first
> glance it appears it thinks the connection is shutting down...
> 
> -Nick

=============================================================================== 
Please access the attached hyperlink for an important electronic communications disclaimer: 
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html 
===============================================================================