Details

      Description

      Sometimes the portal, during the startup process freezes.

      This is produced due some locks that we introduce while we are starting the InitialBundles.

      This is the stack trace:

      {{2016-10-26T15:27:14.585+0200 INFO [Start Level: Equinox Container: e0d25bc5-7f9b-0016-1c59-99fc86203549][BundleStartStopLogger:35] STARTED org.apache.felix.configadmin_1.8.8 [27]
      2016-10-26T15:27:14.588+0200 INFO [Refresh Thread: Equinox Container: e0d25bc5-7f9b-0016-1c59-99fc86203549][BundleStartStopLogger:35] STARTED org.apache.felix.dependencymanager_3.2.0 [28]
      2016-10-26T15:27:14.592+0200 INFO [Start Level: Equinox Container: e0d25bc5-7f9b-0016-1c59-99fc86203549][BundleStartStopLogger:35] STARTED org.apache.felix.dependencymanager.shell_3.2.0 [29]
      2016-10-26T15:27:14.645+0200 INFO [Start Level: Equinox Container: e0d25bc5-7f9b-0016-1c59-99fc86203549][BundleStartStopLogger:35] STARTED org.apache.felix.eventadmin_1.4.6 [30]}}

      And here is the thead dump:

      {{java.lang.Thread.State: WAITING (parking)
      at sun.misc.Unsafe.park(Native Method)
      parking to wait for <0x000000078d66d680> (a java.util.concurrent.CountDownLatch$Sync)
      at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
      at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:836)
      at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:997)
      at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1304)
      at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:231)
      at com.liferay.portal.bootstrap.ModuleFrameworkImpl._setUpInitialBundles(ModuleFrameworkImpl.java:1310)
      at com.liferay.portal.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:412)
      at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.startFramework(ModuleFrameworkUtilAdapter.java:99)
      at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:253)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)}}

      This ticket could be hard to test by QA since it happen ramdomly, so I suggest not to test it.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 18 weeks ago