Hi,
in 4.3:
org.hibernate.engine.jdbc.internal.LobCreatorBuilder.java, line 112 is the reason of your "problem"
Code:
starting from line 108:
// If we get here we are running in a jdk 1.6 (jdbc 4) environment...
// Further check to make sure the driver actually implements the LOB creation methods. We
// check against createClob() as indicative of all; should we check against all 3 explicitly?
try {
final Object clob = createClobMethod.invoke( jdbcConnection, NO_ARGS );
try {
final Method freeMethod = clob.getClass().getMethod( "free", NO_ARG_SIG );
freeMethod.invoke( clob, NO_ARGS );
}
catch ( Throwable ignore ) {
LOG.tracef( "Unable to free CLOB created to test createClob() implementation : %s", ignore );
}
return true;
}
catch ( Throwable t ) {
LOG.disablingContextualLOBCreationSinceCreateClobFailed( t );
}
Maybe someone can explain, why I've have to disable this with
hibernate.jdbc.lob.non_contextual_creation=true
even it is obvious because I'm using mysql connector.
Best regards