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

NPE / Document Library is showing blank page, no details for document

    Details

      Description

      Description

      The customer has found an issue where when accessing a document, they are only able to see a white screen. On further digging, they realized this occurred when the user who uploaded the document was removed prior to an upgrade. However, there is no indication in the UI that this is the reason the document is unavailable.

      Steps to reproduce

      1. Start a clean bundle of Liferay 6.1 EE SP5 connected to a MySQL database
      2. Create a new user and give them Administrator privileges
      3. Login as the user and upload a document
      4. Shut down Liferay 6.1 EE
      5. Copy the data folder to a Liferay 6.2 EE SP20 bundle
      6. Connect the Liferay 6.2 EE bundle to the 6.1 database and start it up
      7. Log in as the administrator user and delete the user created in step 2
      8. Shut down Liferay 6.2 EE and copy the data folder to a Liferay DXP 7.1 bundle
      9. Upgrade the database to Liferay DXP 7.1 database
      10. Start Liferay DXP 7.1 and try to view the document in the admin Documents and Media portlet

      Results of Testing

      Expected Results: You can view the document, or at least there is an indication in the UI on why the document image is unavailable
      Actual Results: You can only see a blank screen in the UI when selecting the image

      Errors/Logs

      2019-03-22 14:22:58.611 ERROR [http-nio-8080-exec-10][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?p_p_id=com_liferay_document_library_web_portlet_DLAdminPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_document_library_web_portlet_DLAdminPortlet_mvcRenderCommandName=%2Fdocument_library%2Fview_file_entry&_com_liferay_document_library_web_portlet_DLAdminPortlet_redirect=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fguest%2F~%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_document_library_web_portlet_DLAdminPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview&_com_liferay_document_library_web_portlet_DLAdminPortlet_fileEntryId=10520 generates exception: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.jsp.document_005flibrary.info_005fpanel_005ffile_005fentry_jsp._jspService(info_005fpanel_005ffile_005fentry_jsp:760)
      	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)
      	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.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)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
      	at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:382)
      	at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:359)
      	at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:212)
      	at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:89)
      2019-03-22 14:22:58.756 ERROR [http-nio-8080-exec-10][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?p_p_id=com_liferay_document_library_web_portlet_DLAdminPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_document_library_web_portlet_DLAdminPortlet_mvcRenderCommandName=%2Fdocument_library%2Fview_file_entry&_com_liferay_document_library_web_portlet_DLAdminPortlet_redirect=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fguest%2F~%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_document_library_web_portlet_DLAdminPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview&_com_liferay_document_library_web_portlet_DLAdminPortlet_fileEntryId=10520 generates exception: com.liferay.portal.kernel.exception.NoSuchUserException: No User exists with the primary key 10488
      com.liferay.portal.kernel.exception.NoSuchUserException: No User exists with the primary key 10488
      	at com.liferay.portal.service.persistence.impl.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:8418)
      	at com.liferay.portal.service.persistence.impl.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:8434)
      	at com.liferay.portal.service.base.UserLocalServiceBaseImpl.getUser(UserLocalServiceBaseImpl.java:296)
      	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
      	at com.liferay.portal.kernel.service.UserLocalServiceWrapper.getUser(UserLocalServiceWrapper.java:1798)
      	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:158)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:145)
      	at com.liferay.message.boards.service.impl.MBMessageLocalServiceImpl.addMessage(MBMessageLocalServiceImpl.java:255)
      	at com.liferay.message.boards.service.impl.MBMessageLocalServiceImpl.addDiscussionMessage(MBMessageLocalServiceImpl.java:219)
      	at com.liferay.message.boards.service.impl.MBMessageLocalServiceImpl.getDiscussionMessageDisplay(MBMessageLocalServiceImpl.java:1057)
      	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
      	at com.liferay.message.boards.service.MBMessageLocalServiceWrapper.getDiscussionMessageDisplay(MBMessageLocalServiceWrapper.java:473)
      	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:158)
      

      Master

      Reproduced - 56bd656e74b1d842e8b23a1afba27f3130b1c7b3

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yvonne.han Yvonne Han
                Reporter:
                samuel.ziemer Sam Ziemer
                Participants of an Issue:
                Recent user:
                Sergio Alonso
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.1.3 CE GA4
                  7.1.10 DXP FP11
                  7.1.X
                  Master