java - Hibernate 4 calls setBinaryStream that is not supported in c3p0 -
hibernate 4 uses jdbc4, signature of method setbinarystream(int, inputstream, int) changed setbinarystream(int, inputstream, long). c3p0 not back upwards new method.
so calling saveorupdate(myobjwithblob) results
java.lang.abstractmethoderror: com.mchange.v2.c3p0.impl.newproxypreparedstatement.setbinarystream(iljava/io/inputstream;j)v @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.hibernate.engine.jdbc.internal.proxy.abstractstatementproxyhandler.continueinvocation(abstractstatementproxyhandler.java:122) @ org.hibernate.engine.jdbc.internal.proxy.abstractproxyhandler.invoke(abstractproxyhandler.java:81) @ $proxy75.setbinarystream(unknown source)
so can now?
1) not utilize c3p0. dhcp, bonecp or no conntection pool @ all. - not alternative want.
2) somehow create hibernate avoid calling new method? ist possible?
3) switching hibernate 3 - not me.
please upgrade c3p0 0.9.2-pre8 (or wait few days 0.9.2 final). issue has been resolved in recent releases of library.
update: c3p0-0.9.2 release. resolve issue.
java hibernate c3p0
No comments:
Post a Comment