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

Asset Publisher cannot display documents from document library

    Details

    • Fix Priority:
      3

      Description

      To reproduce problem: 

      • Place Asset Publisher on any page
      • Configure Asset Publisher to display documents
      • Asset Link Behavior: Show Full Content
      • Place any document into document library
      • Switch to page with Asset Publisher - in the list of assets document is displayed - everything is ok.
      • Click on Document

      Expected behavior: document view opened - we can preview document and see document information

      Actual behavior: no preview is displayed, info button is not active.

      In logs we have error:

      2021-09-26 18:44:01.576 ERROR [http-nio-8080-exec-3][IncludeTag:128] Current URL /web/guest/docs-publisher/-/asset_publisher/okat/document/id/39151?_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_okat_redirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fguest%2Fdocs-publisher%3Fp_p_id%3Dcom_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_okat%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_okat_cur%3D0%26p_r_p_resetCur%3Dfalse%26_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_okat_assetEntryId%3D39151 generates exception: java.lang.NullPointerException2021-09-26 18:44:01.576 ERROR [http-nio-8080-exec-3][IncludeTag:128] Current URL /web/guest/docs-publisher/-/asset_publisher/okat/document/id/39151?_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_okat_redirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fguest%2Fdocs-publisher%3Fp_p_id%3Dcom_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_okat%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_okat_cur%3D0%26p_r_p_resetCur%3Dfalse%26_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_okat_assetEntryId%3D39151 generates exception: java.lang.NullPointerExceptionjava.lang.NullPointerException at org.apache.jsp.document_005flibrary.info_005fpanel_005ffile_005fentry_jsp._jspService(info_005fpanel_005ffile_005fentry_jsp:456) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) 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:733) at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:368) at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:380) 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:120) 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.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:190) 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:407) at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:383) at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:217)2021-09-26 18:44:02.348 ERROR [http-nio-8080-exec-3][IncludeTag:128] Current URL /web/guest/docs-publisher/-/asset_publisher/okat/document/id/39151?_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_okat_redirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fguest%2Fdocs-publisher%3Fp_p_id%3Dcom_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_okat%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_okat_cur%3D0%26p_r_p_resetCur%3Dfalse%26_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_okat_assetEntryId%3D39151 generates exception: java.lang.NullPointerExceptionjava.lang.NullPointerException at com.liferay.document.library.web.internal.display.context.logic.DLPortletInstanceSettingsHelper.isShowActions(DLPortletInstanceSettingsHelper.java:121) at org.apache.jsp.document_005flibrary.view_005ffile_005fentry_jsp._jspService(view_005ffile_005fentry_jsp:869) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) 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:733) at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:368) at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:380) 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:120) 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.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:190) 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:407) at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:383)

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            akakunin Alexey Kakunin
            Participants of an Issue:
            Recent user:
            Susan Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              9 weeks, 6 days ago

                Packages

                Version Package