[gatein-issues] [JBoss JIRA] (GTNPORTAL-3581) IDM Pool become full due to hibernate session leak

Trong Tran (JIRA) issues at jboss.org
Tue Mar 3 05:16:49 EST 2015


Trong Tran created GTNPORTAL-3581:
-------------------------------------

             Summary: IDM Pool become full due to hibernate session leak
                 Key: GTNPORTAL-3581
                 URL: https://issues.jboss.org/browse/GTNPORTAL-3581
             Project: GateIn Portal
          Issue Type: Bug
            Reporter: Trong Tran
            Assignee: Trong Tran
             Fix For: 3.9.0.Final


All ApplicationLifecycle starts should be always ended to prevent idm session leak.
We noticed in some cases that The ApplicationLifeCycle isn't closed : 

{code:java}try {
            for (ApplicationLifecycle<RequestContext> lifecycle : getApplicationLifecycle()) {
                lifecycle.onStartRequest(this, context);
            }
             ...
.....
        } finally {
            WebuiRequestContext.setCurrentInstance(parentAppRequestContext);
        }{code}

This case appears In /webui/portlet/src/main/java/org/exoplatform/webui/application/portlet/PortletApplication.java in these methods : 
-  serveResource(ResourceRequest req, ResourceResponse res)
-  processEvent(EventRequest req, EventResponse res) 
-  processAction(ActionRequest req, ActionResponse res)

*PS* : In the comment of the method serverResource(), it's already mentioned that "onEndRequest()" call should be invoqued in the finally block. 



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the gatein-issues mailing list