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

NPE thrown by LCS portlet during context initialization with the WAB extender

    Details

    • Fix Priority:
      4
    • Last Working Version:
    • Application Servers:
      IBM Websphere 9.0, JBoss App Server 7.1, Wildfly 11.0

      Description

      Steps to reproduce issue:

      1. Build master-private
      2. Start portal

      Expected result: LCS portlet starts up successfully
      Actual result: NullPointerException is thrown:

      13:12:55,998 ERROR [Context initialized thread for lcs-portlet][com_liferay_portal_osgi_web_wab_extender:97] null 
      java.lang.NullPointerException
      	at com.liferay.portal.osgi.web.wab.extender.internal.PortletContextLoaderListener._registerService(PortletContextLoaderListener.java:247)
      	at com.liferay.portal.osgi.web.wab.extender.internal.PortletContextLoaderListener.lambda$_registerApplicationContext$1(PortletContextLoaderListener.java:230)
      	at java.util.Iterator.forEachRemaining(Iterator.java:116)
      	at com.liferay.portal.osgi.web.wab.extender.internal.PortletContextLoaderListener._registerApplicationContext(PortletContextLoaderListener.java:223)
      	at com.liferay.portal.osgi.web.wab.extender.internal.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:135)
      	at com.liferay.portal.osgi.web.wab.extender.internal.adapter.ServletContextListenerExceptionAdapter._initializeContext(ServletContextListenerExceptionAdapter.java:119)
      	at com.liferay.portal.osgi.web.wab.extender.internal.adapter.ServletContextListenerExceptionAdapter.access$100(ServletContextListenerExceptionAdapter.java:26)
      	at com.liferay.portal.osgi.web.wab.extender.internal.adapter.ServletContextListenerExceptionAdapter$2.run(ServletContextListenerExceptionAdapter.java:83)
      

      Reproduced on:
      JBoss 7.1 + MySQL 5.7
      WebSphere 9.0 + MySQL 5.7
      WildFly 11.0 + MySQL 5.7
      Portal master-private GIT ID: 92f05a7cc3d12a885a63723d57029e384d2fa2e9
      Portal master GIT ID: a947c08fc3195e4b0c326b1deada1e087658a77d

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                anthony.chu Anthony Chu
                Reporter:
                anthony.chu Anthony Chu
                Participants of an Issue:
                Recent user:
                Anthony Chu
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  21 weeks, 6 days ago

                  Packages

                  Version Package