activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Uday Subbarayan <>
Subject NPE- Consumer Example
Date Thu, 26 Nov 2009 19:38:28 GMT
The default sample app in 5.3 is throwing a Null Pointer Exception for consuming the message.
I see that message count is decreasing by 1, when i run the consumer sample app for 1st time.
But it doesn't consume any more message and throws this NPE. Its on Mac. Any idea?


uday-subbarayans-macbook:example uday$ ant consumer -Durl=tcp://localhost:61616 -Dsubject=myqueue
Buildfile: build.xml



     [echo] Running consumer against server at $url = tcp://localhost:61616 for subject
$subject = myqueue
     [java] Connecting to URL: tcp://localhost:61616
     [java] Consuming queue: myqueue
     [java] Using a non-durable subscription
     [java] We are about to wait until we consume: 2000 message(s) then we will shutdown
     [java] Caught: java.lang.NullPointerException
     [java] java.lang.NullPointerException
     [java]     at ConsumerTool.onMessage(Unknown Source)
     [java]     at ConsumerTool.consumeMessagesAndClose(Unknown Source)
     [java]     at Source)
     [java]     at ConsumerTool.main(Unknown Source)

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message