#106 PreparedStatement.setBinaryStream(int, InputStream) problem


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 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.


  • 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.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks