添加新的私人页面(或简单的页面),Liferay 7.1 抛出以下异常:
错误 [http-nio-8080-exec-4][LiferayMethodExceptionEventHandler:54] 无法执行方法 processMax {exception=com.liferay.portal.kernel.portlet.PortletContainerException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: could不初始化类 com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.BundleJavaFileManager, className=com.liferay.portal.layoutconfiguration.util.velocity.TemplateProcessor} com.liferay.portal.kernel.portlet.PortletContainerException:javax.servlet.ServletException:java.lang.NoClassDefFoundError:无法初始化类com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.BundleJavaFileManager 在 com.liferay.portlet.internal.PortletContainerImpl._preserveGroupIds(PortletContainerImpl.java:393) 在 com.liferay.portlet.internal.PortletContainerImpl.render(PortletContainerImpl.java:201) ... 原因:javax.servlet.ServletException:java.lang.NoClassDefFoundError:无法初始化类 com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.BundleJavaFileManager 在 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:667) 在 com.liferay.taglib.servlet.PageContextWrapper.handlePageException(PageContextWrapper.java:173) 在 org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:2317) ... 引起:java.lang.NoClassDefFoundError:无法初始化类 com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.BundleJavaFileManager 在 com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspCompiler.getJavaFileManager(JspCompiler.java:348) 在 com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspCompiler.compile(JspCompiler.java:113) 在 org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:384) ... 2018-10-22 21:10:05.996 错误 [liferay/monitoring-1][ParallelDestination:55] 无法处理消息 {destinationName=liferay/monitoring, response=null, responseDestinationName=null, responseId=null, payload=[{ displayName=Group Pages, portletId=com_liferay_layout_admin_web_portlet_GroupPagesPortlet, requestType=RENDER, {attributes=null, companyId=20099, groupId=20126, description=null, duration=0, name=com_liferay_layout_admin_web_portlet_GroupPagesPortlet, namespace=com.liferay.monitoring.Portlet, requestStatus= null, stopWatch=0:00:00.985, timeout=0, user=20139}}, {referer=http://localhost:8080/group/guest/~/control_panel/manage?p_p_id=com_liferay_layout_admin_web_portlet_GroupPagesPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_layout_admin_web_port =页数&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_navigation=private-pages&p_r_p_selPlid=0&p_p_auth=GrbsPdTZ, remoteAddr=127.0.0.1, requestURL=http://localhost:8080/c/portal/layout.jsp_display, statusCode=200, userAgent=Mozilla/5.0 (Windows NT 10.0; Win x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36, {attributes=null, companyId=20099, groupId=20126, description=Portal Request, duration=6, name=/c/portal/layout , namespace=com.liferay.monitoring.Portal, requestStatus=SUCCESS, stopWatch=0:00:00.006, timeout=-1, user=20139}}, {referer=http://localhost:8080/group/guest/~ /control_panel/manage?p_p_id=com_liferay_layout_admin_web_portlet_GroupPagesPortlet&p_p_lifecycle=0&p_p_state=最大化&p_p_mode=view&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_tabs1=pages&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_navigation=private-pages&p_r_p_selPlid=0&p_p_auth=GrbsPdTZ, remoteAddr=127.0.0.1, requestURL=, statusCode=200, userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KoHTML.) 3497.100 Safari/537.36,{attributes=null,companyId=20099,groupId=20126,description=null,duration=980,name=/c/portal/layout,namespace=com.liferay.monitoring.Portal,requestStatus=SUCCESS,stopWatch =0:00:00.980, timeout=-1, user=20139}}, {referer=http://localhost:8080/group/guest/~/control_panel/manage?p_p_id=com_liferay_layout_admin_web_portlet_GroupPagesPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_layout_admin_web_portlet_portlet__com_liferay_layout_admin_web_portlet_GroupPagesPortlet_navigation=private-pages&p_r_p_selPlid=0&p_p_auth=GrbsPdTZ, remoteAddr=127.0.0.1, requestURL=, statusCode=200, userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KoHTML.) 3497.100 Safari/537.36,{attributes=null,companyId=20099,groupId=20126,description=null,duration=997,name=/group/guest/~/control_panel/manage,namespace=com.liferay.monitoring.Portal,requestStatus =SUCCESS,stopWatch=0:00:00.997,timeout=-1,user=null}}],values={defaultLocale=en_US,companyId=20099,groupId=0,principalName=20139,permissionChecker=com.liferay.portal。 kernel.util.TransientValue@7b665540,siteDefaultLocale=en_US,themeDisplayLocale=en_US}}userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36, {attributes=null, companyId=20099, groupId=20126, description=null, duration =997,name=/group/guest/~/control_panel/manage,namespace=com.liferay.monitoring.Portal,requestStatus=SUCCESS,stopWatch=0:00:00.997,timeout=-1,user=null}}], values={defaultLocale=en_US, companyId=20099, groupId=0, principalName=20139, permissionChecker=com.liferay.portal.kernel.util.TransientValue@7b665540, siteDefaultLocale=en_US, themeDisplayLocale=en_US}}userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36, {attributes=null, companyId=20099, groupId=20126, description=null, duration =997,name=/group/guest/~/control_panel/manage,namespace=com.liferay.monitoring.Portal,requestStatus=SUCCESS,stopWatch=0:00:00.997,timeout=-1,user=null}}], values={defaultLocale=en_US, companyId=20099, groupId=0, principalName=20139, permissionChecker=com.liferay.portal.kernel.util.TransientValue@7b665540, siteDefaultLocale=en_US, themeDisplayLocale=en_US}}requestStatus=SUCCESS, stopWatch=0:00:00.997, timeout=-1, user=null}}], values={defaultLocale=en_US, companyId=20099, groupId=0, principalName=20139, permissionChecker=com.liferay.portal .kernel.util.TransientValue@7b665540,siteDefaultLocale=en_US,themeDisplayLocale=en_US}}requestStatus=SUCCESS, stopWatch=0:00:00.997, timeout=-1, user=null}}], values={defaultLocale=en_US, companyId=20099, groupId=0, principalName=20139, permissionChecker=com.liferay.portal .kernel.util.TransientValue@7b665540,siteDefaultLocale=en_US,themeDisplayLocale=en_US}} com.liferay.portal.kernel.messaging.MessageListenerException:java.lang.NullPointerException 在 com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32) 在 com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74) 在 com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52) 在 com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756) 在 com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667) 在 java.lang.Thread.run(Thread.java:748) 引起:java.lang.NullPointerException 在 com.liferay.portal.monitoring.internal.statistics.portlet.PortletStatistics.processDataSample(PortletStatistics.java:112) 在 com.liferay.portal.monitoring.internal.statistics.portlet.CompanyStatistics.processDataSample(CompanyStatistics.java:209) ...
并显示一个空白页,其中写入了“${processor.processMax()}”。
重新提交页面似乎“取消阻止”该操作并刷新视图。
那是 Liferay 的错误吗?我不确定,但我想我可以在其他地方随机复制它:-(
请注意,我使用 Liferay 7.1 和从 Liferay 官方网站下载的嵌入式 tomcat 9。