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

undeployed_portlet.jsp is not found when a portlet in a WAR is undeployed due to UnavailableException

    Details

      Description

      This issue is discovered when testing portlet 3.0 tck.

      Steps to reproduce:

      1. Deploy the attached war file to Liferay (Upon deployment there will be a RuntimeException, it's not related to this issue, ignore it);
      2. Add "AddlPortletTests_SPEC2_15_EventEventHandling_unavailableException" and "AddlPortletTests_SPEC2_15_EventEventHandling" to any page;
      3. Click "V2AddlPortletTests_SPEC2_15_EventEventHandling_event16" button in "AddlPortletTests_SPEC2_15_EventEventHandling" portlet;
        • Check UnavailableException in the log, and "portlet not available" warning on the page;
      4. Refresh the page.

       Expected Results:

      The content of "AddlPortletTests_SPEC2_15_EventEventHandling_unavailableException" portlet shows the "this-portlet-has-been-undeployed.-please-redeploy-it-or-remove-it-from-the-page" message.

       Actual Results:

      The content of "AddlPortletTests_SPEC2_15_EventEventHandling_unavailableException" still shows the red warning of "portlet not available", and there's the following exception in the log:

      2018-03-01 04:57:19.362 ERROR [http-nio-8080-exec-1][render_portlet_jsp:131] null
      java.io.FileNotFoundException: /html/portal/undeployed_portlet.jsp
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:455)
      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.internal.JspServlet.service(JspServlet.java:345)
      at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:356)
      at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
      at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:50)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:100)
      at com.liferay.portal.osgi.web.wab.extender.internal.adapter.FilterExceptionAdapter.doFilter(FilterExceptionAdapter.java:46)
      at org.eclipse.equinox.http.servlet.internal.registration.FilterRegistration.doFilter(FilterRegistration.java:121)
      at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:45)
      at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:70)
      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.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:282)
      at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:141)
      at com.liferay.portlet.UndeployedPortlet.render(UndeployedPortlet.java:54)
      at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:103)
      at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 16 weeks, 5 days ago

                Packages

                Version Package
                7.0.0 DXP FP57
                7.0.0 DXP SP9
                7.0.X
                7.1.X
                Master