Uploaded image for project: 'GateIn Portal'
  1. GateIn Portal
  2. GTNPORTAL-2484

JCR Session unclosed in NavigationServiceWrapper.start()

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.4.0.Final
    • Component/s: None
    • Labels:
      None

      Description

      I enabled the Session Leak Detector as described here http://wiki.exoplatform.com/xwiki/bin/view/JCR/Session%20leak%20detector and realized that there is a session leak that is in NavigationServiceWrapper.start() as shown in this stack trace provided by the leak detector

      java.lang.Exception
      	at org.exoplatform.services.jcr.impl.core.SessionReference.<init>(SessionReference.java:138)
      	at org.exoplatform.services.jcr.impl.core.TrackedSession.<init>(TrackedSession.java:33)
      	at org.exoplatform.services.jcr.impl.core.SessionFactory.createSession(SessionFactory.java:141)
      	at org.exoplatform.services.jcr.impl.core.RepositoryImpl.getSystemSession(RepositoryImpl.java:401)
      	at org.exoplatform.services.jcr.impl.core.RepositoryImpl.getSystemSession(RepositoryImpl.java:80)
      	at org.exoplatform.portal.mop.navigation.NavigationServiceWrapper.start(NavigationServiceWrapper.java:178)
      	at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.exoplatform.container.LifecycleVisitor.traverse(LifecycleVisitor.java:100)
      	at org.exoplatform.container.LifecycleVisitor.start(LifecycleVisitor.java:170)
      	at org.exoplatform.container.ConcurrentPicoContainer.start(ConcurrentPicoContainer.java:554)
      	at org.exoplatform.container.ExoContainer.start(ExoContainer.java:266)
      	at org.exoplatform.container.PortalContainer.start(PortalContainer.java:667)
      	at org.exoplatform.container.ExoContainer.start(ExoContainer.java:254)
      	at org.exoplatform.container.RootContainer.createPortalContainer(RootContainer.java:399)
      	at org.exoplatform.container.RootContainer.registerPortalContainer(RootContainer.java:266)
      	at org.exoplatform.portal.application.PortalController.afterInit(PortalController.java:114)
      	at org.exoplatform.container.web.AbstractHttpServlet.init(AbstractHttpServlet.java:79)
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420)
      	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4733)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
      	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
      	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
      	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
      	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
      	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
      	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
      	at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
      	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
      	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kien_nguyen kien nguyen
                Reporter:
                kien_nguyen kien nguyen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: