Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-89509

Unable to acquire state change lock for the module when starting a bundle

    Details

      Description

      When deploying overriden LKPG sometimes the following exception is thrown:

      2018-11-19 16:04:17.090 INFO  [localhost-startStop-1][BundleStartStopLogger:35] STARTED lcs-portlet_7.0.10.72 [595] 2018-11-19 16:04:17.091 INFO  [localhost-startStop-1][BundleStartStopLogger:35] STARTED Liferay Connected Services Client-lcs-portlet-wrapper_7.0.10.72 [593] 2018-11-19 16:04:17.092 ERROR [fileinstall-/opt/liferay/osgi/marketplace][LPKGBundleTrackerCustomizer:256] Rollback bundle installation for [Liferay Connected Services Client-lcs-portlet-wrapper_7.0.10.72 [593]] org.osgi.framework.BundleException: Unable to acquire the state change lock for the module: osgi.identity; osgi.identity="Liferay Connected Services Client-lcs-portlet-wrapper"; type="osgi.bundle"; version:Version="7.0.10.72" [id=593] RESOLVED [STARTED]     at org.eclipse.osgi.container.Module.lockStateChange(Module.java:324)     at org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:628)     at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:491)     at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:437)     at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:427)     at org.eclipse.osgi.container.Module.start(Module.java:411)     at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)     at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:421)     at com.liferay.portal.lpkg.deployer.util.BundleStartLevelUtil._startBundle(BundleStartLevelUtil.java:61)     at com.liferay.portal.lpkg.deployer.util.BundleStartLevelUtil.setStartLevelAndStart(BundleStartLevelUtil.java:44)     at com.liferay.portal.lpkg.deployer.internal.LPKGBundleTrackerCustomizer.addingBundle(LPKGBundleTrackerCustomizer.java:249)     at com.liferay.portal.lpkg.deployer.internal.LPKGBundleTrackerCustomizer.addingBundle(LPKGBundleTrackerCustomizer.java:85)     at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:469)     at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1)     at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)     at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)     at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)     at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:905)     at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)     at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)     at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)     at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)     at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)     at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)     at org.eclipse.osgi.container.ModuleContainer.install(ModuleContainer.java:259)     at org.eclipse.osgi.storage.Storage.install(Storage.java:517)     at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:146)     at com.liferay.portal.lpkg.deployer.internal.DefaultLPKGDeployer.deploy(DefaultLPKGDeployer.java:162)     at com.liferay.marketplace.deployer.internal.LPKGArtifactInstaller.install(LPKGArtifactInstaller.java:72)     at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:937)     at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:871)     at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:485)     at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)     at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312) 2018-11-19 16:04:17.096 INFO  [fileinstall-/opt/liferay/osgi/marketplace][BundleStartStopLogger:38] STOPPED Liferay Connected Services Client-lcs-portlet-wrapper_7.0.10.72 [593] 2018-11-19 16:04:17.158 INFO  [localhost-startStop-1][BundleStartStopLogger:35] STARTED user-profile-theme_1.0.91 [594] 2018-11-19 16:04:17.170 INFO  [fileinstall-/opt/liferay/osgi/marketplace][BundleStartStopLogger:38] STOPPED lcs-portlet_7.0.10.72 [595]
      

      This exception corresponds to the following OSGi reported bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=487842 which is solved in master, 7.1.x after the following LPS-80388 that increments org.eclipse.osgi from 3.10.200.v20150831-0856 to 3.13.0.LIFERAY-PATCHED-1

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  29 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.0 DXP FP72
                  7.0.10.11 DXP SP11
                  7.0.X