druid Informix存储过程调用失败, 继续调用会被错.

pkln4tw6  于 2021-11-27  发布在  Java
关注(0)|答案(0)|浏览(279)

你好, 之前提的: #1498 问题, 在1.0.27版本没有完全修复.

现在是调用存储过程异常后, 在调用此过程, 都会报: java.sql.SQLException: 'Statement' already closed., 再次调用就正常了.

具体流程是:

  1. 正向测试调用存储过程, 一切正常
  2. 反向调用存储过程, 存储过程内部异常, java捕获异常
  3. 再次正向测试调用存储过程, 此时就会报'Statement' already closed.
  4. 在此正向测试, 一切OK.

具体异常栈信息如下:

Caused by: java.sql.SQLException: 'Statement' already closed.
	at com.informix.util.IfxErrMsg.getSQLException(Unknown Source)
	at com.informix.jdbc.IfxPreparedStatement.setObject(Unknown Source)
	at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_setObject(FilterChainImpl.java:2923)
	at com.alibaba.druid.filter.FilterAdapter.preparedStatement_setObject(FilterAdapter.java:1298)
	at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_setObject(FilterChainImpl.java:2920)
	at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.setObject(PreparedStatementProxyImpl.java:411)
	at com.alibaba.druid.pool.DruidPooledPreparedStatement.setObject(DruidPooledPreparedStatement.java:476)

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题