Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.3.3
-
Fix Version/s: 2.0.0
-
Labels:None
-
Environment:Java 1.6.0_12 + Spring 2.5.6 + Tomcat 6.0.18 + Oracle 10r2
-
Number of attachments :
Description
Hi,
I'm getting the following exception when using BTM 1.3.3-RC2 :
java.lang.AbstractMethodError: bitronix.tm.resource.jdbc.JdbcConnectionHandle.createClob()Ljava/sql/Clob;
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:225)
at $Proxy16.createClob(Unknown Source)
at com.a2a.movalys.fwk.transaction.Connection.createClob(Connection.java:459)
at com.adeuza.movalys.fwk.data.dao.AbstractDao.createClob(AbstractDao.java:132)
My application code looks like this :
oPreparedStatement.setLong(1, oObject.getId());
[...]
Clob oClob = oConnection.createClob();
oClob.setString(1, p_sContent);
oPreparedStatement.setClob(8, oClob);
This work fine with direct Oracle JDBC Datasource.
AFAIK, there is missing methods in JdbcConnectionHandle to be uptodate regarding JDBC 4.0 API (included in Java 6)
Regards,
It's a limitation of the BTM JDBC pool which I'm aware of.
You'll have to live with it for now but this will definitely be improved in the future.