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

Cannot add virtual instances due to NPE

    Details

    • Fix Priority:
      4

      Description

      Steps to Reproduce:

      1. Navigate to Control Panel > Configuration > Virtual Instances
      2. Click on Add button
      3. Add a Virtual Instance (e.g. www.able.com)

      Expected Result: Liferay successfully adds the virtual instance.

      Actual Result: NPE is thrown starting from step 1 and the virtual instance cannot be added.

      Reproduced on:
      Tomcat 8.0.32 + MySQL 5.7.20
      Portal master Git SHA: 745c36e12b7373a328198a24877067681856baeb

      2018-02-20 19:17:43.911 ERROR [http-nio-8080-exec-10][IncludeTag:128] Current URL /group/control_panel/manage?p_p_id=com_liferay_portal_instances_web_portlet_PortalInstancesPortlet&p_p_lifecycle=0&p_p_state=maximized generates exception: java.lang.NullPointerException
      java.lang.NullPointerException
       at com.liferay.application.list.BasePanelApp.getGroup(BasePanelApp.java:164)
       at com.liferay.application.list.BasePanelApp.getPortletURL(BasePanelApp.java:97)
       at com.liferay.application.list.taglib.servlet.taglib.PanelAppTag.setAttributes(PanelAppTag.java:184)
       at com.liferay.taglib.util.IncludeTag.callSetAttributes(IncludeTag.java:166)
       at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:72)
       at com.liferay.application.list.taglib.servlet.taglib.PanelAppTag.doEndTag(PanelAppTag.java:68)
       at org.apache.jsp.panel_005fcategory_005fbody.page_jsp._jspService(page_jsp.java:158)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
       at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:417)
       at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:428)
       at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
       at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
       at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:118)
       at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
       at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67)
      2018-02-20 19:17:50.558 ERROR [http-nio-8080-exec-1][IncludeTag:128] Current URL /group/control_panel/manage?p_p_id=com_liferay_portal_instances_web_portlet_PortalInstancesPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_portal_instances_web_portlet_PortalInstancesPortlet_mvcRenderCommandName=%2Fportal_instances%2Fedit_instance&_com_liferay_portal_instances_web_portlet_PortalInstancesPortlet_redirect=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_portal_instances_web_portlet_PortalInstancesPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview generates exception: java.lang.NullPointerException
      java.lang.NullPointerException
       at com.liferay.application.list.BasePanelApp.getGroup(BasePanelApp.java:164)
       at com.liferay.application.list.BasePanelApp.getPortletURL(BasePanelApp.java:97)
       at com.liferay.application.list.taglib.servlet.taglib.PanelAppTag.setAttributes(PanelAppTag.java:184)
       at com.liferay.taglib.util.IncludeTag.callSetAttributes(IncludeTag.java:166)
       at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:72)
       at com.liferay.application.list.taglib.servlet.taglib.PanelAppTag.doEndTag(PanelAppTag.java:68)
       at org.apache.jsp.panel_005fcategory_005fbody.page_jsp._jspService(page_jsp.java:158)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
       at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:417)
       at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:428)
       at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
       at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
       at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:118)
       at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
       at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67)

       

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              john.fernandez John Fernandez (Inactive)
              Participants of an Issue:
              Recent user:
              John Fernandez (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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

                Packages

                Version Package