Servlet lifecycle doesn't work well with connection lifecycle
-------------------------------------------------------------
Key: GERONIMO-482
URL: http://nagoya.apache.org/jira/browse/GERONIMO-482
Project: Apache Geronimo
Type: Bug
Components: connector
Versions: 1.0-M3
Reporter: David Jencks
Assigned to: David Jencks
If a servlet opens a connection in init, it might get this exception in destroy
when trying to close it.
java.lang.NullPointerException
at
org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTrackingCoordinator.handleReleased(Connec
tionTrackingCoordinator.java:131)
at
org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTrackingCoordinator$$FastClassByCGLIB$$5d
33aabf.invoke(<generated>)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
at
org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
at
org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:823)
at org.apache.geronimo.gbean.jmx.RawInvoker.invoke(RawInvoker.java:89)
at
org.apache.geronimo.gbean.jmx.RawOperationInvoker.invoke(RawOperationInvoker.java:34)
at
org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMethodInterceptor.java:112)
at
org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTracker$$EnhancerByCGLIB$$1850a2fe.handle
Released(<generated>)
at
org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.returnConnection(ConnectionTrackingInter
ceptor.java:81)
at
org.apache.geronimo.connector.outbound.GeronimoConnectionEventListener.connectionClosed(GeronimoConnectionEve
ntListener.java:68)
at
org.codehaus.activemq.ra.ActiveMQManagedConnection.proxyClosedEvent(ActiveMQManagedConnection.java:454)
at
org.codehaus.activemq.ra.JMSConnectionProxy.close(JMSConnectionProxy.java:67)
at
com.gluecode.samples.jms.servlet.SubscriberServlet.destroy(SubscriberServlet.java:87)
at org.mortbay.jetty.servlet.ServletHolder.stop(ServletHolder.java:270)
at
org.mortbay.jetty.servlet.ServletHandler.doStop(ServletHandler.java:470)
Probably the servlet init method isn't properly setting the connection tracking
context.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira