SourceForge.net
2007-04-03 01:26:25 UTC
Bugs item #1689845, was opened at 2007-03-28 22:46
Message generated for change (Comment added) made by tanderson
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1689845&group_id=54559
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: client
Group: v0.7.7-alpha-3
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jan Dittberner (jandd)
Assigned to: Jim Alateras (jalateras)
Summary: Client shutdown problem
Initial Comment:
We have an OpenJMS-Client integrated in a web application. The OpenJMS connection is created and closed in an own JMSManager class which is started and stopped in a ServletContextListener. When starting the ServletContext we perform:
// initialize JNDI-Context
context = new InitialContext(cxtEnv);
// get connection
topicConnection = ((TopicConnectionFactory) context.lookup(factoryKeyTopic)).createTopicConnection();
topicConnection.start();
// create a QueueSession
topicSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
on shutdown we do:
topicSession.close();
topicConnection.close();
context.close();
If the servlet container (Tomcat 5.5) is shut down the ClockDaemon from DefaultConnectionPool stays alive. After some seconds a NullPointerException is thrown. The tomcat process never stops. The following Stacktrace is logged:
Exception in thread "ManagedConnectionReaper1" java.lang.NullPointerException
at org.apache.log4j.LogManager.getLogger(LogManager.java:188)
at org.apache.log4j.Logger.getLogger(Logger.java:104)
at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:193)
at org.exolab.jms.net.connector.DefaultConnectionPool$IdleReaper.run(DefaultConnectionPool.java:644)
at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Log4J may not be available after the ServletContext is shutdown.
The following threads keep running:
org.apache.catalina.startup.Bootstrap at localhost:2738
Thread [Clock Daemon] (Running)
Thread [Timer-1] (Running)
Thread [http-8080-Processor25] (Running)
Thread [TP-Processor4] (Running)
Thread [DestroyJavaVM] (Running)
----------------------------------------------------------------------
Message:
Logged In: YES
user_id=557161
Originator: NO
Have you tried 0.7.7-beta-1?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1689845&group_id=54559
Message generated for change (Comment added) made by tanderson
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1689845&group_id=54559
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: client
Group: v0.7.7-alpha-3
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jan Dittberner (jandd)
Assigned to: Jim Alateras (jalateras)
Summary: Client shutdown problem
Initial Comment:
We have an OpenJMS-Client integrated in a web application. The OpenJMS connection is created and closed in an own JMSManager class which is started and stopped in a ServletContextListener. When starting the ServletContext we perform:
// initialize JNDI-Context
context = new InitialContext(cxtEnv);
// get connection
topicConnection = ((TopicConnectionFactory) context.lookup(factoryKeyTopic)).createTopicConnection();
topicConnection.start();
// create a QueueSession
topicSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
on shutdown we do:
topicSession.close();
topicConnection.close();
context.close();
If the servlet container (Tomcat 5.5) is shut down the ClockDaemon from DefaultConnectionPool stays alive. After some seconds a NullPointerException is thrown. The tomcat process never stops. The following Stacktrace is logged:
Exception in thread "ManagedConnectionReaper1" java.lang.NullPointerException
at org.apache.log4j.LogManager.getLogger(LogManager.java:188)
at org.apache.log4j.Logger.getLogger(Logger.java:104)
at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:193)
at org.exolab.jms.net.connector.DefaultConnectionPool$IdleReaper.run(DefaultConnectionPool.java:644)
at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Log4J may not be available after the ServletContext is shutdown.
The following threads keep running:
org.apache.catalina.startup.Bootstrap at localhost:2738
Thread [Clock Daemon] (Running)
Thread [Timer-1] (Running)
Thread [http-8080-Processor25] (Running)
Thread [TP-Processor4] (Running)
Thread [DestroyJavaVM] (Running)
----------------------------------------------------------------------
Comment By: Tim Anderson (tanderson)
Date: 2007-04-03 11:26Message:
Logged In: YES
user_id=557161
Originator: NO
Have you tried 0.7.7-beta-1?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1689845&group_id=54559