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

Error when undeploying a portlet/shutdown Liferay 7

    Details

      Description

      Steps to reproduce:

      1. Startup Liferay 7 and wait it until initializes.
      2. Undeploy a portlet or shutdown Liferay 7

       Expected behavior: no errors in log

       Actual behavior: an error from RTL is thrown:

      07:42:59,828 ERROR [Framework Event Dispatcher: Equinox Container: d069623e-e641-0017-1b7c-88d7b9977cc8][com_liferay_frontend_css_rtl_servlet:97] FrameworkEvent ERROR 
      java.lang.IllegalStateException: The service has been unregistered
      at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:206)
      at com.liferay.frontend.css.rtl.servlet.internal.RTLServletTracker$1.removedService(RTLServletTracker.java:96)
      at com.liferay.frontend.css.rtl.servlet.internal.RTLServletTracker$1.removedService(RTLServletTracker.java:49)
      at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:967)
      at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:1)
      at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341)
      at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:909)
      at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
      at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:917)
      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.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862)
      at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
      at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:222)
      at com.liferay.portal.osgi.web.servlet.context.helper.internal.ServletContextHelperRegistrationImpl.close(ServletContextHelperRegistrationImpl.java:117)
      at com.liferay.portal.osgi.web.servlet.context.helper.internal.ServletContextHelperRegistrationServiceFactory.ungetService(ServletContextHelperRegistrationServiceFactory.java:59)
      at com.liferay.portal.osgi.web.servlet.context.helper.internal.ServletContextHelperRegistrationServiceFactory.ungetService(ServletContextHelperRegistrationServiceFactory.java:32)
      at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$2.run(ServiceFactoryUse.java:260)
      at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$2.run(ServiceFactoryUse.java:1)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryUngetService(ServiceFactoryUse.java:258)
      at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.ungetService(ServiceFactoryUse.java:160)
      at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.ungetService(ServiceConsumer.java:50)
      at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.ungetService(ServiceRegistrationImpl.java:581)
      at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.ungetService(ServiceRegistry.java:540)
      at org.eclipse.osgi.internal.framework.BundleContextImpl.ungetService(BundleContextImpl.java:661)
      at com.liferay.portal.osgi.web.wab.extender.internal.WabBundleProcessor.destroy(WabBundleProcessor.java:115)
      at com.liferay.portal.osgi.web.wab.extender.internal.WebBundleDeployer.doStop(WebBundleDeployer.java:129)
      at com.liferay.portal.osgi.web.wab.extender.internal.WabFactory$WABExtension.destroy(WabFactory.java:152)
      at org.apache.felix.utils.extender.AbstractExtender$2.run(AbstractExtender.java:290)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at org.apache.felix.utils.extender.AbstractExtender.destroyExtension(AbstractExtender.java:312)
      at org.apache.felix.utils.extender.AbstractExtender.bundleChanged(AbstractExtender.java:186)
      at com.liferay.osgi.felix.util.AbstractExtender.bundleChanged(AbstractExtender.java:50)
      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.Module.publishEvent(Module.java:461)
      at org.eclipse.osgi.container.Module.doStop(Module.java:619)
      at org.eclipse.osgi.container.Module.stop(Module.java:483)
      at org.eclipse.osgi.container.ModuleContainer.uninstall(ModuleContainer.java:379)
      at org.eclipse.osgi.internal.framework.EquinoxBundle.uninstall(EquinoxBundle.java:465)
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.uninstall(DirectoryWatcher.java:1090)
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.uninstall(DirectoryWatcher.java:888)
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:483)
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312)
      

       

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 9 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP25
                7.0.X EE
                7.0.4 CE GA5
                7.1.X
                Master