We are getting NullpointerException and the consumer shuts off. 
Consumer after receiving certain number of messages consumer automatically
closes throwing a null pointer exception. 
Activemq 5 
Oracle10g 

Below is the stack trace. 

<ERROR><2008/01/22 09:52:56.470><23459640><> ExceptionListener receives a
JMS exception 

<TRACE><2008/01/22 09:52:56.470><23459640><> Unregistering Message
Listener... 

<TRACE><2008/01/22 09:52:56.470><23459640><> Notifying/signaling a waiting
thread... 

<TRACE><2008/01/22 09:52:56.470><20688146><> Waiting thread awaken 

<TRACE><2008/01/22 09:52:56.470><20688146><> closing subscriber... 

<TRACE><2008/01/22 09:52:56.470><20688146><> subscriber closed 

<TRACE><2008/01/22 09:52:56.470><20688146><> closing session... 

<TRACE><2008/01/22 09:52:56.470><20688146><> session closed 

<TRACE><2008/01/22 09:52:56.470><20688146><> closing topic connection... 

<TRACE><2008/01/22 09:52:56.470><20688146><> Exception in close() 

<TRACE><2008/01/22 09:52:56.470><20688146><> closing topic connection... 

<TRACE><2008/01/22 09:52:56.470><20688146><> Exception in close() 

<ERROR><2008/01/22 09:52:56.470><20688146><> Unable to connect to the JMS
Server 

<ERROR><2008/01/22 09:52:56.470><23459640><> ExceptionListener receives a
JMS exception 

<ERROR><2008/01/22 09:52:56.470><20688146><> Error in MessageConsumer.start:
Unable to connect to the JMS Server 

<TRACE><2008/01/22 09:52:56.470><20688146><> closing topic connection... 

<TRACE><2008/01/22 09:52:56.470><20688146><> Exception in close() 

<TRACE><2008/01/22 09:52:56.470><23459640><> Unregistering Message
Listener... 
<ERROR><2008/01/22 09:52:56.470><20688146><> Error in main: Unable to
connect to the JMS Server 


<ERROR><2008/01/22 09:52:56.470><20688146><> StackTrace: 

<ERROR><2008/01/22 09:52:56.470><20688146><> 
Error Code: -1 
k12.util.SystemException: Unable to connect to the JMS Server 
        at
ss.integration.util.MessageConsumer.startConnection(MessageConsumer.java:368) 
        at
ss.integration.util.MessageConsumer.start(MessageConsumer.java:124) 
        at
ss.integration.agent.sams.SInputStarter.start(SInputStarter.java:113) 
        at
ss.integration.agent.sams.SInputStarter.main(SInputStarter.java:45) 

<ERROR><2008/01/22 09:52:56.470><23459640><> java.lang.NullPointerException 
        at
ss.integration.util.MessageConsumer.unregisterListener(MessageConsumer.java:205)
 
        at
ss.integration.util.MessageConsumer.notifyWaitingThread(MessageConsumer.java:159)
 
        at ss.integration.util.ExListener.onException(ExListener.java:26) 
        at
org.apache.activemq.ActiveMQConnection$3.run(ActiveMQConnection.java:1648) 
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
 
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) 
        at java.lang.Thread.run(Thread.java:595) 



<TRACE><2008/01/22 09:52:56.470><23459640><> Notifying/signaling a waiting
thread... 



Thanks for the help, 
Vij 


-- 
View this message in context: 
http://www.nabble.com/Activemq.xml-configuration-settings-directory-tp14957812s2354p15020394.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to