我收到以下错误@ weblogic server
。有人可以帮帮我吗?
<BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@3c6542 - appName: 'goutattack', name: 'goutattack', context-path: '', spec-version: '2.5'] Servlet failed with Exception
java.lang.NullPointerException
at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:643)
at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:852)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:534)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:432)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3502)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2186)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092)
at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
答案 0 :(得分:0)
这是一个已知的主要问题,已在Struts v2.3.7中修复。请参阅:https://issues.apache.org/jira/browse/WW-3373
也可能与Jasper插件的问题有关:
在Weblogic 11g中使用提到的插件时,您可以在Struts 2中获得NullPointerException。要解决此问题,您必须在Weblogic管理控制台中启用“Archived Real Path”全局属性&gt;配置&gt; Web应用程序。这是因为JasperReportsResult基于servletContext.getRealPath(finalLocation)确定报告目录。