On Jan 18, 2008, at 9:07 PM, activemqnewbie wrote:
Manish,
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.
Thanks,
Vij
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(LinkedList.java:635)
at java.util.LinkedList.addFirst(LinkedList.java:153)
at
org
.apache
.activemq
.ActiveMQMessageConsumer
.beforeMessageIsConsumed(ActiveMQMessageConsumer.java:649)
at
org
.apache
.activemq
.ActiveMQMessageConsumer.receive(ActiveMQMessageConsumer.java:487)
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:
http://www.nabble.com/NPE-while-consuming-messages-tp12301153s2354p14957815.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
What manish describes looks like a client side problem - are their
multiple threads consuming from the same consumer? - there should only
be one
cheers,
Rob
Rob Davies
'Go further faster with Apache Camel!'
http://rajdavies.blogspot.com/