gpt4 book ai didi

java - 不支持的方法 : Statement. setCursorName,WAS 8.5.0,AIX,Oracle 11

转载 作者:行者123 更新时间:2023-11-30 10:56:33 32 4
gpt4 key购买 nike

我在获取应用程序数据期间遇到以下错误。

SingleCollect E   java.sql.SQLFeatureNotSupportedException: [MyCompany][Oracle JDBC Driver]Unsupported method: Statement.setCursorName

SoapServicesIm E Unable to perform operation on method 'getTemplate' of webservice 'AppServices' due to the following reason: A database error has occured[00010040013] Details: java.sql.SQLFeatureNotSupportedException: [MyCompany][Oracle JDBC Driver]Unsupported method: Statement.setCursorName.

环境:

AIX 7、datadirect.jar、Oracle11、WAS 8.5.0

与 oracle 数据库相同的 datadirect.jar 在 Windows server 2008 + WAS 8.5.5.2 上完美运行。

我真的不知道我错过了什么。我在这两种情况下都做了相同的配置。

出现错误的源代码:(错误区域 - prepStatement.close())

finally{
try
{
if (results != null){
results.close();
}
if (prepStatement != null){
prepStatement.close();
}
if (connect != null){
connect.close();
}
}

任何建议都会对我很有帮助。

更新:

堆栈跟踪:

FFDC Exception:java.sql.SQLFeatureNotSupportedException SourceId:com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.closeWrapper ProbeId:310 Reporter:com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement@ac8a02e8
java.sql.SQLFeatureNotSupportedException: [MyCompany][Oracle JDBC Driver]Unsupported method: Statement.setCursorName
at com.myproduct.jdbc.oraclebase.ddcr.b(Unknown Source)
at com.myproduct.jdbc.oraclebase.ddcr.a(Unknown Source)
at com.myproduct.jdbc.oraclebase.ddcq.b(Unknown Source)
at com.myproduct.jdbc.oraclebase.ddcq.a(Unknown Source)
at com.myproduct.jdbc.oraclebase.dddj.a(Unknown Source)
at com.myproduct.jdbc.oraclebase.dde3.setCursorName(Unknown Source)
at com.myproduct.jdbcx.oraclebase.dds.setCursorName(Unknown Source)
at com.ibm.websphere.rsadapter.GenericDataStoreHelper.doStatementCleanup(GenericDataStoreHelper.java:774)
at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.closeWrapper(WSJdbcPreparedStatement.java:490)
at com.ibm.ws.rsadapter.jdbc.WSJdbcObject.close(WSJdbcObject.java:241)
at com.ibm.ws.rsadapter.jdbc.WSJdbcObject.close(WSJdbcObject.java:194)
at com.myproduct.mdi.services.RecordCollection.executeQuery(RecordCollection.java:432)
at com.myproduct.mdi.server.impl.AppServicesImpl.getTemplate(AppServicesImpl.java:792)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.apache.axis2.jaxws.server.dispatcher.JavaDispatcher.invokeTargetOperation(JavaDispatcher.java:101)
at org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher.invoke(JavaBeanDispatcher.java:118)
at org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointController.java:111)
at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:161)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:198)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at com.ibm.ws.websvcs.transport.http.WASAxis2Servlet.doPost(WASAxis2Servlet.java:1544)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1214)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1027)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:895)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:522)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:311)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:87)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1783)

==> Performing default dump from com.ibm.ws.rsadapter.DiagnosticModuleForAdapter :Tue Oct 06 12:21:27 IST 2015
This is a FFDC log generated for the Default Resource Adapter from source:com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.closeWrapper
The exception caught:java.sql.SQLFeatureNotSupportedException: [MyCompany][Oracle JDBC Driver]Unsupported method: Statement.setCursorName
SQL Error Code is 0 SQL State is :HY000
Operating System:AIX 7.1 ppc64

最佳答案

首先感谢您的支持和时间。

此问题已通过将 WAS 升级到 8.5.5.2 得到解决。现在,我没有收到任何错误。能够登录并进行所有操作。

如果您不想升级您的 WAS,其他解决方案是,在您的应用程序数据源的自定义属性下将内置属性“extendedOptions”设置为值“throwExceptionForUnsupportedMethods=false”。希望这对遇到类似问题的人有所帮助。

关于java - 不支持的方法 : Statement. setCursorName,WAS 8.5.0,AIX,Oracle 11,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32968362/

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