0
我有一個運行在jboos 6.0.1上的webapp。「連接與託管連接無關」更改MySQL的JDBC驅動程序後
改變MySQL的JDBC驅動程序從5.1.10到5.1.33我越來越有時以下異常後:
javax.ejb.EJBTransactionRolledbackException: Cannot open connection
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:148) [:0.0.2]
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:227) [:0.0.2]
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.required(CMTTxInterceptor.java:353) [:0.0.2]
at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java:209) [:0.0.2]
.
.
.
Caused by: java.sql.SQLException: Connection is not associated with a managed connec[email protected]1841c24c
at org.jboss.resource.adapter.jdbc.WrappedConnection.lock(WrappedConnection.java:90)
at org.jboss.resource.adapter.jdbc.WrappedStatement.lock(WrappedStatement.java:64)
at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.setClob(WrappedPreparedStatement.java:802)
at org.hibernate.type.descriptor.sql.ClobTypeDescriptor$2$1.doBind(ClobTypeDescriptor.java:70)
at org.hibernate.type.descriptor.sql.ClobTypeDescriptor$1$1.doBind(ClobTypeDescriptor.java:56)
at org.hibernate.type.descriptor.sql.BasicBinder.bind(Basic
看來,版本5.1.13和5.1之間的驅動程序進行了修改.14引起了這個問題。 (可能是因爲驅動程序滲透=沒有發生的舊bug)
我認爲這取決於jdk版本。 – Lokesh 2014-10-31 16:34:58