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

Cannot print leading KB article from KB article display

Details

    Description

      The leading intro article for an article(s) in a Knowledge Base Display can't be printed. It results in a NullPointerException.

      Note, there's been no problems with printing any articles after the leading intro article.

      Steps to Reproduce:
      1. Deploy the KB portlet from liferay-plugins-ee ee-6.2.x
      2. In Site Adminstration > Content > Knowledge Base, add a folder.
      3. Within that folder, add two arbitrary Knowledge Base articles.
      4. In a page in the site, add a Knowledge Base Display portlet.
      5. Configure the KB display portlet by clicking Configuration icon.
      6. In the General tab, click Select and select the folder you created and Save.
      7. The KB display should be showing the first article and have links to both articles in the left navigation.
      8. Click the printer icon for the first article.

      Expected result: the printer popup window should show the contents of the article and have a printer icon. When you click the printer icon in this popup you're given printing options and can print the article.

      Actual result: The printer popup window displays, but is empty.

      In the log, a NullPointerException is reported ...

      20:03:51,271 ERROR [ajp-apr-8010-exec-6][IncludeTag:129] Current URL /develop/tutorials?p_p_id=2_WAR_knowledgebaseportlet&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_2_WAR_knowledgebaseportlet_status=0&_2_WAR_knowledgebaseportlet_resourcePrimKey=219115&_2_WAR_knowledgebaseportlet_mvcPath=/display/print_article.jsp generates exception: An exception occurred processing JSP page /admin/common/print_article.jsp at line 25__22: _23: <div class="float-container kb-entity-header">_24: <div class="kb-title">_25: <%= kbArticle.getTitle() %>_26: </div>_27: _28: <div class="kb-tools">___Stacktrace: [Sanitized]
      java.lang.NullPointerException
      at org.apache.jsp.admin.common.print_005farticle_jsp._jspService(print_005farticle_jsp.java:391)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
      at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:55)
      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.include(IncludeTag.java:295)

      Attachments

        Activity

          People

            linda.sui Linda Sui
            james.hinkey James Hinkey (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 36 weeks, 1 day ago

              Packages

                Version Package
                6.2.X EE
                7.0.0 M2