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

Document Library null pointer exception in accessing result documents after clicking Recent Doucuments and My Documents Link

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 6.0.6 GA
    • Fix Version/s: 6.0.12 EE
    • Component/s: DM
    • Labels:
      None
    • Liferay Contributor's Agreement:
      Accept

      Description

      When I search a document in DL portlet and I access to a found document by clicking on the document title the system raise a null pointer exception:

      15:09:40,602 ERROR [IncludeTag:231] Current URL /it/group/control_panel/manage?p_p_id=20&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=10157&refererPlid=10160&_20_struts_action=%2Fdocument_library%2Fview_file_entry&_20_redirect=http%3A%2F%2Flocalhost%3A8080%2Fit%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3D20%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26doAsGroupId%3D10157%26refererPlid%3D10160%26_20_id%3D%26_20_breadcrumbsFolderId%3D0%26_20_keywords%3Dprogram%26_20_refererPlid%3D10160%26_20_doAsGroupId%3D10157%26_20_struts_action%3D%252Fdocument_library%252Fsearch%26_20_searchFolderIds%3D0%26_20_redirect%3Dhttp%253A%252F%252Flocalhost%253A8080%252Fit%252Fgroup%252Fcontrol_panel%252Fmanage%253Fp_p_id%253D20%2526p_p_lifecycle%253D0%2526p_p_state%253Dmaximized%2526p_p_mode%253Dview%2526doAsGroupId%253D10157%2526refererPlid%253D10160%2526_20_refererPlid%253D10160%2526_20_doAsGroupId%253D10157&_20_fileEntryId=190316 generates exception: An exception occurred processing JSP page /html/portlet/document_library/view_file_entry.jsp at line 30

      27:
      28: DLFileEntry fileEntry = (DLFileEntry)request.getAttribute(WebKeys.DOCUMENT_LIBRARY_FILE_ENTRY);
      29:
      30: fileEntry = fileEntry.toEscapedModel();
      31:
      32: long fileEntryId = fileEntry.getFileEntryId();
      33: long folderId = fileEntry.getFolderId();

      Stacktrace:
      15:09:40,603 ERROR [IncludeTag:154] java.lang.NullPointerException
      at org.apache.jsp.html.portlet.document_005flibrary.view_005ffile_005fentry_jsp._jspService(view_005ffile_005fentry_jsp.java:1133)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
      at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:175)
      at com.liferay.taglib.util.IncludeTag._doInclude(IncludeTag.java:223)
      at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:58)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sharry.shi Sharry Shi
                Reporter:
                ceggert Christopher Eggert (Inactive)
                Participants of an Issue:
                Recent user:
                Brian Wulbern
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 29 weeks, 3 days ago