activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From activemqnewbie <>
Subject Re: NPE while consuming messages
Date Fri, 18 Jan 2008 21:07:58 GMT

We are also experiencing similar kind of issues.
Consumer consumes around 1000msgs and then throws null pointer exception.
How did you resolve ur problem.
We are currently using activemq 5 and java 5.
Appreciate ur response.

manishbel wrote:
> I have a consumer that's consuming messages at about 6msgs/sec and after i
> sent about 15000 messages i got the following exception
> java.lang.NullPointerException
>         at java.util.LinkedList.addBefore(
>         at java.util.LinkedList.addFirst(
>         at
> org.apache.activemq.ActiveMQMessageConsumer.beforeMessageIsConsumed(
>         at
> org.apache.activemq.ActiveMQMessageConsumer.receive(
> When i looked at the code it's trying to add the message to the top of a
> linked list. this list also seems to be modified when the message is
> acknowledge so it looks like more of a concurrency issue. 
> Has anybody encountered this issue? If so please let me know if there's a
> way to resolve this or if there was a fix for it? currently we're thinking
> of trying to restart the receivers when the it gets an exception.
> Manish.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message