PreparedStatement.setBinaryStream(int, InputStream) problem
Status: Beta
Brought to you by:
swaldman
Invocation of
"java.sql.PreparedStatement.setBinaryStream(int, InputStream)"
method throws
"java.lang.AbstractMethodError: com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.setBinaryStream(ILjava/io/InputStream;)V"
when version 0.9.1.2 of c3p0 pool is used under JDK 1.6
Most likely, there are some other methods like
"java.sql.PreparedStatement.setBinaryStream(int, InputStream, long)"
introduced in JDK 1.6 which are not yet supported by c3p0 though that was not checked.
To my eternal shame, c3p0 does not yet support JDK 1.6 / JDBC 4 features. 0.9.2 will be a more minor bugfix release. The release after that will include JDBC4 support. In the meantime, you'll see AbstractMethodErrors if you try to use new JDBC 4 methods in c3p0. Sorry!
Hum,... Hibernate4 use this JDB4 feature for BLOB, so I guess we cannot use C3P0 with Hibernate4 anymore.