为了解决 OC4J 10.1.3.5 中的 UnsupportedOperationException,首先要检查的是什么?

发布于 2024-09-05 11:47:12 字数 2795 浏览 2 评论 0原文

为了解决 OC4J 10.1.3.5 中的 UnsupportedOperationException,首先要检查的是什么?注销期间会发生这种情况。我们有两个相同的(从编码和类路径角度来看)应用程序 - 一个正确注销,另一个抛出 UnsupportedOperationException。

10/06/11 10:58:07 ERROR: Error during SSO logout
10/06/11 10:58:07 java.lang.UnsupportedOperationException
10/06/11 10:58:07       at oracle.adf.share.DefaultContext.loadEnvironment(ADFContext.java:574)
10/06/11 10:58:07       at oracle.adf.share.ADFContext.getEnvironment(ADFContext.java:365)
10/06/11 10:58:07       at oracle.adf.share.http.HttpSessionScopeAdapter.getSession(HttpSessionScopeAdapter.java:318)
10/06/11 10:58:07       at oracle.adf.share.http.HttpSessionScopeAdapter.invalidate(HttpSessionScopeAdapter.java:524)
10/06/11 10:58:07       at oracle.adf.share.http.HttpSessionScopeAdapter.valueUnbound(HttpSessionScopeAdapter.java:584)
10/06/11 10:58:07       at com.evermind.server.http.EvermindHttpSession.destroy(EvermindHttpSession.java:472)
10/06/11 10:58:07       at com.evermind.server.http.HttpApplication.invalidateSession(HttpApplication.java:1007)
10/06/11 10:58:07       at com.evermind.server.http.HttpApplication.invalidateSession(HttpApplication.java:978)
10/06/11 10:58:07       at com.evermind.server.http.EvermindHttpSession.invalidate(EvermindHttpSession.java:411)
10/06/11 10:58:07       at com.evermind.server.http.EvermindHttpSession.invalidate(EvermindHttpSession.java:378)
10/06/11 10:58:07       at com.polk.connect.view.util.SSOUtils.doSSOLogout(SSOUtils.java:222)
10/06/11 10:58:07       at com.polk.connect.view.security.AuthServlet.execute(AuthServlet.java:127)
10/06/11 10:58:07       at com.polk.connect.view.security.AuthServlet.doGet(AuthServlet.java:68)
10/06/11 10:58:07       at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
10/06/11 10:58:07       at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
10/06/11 10:58:07       at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
10/06/11 10:58:07       at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
10/06/11 10:58:07       at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
10/06/11 10:58:07       at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
10/06/11 10:58:07       at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
10/06/11 10:58:07       at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
10/06/11 10:58:07       at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
10/06/11 10:58:07       at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)

What would be the first thing that someone would check to resolve the UnsupportedOperationException in OC4J 10.1.3.5? This happen during logging out. We have two identical (from coding and classpath perspective) applications - one log out correctly, another one throws UnsupportedOperationException.

10/06/11 10:58:07 ERROR: Error during SSO logout
10/06/11 10:58:07 java.lang.UnsupportedOperationException
10/06/11 10:58:07       at oracle.adf.share.DefaultContext.loadEnvironment(ADFContext.java:574)
10/06/11 10:58:07       at oracle.adf.share.ADFContext.getEnvironment(ADFContext.java:365)
10/06/11 10:58:07       at oracle.adf.share.http.HttpSessionScopeAdapter.getSession(HttpSessionScopeAdapter.java:318)
10/06/11 10:58:07       at oracle.adf.share.http.HttpSessionScopeAdapter.invalidate(HttpSessionScopeAdapter.java:524)
10/06/11 10:58:07       at oracle.adf.share.http.HttpSessionScopeAdapter.valueUnbound(HttpSessionScopeAdapter.java:584)
10/06/11 10:58:07       at com.evermind.server.http.EvermindHttpSession.destroy(EvermindHttpSession.java:472)
10/06/11 10:58:07       at com.evermind.server.http.HttpApplication.invalidateSession(HttpApplication.java:1007)
10/06/11 10:58:07       at com.evermind.server.http.HttpApplication.invalidateSession(HttpApplication.java:978)
10/06/11 10:58:07       at com.evermind.server.http.EvermindHttpSession.invalidate(EvermindHttpSession.java:411)
10/06/11 10:58:07       at com.evermind.server.http.EvermindHttpSession.invalidate(EvermindHttpSession.java:378)
10/06/11 10:58:07       at com.polk.connect.view.util.SSOUtils.doSSOLogout(SSOUtils.java:222)
10/06/11 10:58:07       at com.polk.connect.view.security.AuthServlet.execute(AuthServlet.java:127)
10/06/11 10:58:07       at com.polk.connect.view.security.AuthServlet.doGet(AuthServlet.java:68)
10/06/11 10:58:07       at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
10/06/11 10:58:07       at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
10/06/11 10:58:07       at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
10/06/11 10:58:07       at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
10/06/11 10:58:07       at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
10/06/11 10:58:07       at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
10/06/11 10:58:07       at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
10/06/11 10:58:07       at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
10/06/11 10:58:07       at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
10/06/11 10:58:07       at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)

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

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

发布评论

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

评论(2

迟月 2024-09-12 11:47:12

java.lang.UnsupportedOperationException 由库抛出,如果……不支持某些操作。

这是完全可选的,并且应该记录在 API 中。

这在 JDBC 驱动程序中很常见,即使对于同一个数据库,一个驱动程序也可能会抛出它,而其他驱动程序则不会(在我的 Oracle 驱动程序和 weblogic 内部驱动程序中发生过这种情况)

所以,您首先要考虑的是库文档并查看替代方案。

编辑

顺便说一句,您要做的第二件事是在metalink(或现在调用的任何名称)中创建服务请求

java.lang.UnsupportedOperationException are thrown by a library if.. .well some operation is not supported.

This is totally optional and should be documented in the API.

This is common for instance in JDBC drivers where even for the same DB one driver may throw it and other no ( use to happen to me with Oracle driver and weblogic internal driver )

So, the first thing you have to take a look at is the library documentation and see what's the alternative.

edit

BTW the second thing you have to do is create a service request in metalink ( or whatever is that called now )

避讳 2024-09-12 11:47:12

我也有同样的问题。

升级到 10.1.3.5 后使 ADF 会话无效时的Metalink Note

UnsupportedOperationException [ID 974429.1] 表明补丁 9077465 包含针对此错误的修复。

I had the same problem.

The Metalink Note

UnsupportedOperationException When Invalidating ADF Session After Upgrading to 10.1.3.5 [ID 974429.1] tells that patch 9077465 contains a fix for this bug.

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