2016-01-20 48 views
1

在liferay門戶6.2 CE-GA2中,我使用留言板portlet。在這個portlet中,我創建一個線程,然後我回復該線程。每回復後,我在catalina.out日誌文件中有這些消息:回覆留言板portlet中的線程時出錯

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) 

我如何解決這個問題?

+0

除了我的回答:請閱讀本文並添加建議的信息:http://meta.stackexchange.com/questions/141823/why-is-cross-posting-wrong-on-an-external-現場 –

回答

1

這取決於你想要去的深度:你可以分析NullpointerException發生的位置,看看是否有一個容易修復的問題。你也可以檢查issuetracker並提交已經在門戶網站上發佈的信息,並將修補程序在以後的版本中恢復(如果它已經修復)

這使我得到我的實際建議:建議升級到最近發佈的GA6並檢查它是否仍然在那裏發生。有可能這個問題很長時間得到解決,而簡單的更新可以幫助你擺脫這個信息。如果它是固定的:Party。如果沒有:至少你是在最新版本,並可能會解決一些安全問題(以及其他一些問題)。