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

Intermittent deployment failure of CDI bean portlets

    Details

      Description

      Steps to Reproduce:

      NOTE: Since this issue is intermittent, it may require deploying the reproducer portlet multiple times or even restarting Liferay Portal.

      1. Deploy the WAR attached to this issue to Liferay Portal:
      cp tck-V3PortletHubTests.war $LIFERAY_HOME/deploy

      *OR*

      1. Clone the Liferay clone Apache Pluto git repo
      git clone https://github.com/liferay/portals-pluto.git

      2. Checkout the "tck3" branch:
      cd portals-pluto
      git checkout tck3

      3. Build Apache Pluto with the "liferay" profile:
      mvn -P liferay,all clean install

      3. Deploy the V3PortletHubTests WAR to Liferay Portal:
      cp portlet-tck_3.0/V3PortletHubTests/target/tck-V3PortletHubTests.war $LIFERAY_HOME/deploy

      Expected Results

      The following 10 portlets are registered and can be added to a portal page:

      • PortletHubTests_SPEC_23_JS
      • PortletHubTests_SPEC_23_JSAction
      • PortletHubTests_SPEC_23_JSExc
      • PortletHubTests_SPEC_23_JSListener
      • PortletHubTests_SPEC_23_JSPA
      • PortletHubTests_SPEC_23_JSPRP_RX
      • PortletHubTests_SPEC_23_JSPRP_TX
      • PortletHubTests_SPEC_23_JSRS
      • PortletHubTests_SPEC_23_JSState
      • PortletHubTests_SPEC_23_JSURL

      Actual Results

      The following warning and stacktrace appear in the console log:

      2018-10-31 19:07:49.365 WARN  [Framework Event Dispatcher: Equinox Container: 939bc01a-2c6b-43ef-b15b-ebfd554a6c2b][com_liferay_portal_osgi_web_servlet_context_helper_impl:103] FrameworkEvent WARNING 
      org.osgi.framework.ServiceException: Recursive ServiceFactory call in com.liferay.portal.osgi.web.servlet.context.helper.internal.ServletContextHelperRegistrationServiceFactory.getService()
      	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:104)
      	at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45)
      	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:524)
      	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:464)
      	at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:624)
      	at com.liferay.portal.osgi.web.portlet.tracker.internal.PortletTracker.createBundlePortletApp(PortletTracker.java:1199)
      	at com.liferay.portal.osgi.web.portlet.tracker.internal.PortletTracker.addingPortlet(PortletTracker.java:278)
      	at com.liferay.portal.osgi.web.portlet.tracker.internal.PortletTracker.addingService(PortletTracker.java:169)
      	at com.liferay.portal.osgi.web.portlet.tracker.internal.PortletTracker.addingService(PortletTracker.java:111)
      	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:943)
      	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.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.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:903)
      	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
      	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:891)
      	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:804)
      	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
      	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:228)
      	at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:469)
      	at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:487)
      	at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:1004)
      	at com.liferay.bean.portlet.cdi.extension.internal.RegistrationUtil.registerBeanPortlet(RegistrationUtil.java:115)
      	at com.liferay.bean.portlet.cdi.extension.internal.BeanPortletExtension.step4ApplicationScopedInitialized(BeanPortletExtension.java:366)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  32 weeks, 4 days ago

                  Packages

                  Version Package
                  7.1.X
                  Master