Jdbc Weblogic错误-不支持方法:Statement.cancel
我正在Weblogic 9.2 MP3上运行一个应用程序,目前连接池有问题Jdbc Weblogic错误-不支持方法:Statement.cancel,jdbc,weblogic,Jdbc,Weblogic,我正在Weblogic 9.2 MP3上运行一个应用程序,目前连接池有问题 ERROR - UserBean retrieving user record. weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException: No resources currently available in pool MyApp Data Source to allocat
ERROR - UserBean retrieving user record. weblogic.jdbc.extensions.PoolLimitSQLException:
weblogic.common.resourcepool.ResourceLimitException: No resources currently available in pool MyApp Data Source to allocate to applications, please increase the size of the pool and retry..
我还不断收到下面的错误消息,说“方法不受支持:Statement.cancel()
”,我认为这是导致上述错误的原因
<Error> <JDBC> <BEA-001131> <Received an exception when closing a cached statement for the pool "MyApp Data Source": java.sql.SQLException: Method not supported : Statement.cancel()..>
我浏览了应用程序的源代码,这个方法似乎根本没有被应用程序使用。尽管这可能与weblogic本身有关
有人知道如何修复此错误吗?首先,我要确保关闭了每个
java.sql.Connection
变量
e、 g
您可以通过放置connection.close()使其更加紧密编码>到try/catch块的finally
部分
final Connection connection = dataSource.getConnection();
// do your database work here
if (connection != null) {
connection.close();
}