We would like to convert over to log4jdbc
in our application, but there seems to be one
small hitch....
Running on Solaris 10, using Glassfish server,
connecting to an Oracle DB via ojdbc14.jar, using
an oci connector. I've tested this against
a 10g RAC, and a 9i standalone, and the same
result occurs.
It's happening when we are trying to insert a CLOB
object via an update clause
Here's a synopsis of the log up to the exception:
select MSG_TXT from Table where Key = xxx FOR UPDATE nowait
select MSG_TXT from Table where Key = xxx FOR UPDATE nowait {executed in 78 msec}
ResultSet.new ResultSet returned
12. PreparedStatement.executeQuery() returned net.sf.log4jdbc.ResultSetSpy@1169d
12. ResultSet.next() returned true
This is the statement that is throwing the exception:
CLOB clob = ((oracle.jdbc.OracleResultSet) rs).getCLOB(1);
which throws this:
Throwable: java.lang.ClassCastException: net.sf.log4jdbc.ResultSetSpy
.
.
.
Can you give me a pointer on where to look or what further
info I can provide, or what I need to do to debug this?
Thanks.
Here's the relevant java code:
st = con.prepareStatement(sbQry.toString());
rs = st.executeQuery();
if (rs.next()) {
CLOB clob = ((oracle.jdbc.OracleResultSet) rs).getCLOB(1);
On Wed, Jun 17, 2009 at 9:05 PM, Eric<ethe...@gmail.com> wrote:
> Fix makes sense, but does not work for us as it is Spring that is
> making the call. Any other ideas?
>
> -e