1

在 liferay 门户 6.2 CE-GA2 中,我使用了留言板 portlet。在这个 portlet 中,我创建了一个线程,然后回复该线程。catalina.out每次回复后,我在日志文件中都有这些消息:

 17:18:01,520 ERROR [http-bio-80-exec-575][IncludeTag:129] Current URL /web/knowledge-management/wiki/-/message_boards/message/109006 generates exception: null
    java.lang.NullPointerException
    at org.apache.jsp.html.portlet.message_005fboards.view_005fthread_005fmessage_jsp._jspService(view_005fthread_005fmessage_jsp.java:726)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
    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)
    at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
    at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83)
    at org.apache.jsp.html.portlet.message_005fboards.view_005fmessage_005fcontent_jsp._jspx_meth_liferay_002dutil_005finclude_005f0(view_005fmessage_005fcontent_jsp.java:2972)
    at org.apache.jsp.html.portlet.message_005fboards.view_005fmessage_005fcontent_jsp._jspService(view_005fmessage_005fcontent_jsp.java:2322)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
    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)
    at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
    at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83)
    at org.apache.jsp.html.portlet.message_005fboards.view_005fmessage_005fdefault_jsp._jspx_meth_liferay_002dutil_005finclude_005f0(view_005fmessage_005fdefault_jsp.java:1997)

我如何解决这个问题?

4

1 回答 1

1

这取决于您想深入到什么程度:您可以分析 NullpointerException 发生的位置,看看是否存在易于修复的问题。您还可以检查从那时起对门户所做的 issuetracker 和提交,并向后移植在更高版本中所做的任何修复(如果它已经修复)

这引出了我的实际建议:我建议升级到最近发布的 GA6 并检查它是否仍然存在。很可能这个问题已经解决了很久,一个简单的更新可以帮助你摆脱这个消息。如果它是固定的:派对。如果不是:至少您使用的是最新版本,并且可能已经修复了一些安全问题(当然还有一些其他问题)。

于 2016-01-20T13:55:12.227 回答