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

NPE appeared when view a file that be uploaded in Documents and Media portlet

    Details

      Description

      Reproduce steps:

      1>Set these properties in portal-ext.properties:
      direct.servlet.context.enabled=true
      direct.servlet.context.reload=false

      2>Startup portal

      3>Add Documents and Media portlet to the page

      4>Upload a txt file

      5>View the file that be uploaded in step 4>, and refresh the page

      Expected results:
      No exception appeared in console

      Actual results:
      NPE appeared in console when view the file or refresh the page

      2019-10-09 09:52:15.395 ERROR [http-nio-8080-exec-9][IncludeTag:128] Current URL /web/guest/home/-/document_library/N18JNFrZnimo/view_file/37344?_com_liferay_document_library_web_portlet_DLPortlet_INSTANCE_N18JNFrZnimo_redirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fguest%2Fhome%3Fp_p_id%3Dcom_liferay_document_library_web_portlet_DLPortlet_INSTANCE_N18JNFrZnimo%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview generates exception: java.lang.NullPointerException
      java.lang.NullPointerException
      	at com.liferay.frontend.taglib.react.servlet.taglib.ComponentTag.getModule(ComponentTag.java:93)
      	at com.liferay.frontend.taglib.react.servlet.taglib.ComponentTag.doEndTag(ComponentTag.java:50)
      	at org.apache.jsp.collaborators.page_jsp._jspService(page_jsp.java:160)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:64)
      	at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:199)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:79)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
      	at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:398)
      	at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:374)
      	at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:217)
      	at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:88)
      	at org.apache.jsp.META_002dINF.resources.dynamic_005fsection.info_005fpanel_005ffile_005fentry_jsp._jspService(info_005fpanel_005ffile_005fentry_jsp:197)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	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:741)
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              beck.liu Beck Liu
              Reporter:
              lily.chi Lily Chi
              Participants of an Issue:
              Recent user:
              Yunlin "Steven" Sun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 49 weeks, 6 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP16
                  7.1.X
                  7.2.10 DXP FP9
                  7.2.X
                  7.3.5 CE GA6
                  7.3.10 DXP GA1
                  Master