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?

Thanks,
Uday.

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

init:

compile:

consumer:
     [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 ConsumerTool.run(Unknown Source)
     [java]     at ConsumerTool.main(Unknown Source)





      

Reply via email to