Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DF0347BA1 for ; Mon, 1 Aug 2011 10:41:53 +0000 (UTC) Received: (qmail 10911 invoked by uid 500); 1 Aug 2011 10:41:51 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 10649 invoked by uid 500); 1 Aug 2011 10:41:45 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 10491 invoked by uid 99); 1 Aug 2011 10:41:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Aug 2011 10:41:34 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Aug 2011 10:41:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BC6DA98487 for ; Mon, 1 Aug 2011 10:41:09 +0000 (UTC) Date: Mon, 1 Aug 2011 10:41:09 +0000 (UTC) From: "Torsten Mielke (JIRA)" To: dev@activemq.apache.org Message-ID: <1071382392.22574.1312195269768.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <401723613.22572.1312195269634.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AMQ-3430) activemq-web: SessionPool.returnSession() should discard sessions that are closed. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-3430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13073485#comment-13073485 ] Torsten Mielke commented on AMQ-3430: ------------------------------------- full stack trace of the error reads: {noformat} javax.jms.IllegalStateException: The Session is closed at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:722) at org.apache.activemq.ActiveMQSession.createQueue(ActiveMQSession.java:1141) at org.apache.activemq.web.QueueBrowseQuery.getQueue(QueueBrowseQuery.java:65) at org.apache.activemq.web.QueueBrowseQuery.createBrowser(QueueBrowseQuery.java:91) at org.apache.activemq.web.QueueBrowseQuery.getBrowser(QueueBrowseQuery.java:54) at sun.reflect.GeneratedMethodAccessor125.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at javax.el.BeanELResolver.getValue(BeanELResolver.java:62) at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54) at org.apache.el.parser.AstValue.getValue(AstValue.java:123) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186) at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:935) at org.apache.jsp.browse_jsp._jspx_meth_jms_005fforEachMessage_005f0(browse_jsp.java:169) at org.apache.jsp.browse_jsp._jspService(browse_jsp.java:103) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:45) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) {noformat} > activemq-web: SessionPool.returnSession() should discard sessions that are closed. > ----------------------------------------------------------------------------------- > > Key: AMQ-3430 > URL: https://issues.apache.org/jira/browse/AMQ-3430 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.5.0, 5.6.0 > Reporter: Torsten Mielke > Labels: SessionPool, activemq-web-console, > Fix For: 5.6.0 > > > In activemq.web project, SessionPool.returnSession() does not check if the session is still open. As long as the session isn't null, its returned back to the pool. > At least one customer reported a problem when using the web console for browsing a queue, where the session was already closed. > {noformat} > javax.jms.IllegalStateException: The Session is closed > at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:722) > at org.apache.activemq.ActiveMQSession.createQueue(ActiveMQSession.java:1141) > at org.apache.activemq.web.QueueBrowseQuery.getQueue(QueueBrowseQuery.java:65) > at org.apache.activemq.web.QueueBrowseQuery.createBrowser(QueueBrowseQuery.java:91) > at org.apache.activemq.web.QueueBrowseQuery.getBrowser(QueueBrowseQuery.java:54) > at sun.reflect.GeneratedMethodAccessor125.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at javax.el.BeanELResolver.getValue(BeanELResolver.java:62) > ... > {noformat} > Not sure what triggered the closure of the session, however once it is closed it should not be returned to the pool but be discarded. If its not discarded, then the pool will always return the closed session and any invocations on the session return an exception. Restarting the broker is the only remedy. > -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira