• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Consumer Stops receiving messages from activeMQ after couple of minuts.

 
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have one QueueConsumer.java and a QueueProducer.java

I have produced 10 messages using QueueProducer.java

Now i am consuming one by one message using QueueConsumer.java and putting back the same message in Queue using QueueProducer.java so logically this is end less process.

but after presses for 5 to 10 minuts, my QueueConsumer.java come up with a nullPointerException, as if there is no message in queue. and when i check the ActiveMQ console, I can see the 10 messages on MyQueue.

I am not able to trace the issue. Please help me solving this issue.
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A stacktrace of the NullPointerException would help.

My guess is that the ConnectionFactory or the Destination was not resolved properly during deployment causing a NullPointerException.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic