配置管理器不应该为空错误

发布于 2024-08-13 07:58:51 字数 1195 浏览 3 评论 0原文

我们有一个 WAR,其中包含 S2 代码,并且该 WAR 部署在 Glassfish 上。当我们部署代码并尝试使用应用程序(在浏览器中)时,我们注意到配置管理器不应为空错误。部署后重新启动应用服务器就不会出现该错误。
日志:

[#|2009-12-04T12:55:47.215-0500|SEVERE|sun-appserver2.1|org.apache.catalina.core.ApplicationFilterConfig|_ThreadID=48;_ThreadName=RMI TCP Connection(5846)-127.0.0.1;_RequestID=d8d812b6-c1e1-4b56-a707-68e071ffb9e9;|ApplicationFilterConfig.doAsPrivilege
java.lang.IllegalStateException: The configuration manager shouldn't be null
    at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:849)
    at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:256)
    at org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:221)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

我对这个问题进行了一些研究,发现这是一个错误S2。尽管如此,错误已修复(最后评论),但修复对我们不起作用。也许是因为票证中没有提到 glassfish 服务器。

有没有人遇到过类似的问题?...或者有解决办法吗?

we have a WAR that has S2 code in it and the WAR is deployed on Glassfish. We are noticing the configuration manager shouldn't be null error when we deploy the code and try to bring use the application (in browser). The error does not happen when the Application server is restarted after the deployment.
Log:

[#|2009-12-04T12:55:47.215-0500|SEVERE|sun-appserver2.1|org.apache.catalina.core.ApplicationFilterConfig|_ThreadID=48;_ThreadName=RMI TCP Connection(5846)-127.0.0.1;_RequestID=d8d812b6-c1e1-4b56-a707-68e071ffb9e9;|ApplicationFilterConfig.doAsPrivilege
java.lang.IllegalStateException: The configuration manager shouldn't be null
    at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:849)
    at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:256)
    at org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:221)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

I researched this issue a bit and found that this is an error with S2. Even though, bug is fixed (last comment) that fix does not work for us. Maybe because glassfish server is not mentioned in the ticket.

Has anyone faced similar issues?...or has a fix?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

逆光飞翔i 2024-08-20 07:58:51

如果 ActionContextCleanup< 则此问题已修复/a> 过滤器已添加到 web.xml。它适用于我的 GlassFish V2。 FilterDispatcher 是应该清理操作,但该调度程序似乎在 GlassFish V2 上存在一些问题。因此 ActionContextCleanup Filter 应该与与您的 struts 页面匹配的 url 模式一起使用。

This is fixed if ActionContextCleanup Filter is added to web.xml. It worked for my on GlassFish V2. FilterDispatcher is suppose to clean up actions but this dispatcher seems to have some issues on GlassFish V2. So ActionContextCleanup Filter should be used with url pattern that matches your struts pages.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文