在将数据库从oracle迁移到mysql 8后,尝试启动tomcat并将war文件部署在liferay-portal-6.1.1-ce-ga2捆绑软件上时,收到以下错误消息。
09:18:23,351 ERROR [http-bio-8100-exec-1][MainServlet:1224] com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
at com.liferay.portal.events.ServicePreAction.run(ServicePreAction.java:1295)
at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:81)
at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:58)
at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:40)
at com.liferay.portal.servlet.MainServlet.processServicePre(MainServlet.java:1204)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
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:72)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
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.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at com.liferay.portal.util.PortalImpl.isLayoutFriendliable(PortalImpl.java:4909)
at com.liferay.portal.util.PortalImpl.getLayoutFriendlyURL(PortalImpl.java:2448)
at com.liferay.portal.util.PortalImpl.getLayoutURL(PortalImpl.java:2687)
at com.liferay.portal.util.PortalImpl.getLayoutFullURL(PortalImpl.java:2499)
at com.liferay.portal.util.PortalImpl.getLayoutFullURL(PortalImpl.java:2492)
at com.liferay.portal.util.PortalImpl.getLayoutFullURL(PortalImpl.java:2580)
at com.liferay.portal.util.PortalUtil.getLayoutFullURL(PortalUtil.java:721)
at com.liferay.portal.service.ServiceContextFactory.getInstance(ServiceContextFactory.java:69)
at com.liferay.portal.events.ServicePreAction.servicePre(ServicePreAction.java:1949)
at com.liferay.portal.events.ServicePreAction.run(ServicePreAction.java:1292)
... 119 more
09:18:23,400 ERROR [http-bio-8100-exec-2][error_jsp:422] User ID null
09:18:23,402 ERROR [http-bio-8100-exec-2][error_jsp:423] Current URL /group/kir
09:18:23,402 ERROR [http-bio-8100-exec-2][error_jsp:424] Referer null
09:18:23,403 ERROR [http-bio-8100-exec-2][error_jsp:425] Remote address 10.11.11.1
09:18:23,403 ERROR [http-bio-8100-exec-2][error_jsp:427] com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
at com.liferay.portal.events.ServicePreAction.run(ServicePreAction.java:1295)
at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:81)
at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:58)
at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:40)
at com.liferay.portal.servlet.MainServlet.processServicePre(MainServlet.java:1204)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
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:72)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
ers.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
ost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
环境详细信息-
Jdk1.8 MySql8.0, liferay-portal-6.1.1-ce-ga2, Tomcat 7 所有默认配置
以下是Liferay社区中同一问题的链接:Liferay Community
任何人都可以在这里指导我。
答案 0 :(得分:0)
Liferay CE 6.1.1于2013年2月发布,MySQL 8于2018年4月发布。可以肯定地假设Liferay 6.1尚未在MySQL 8上进行测试。
Java 8于2014年3月发布。此处的假设相同。
即使Liferay 6.1 EE发行版晚了很多,也没有list MySQL 8兼容性。虽然列出了Java 8支持,但该支持是随更高版本提供的-肯定是在Java 8发行日期之后发布的。
建议不要保留您的运行时环境,而建议保留您面向客户的应用程序,例如Liferay,当前。不仅受益于新功能,还受益于错误修正。
请注意,即使Liferay DXP 7.1(企业版)也未将MySQL 8列为受支持。它是在MySQL 8发布之后才发布的,并且在发布周期中,没有更多的时间来认证MySQL8。我希望下一个版本具有这种兼容性,也许可以移植到7.0 DXP分支。