UnsupportedOperationException

UnsupportedOperationException

某人要检查以解决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)

最佳答案

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

这是完全可选的,应在API中进行记录。

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

因此,您首先要查看的是库文档,然后看看有什么替代方法。

编辑

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

07-26 04:55