gpt4 book ai didi

java - weblogic 10.3.5 抛出 nullPointerException

转载 作者:行者123 更新时间:2023-11-30 03:51:16 31 4
gpt4 key购买 nike

在 weblogic 10.3.5 上部署了我的 struts2 应用程序,但它抛出 nullPointerException 并带有以下跟踪:

> WatchRuleType: Log  WatchRule: (SEVERITY = 'Error') AND ((MSGID =
> 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR
> (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID =
> 'BEA-000802')) WatchData: DATE = Jun 24, 2014 9:58:11 AM EDT SERVER =
> eSrvcs_ManagedServer_1 MESSAGE =
> [ServletContext@1412211888[app:eServices module:eServices.war
> path:/eServices spec-version:2.5]] Servlet failed with Exception
> java.lang.NullPointerException at
> weblogic.servlet.internal.ServletResponseImpl.sendContentError(ServletResponseImpl.java:611)
> at
> weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:655)
> at
> org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:914)
> at
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:574)
> at
> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
> at
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
> at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
> at
> oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
> at java.security.AccessController.doPrivileged(Native Method) at
> oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
> at
> oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
> at
> oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
> at
> oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
> at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
> at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
> at
> oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
> at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
> at
> weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
> at
> weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
> at
> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
> at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at
> weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

看起来好像 NPE 是由 weblogic 类抛出的,而不是由 struts2 类抛出的。根据 apache 人员的建议,我在 weblogic.xml 中设置了 archived-real-path ,如下所示。

 <wls:container-descriptor>
<wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
<wls:show-archived-real-path-enabled>true</wls:show-archived-real-path-enabled>
</wls:container-descriptor>

但是,这似乎对我遇到的异常没有帮助。不确定这是否是 weblogic 中的错误。任何帮助将不胜感激。

最佳答案

经过长时间的测试,问题是服务器上没有启用 JPA 2.0。

关于java - weblogic 10.3.5 抛出 nullPointerException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24390402/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com