Issue Type: Bug Bug
Affects Versions: 4.1.8
Assignee: Unassigned
Components: core
Created: 10/Nov/12 3:46 AM
Description:

Some changes introduced by HHH-7698 (In efficient LOB creations backed by streams) are creating issues when c3p0 is used.

It appears to be a side effect caused by the change of org.hibernate.engine.jdbc.CharacterStream.getLength() for it to return a long.

As a consequence, when org.hibernate.type.descriptor.sql.ClobTypeDescriptor.STREAM_BINDING calls st.setCharacterStream(index,characterStream.asReader(), characterStream.getLength()), the method of javax.sql.PreparedStatement being called is setCharacterStream(int, Reader, long) when it use to be setCharacterStream(int, Reader, int).

The call to setCharacterStream(int, Reader, long) results in a AbstractMethodError as this method was introduced by JDBC 4 which is not yet supported by c3p0.

Project: Hibernate ORM
Priority: Critical Critical
Reporter: Jean-Philippe Courson
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira