Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#106 PreparedStatement.setBinaryStream(int, InputStream) problem

pending
nobody
None
5
2014-08-23
2012-02-02
No

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.

Discussion

  • Steve Waldman
    Steve Waldman
    2012-05-13

    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!

     
  • Steve Waldman
    Steve Waldman
    2012-05-13

    • status: open --> pending
     
  • Fabrice Daugan
    Fabrice Daugan
    2012-11-13

    Hum,... Hibernate4 use this JDB4 feature for BLOB, so I guess we cannot use C3P0 with Hibernate4 anymore.