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

ContainerLifecyclePlugin errors on shutdown

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.8.9.Alpha01
    • Fix Version/s: 3.8.9.Alpha02
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide
      • Randomly, not always same steps.
      • Start a clean instance of GateIn Portal.
      • Access with root user, or set up a new root password via setup.jsp page.
      • Stop instance using command line and CTRL-C signal.
      Show
      Randomly, not always same steps. Start a clean instance of GateIn Portal. Access with root user, or set up a new root password via setup.jsp page. Stop instance using command line and CTRL-C signal.

      Description

      After shutdown a GateIn instance from command line using a CTRL+C signal we can see an Exception like this:

      11:48:19,555 WARN  [exo.kernel.container.ExoContainer] (Thread-69) An error occurs with the ContainerLifecyclePlugin 'org.gatein.integration.wsrp.WSRPContainerLifecyclePlugin': java.lang.IllegalStateException: Cannot close the session as it hasn't been opened first!
      	at org.gatein.wsrp.jcr.BaseChromatticPersister.getOpenedSessionOrFail(BaseChromatticPersister.java:145)
      	at org.gatein.wsrp.jcr.BaseChromatticPersister.closeSession(BaseChromatticPersister.java:121)
      	at org.gatein.wsrp.producer.config.JCRProducerConfigurationService.getPersistedLastModifiedForConfiguration(JCRProducerConfigurationService.java:135)
      	at org.gatein.wsrp.producer.config.impl.AbstractProducerConfigurationService.getConfiguration(AbstractProducerConfigurationService.java:48)
      	at org.gatein.wsrp.producer.WSRPProducerImpl.getProducerConfiguration(WSRPProducerImpl.java:346)
      	at org.gatein.wsrp.producer.WSRPProducerImpl.getProducerRegistrationRequirements(WSRPProducerImpl.java:193)
      	at org.gatein.wsrp.producer.WSRPProducerImpl.stop(WSRPProducerImpl.java:417)
      	at org.gatein.integration.wsrp.WSRPServiceIntegration.stopProducer(WSRPServiceIntegration.java:397)
      	at org.gatein.integration.wsrp.WSRPServiceIntegration.stopContainer(WSRPServiceIntegration.java:391)
      	at org.gatein.integration.wsrp.WSRPContainerLifecyclePlugin.stopContainer(WSRPContainerLifecyclePlugin.java:39)
      	at org.exoplatform.container.ExoContainer.stopContainerInternal(ExoContainer.java:332) [exo.kernel.container-2.4.10-GA.jar:2.4.10-GA]
      	at org.exoplatform.container.ExoContainer.stop(ExoContainer.java:290) [exo.kernel.container-2.4.10-GA.jar:2.4.10-GA]
      	at org.exoplatform.container.PortalContainer.stop(PortalContainer.java:690) [exo.kernel.container-2.4.10-GA.jar:2.4.10-GA]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_67]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_67]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_67]
      	at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_67]
      	at org.exoplatform.container.LifecycleVisitor.traverse(LifecycleVisitor.java:100) [exo.kernel.container-2.4.10-GA.jar:2.4.10-GA]
      	at org.exoplatform.container.LifecycleVisitor.stop(LifecycleVisitor.java:179) [exo.kernel.container-2.4.10-GA.jar:2.4.10-GA]
      	at org.exoplatform.container.ConcurrentPicoContainer.stop(ConcurrentPicoContainer.java:569) [exo.kernel.container-2.4.10-GA.jar:2.4.10-GA]
      	at org.exoplatform.container.management.ManageableContainer.stop(ManageableContainer.java:266) [exo.kernel.container-2.4.10-GA.jar:2.4.10-GA]
      	at org.exoplatform.container.ExoContainer.stop(ExoContainer.java:291) [exo.kernel.container-2.4.10-GA.jar:2.4.10-GA]
      	at org.exoplatform.container.RootContainer.stop(RootContainer.java:1326) [exo.kernel.container-2.4.10-GA.jar:2.4.10-GA]
      	at org.exoplatform.container.RootContainer$ShutdownThread$1.run(RootContainer.java:1316) [exo.kernel.container-2.4.10-GA.jar:2.4.10-GA]
      	at org.exoplatform.container.RootContainer$ShutdownThread$1.run(RootContainer.java:1313) [exo.kernel.container-2.4.10-GA.jar:2.4.10-GA]
      	at org.exoplatform.commons.utils.SecurityHelper.doPrivilegedAction(SecurityHelper.java:290) [exo.kernel.commons-2.4.10-GA.jar:2.4.10-GA]
      	at org.exoplatform.container.RootContainer$ShutdownThread.run(RootContainer.java:1312) [exo.kernel.container-2.4.10-GA.jar:2.4.10-GA]
      

      This behaviour appears randomly.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                juraci.costa Juraci Paixao Kroehling
                Reporter:
                rutlucas Lucas Ponce
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: