I'm seeing this error when I execute an SqlUpdate.update() method call. I wasn't aware that I had to close a result set with Spring JDBC. Where should I be doing this? The only place I see a resultset is in the mapRow methods of MappingSqlQuery objects; I am not otherwise doing JDBC calls outside of the framework. Thanks.
16:23:26,776 WARN [WrappedConnection] Closing a result set you left open! Please close it yourself.
java.lang.Exception: STACKTRACE
at org.jboss.resource.adapter.jdbc.WrappedStatement.r egisterResultSet(Wr
appedStatement.java:803)
at org.jboss.resource.adapter.jdbc.WrappedStatement.g etGeneratedKeys(Wra
ppedStatement.java:721)
at org.springframework.jdbc.core.JdbcTemplate$3.doInP reparedStatement(Jd
bcTemplate.java:720)
at org.springframework.jdbc.core.JdbcTemplate.execute (JdbcTemplate.java:
460)
at org.springframework.jdbc.core.JdbcTemplate.update( JdbcTemplate.java:7
15)
at org.springframework.jdbc.object.SqlUpdate.update(S qlUpdate.java:168)


Reply With Quote