部署流程的时候报错java.lang.ClassCastException: $Proxy10 insert into JBPM4_LOB
czpae86
2012-05-10
错误信息:
Hibernate: insert into JBPM4_LOB (DBVERSION_, BLOB_VALUE_, DBID_) values (?, ?, ?) [DEBUG] 13:43:28 EhcacheGeneralDataRegion - key: JBPM4_LOB value: 5474831025557504 [ INFO] 13:43:28 DefaultCommandService - exception while executing command org.jbpm.pvm.internal.cmd.DeployCmd@14f2bd7 java.lang.ClassCastException: $Proxy10 at oracle.jdbc.driver.OraclePreparedStatement.setBlob(OraclePreparedStatement.java:6890) at org.hibernate.type.descriptor.sql.BlobTypeDescriptor$1.doBind(BlobTypeDescriptor.java:65) at org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:89) at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:282) at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:277) at org.hibernate.type.AbstractSingleColumnStandardBasicType.nullSafeSet(AbstractSingleColumnStandardBasicType.java:85) at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:2166) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2412) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2856) at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:79) 使用jbpm4.4,hibernate-3.6.8.jar,oracle驱动classes12.g10.jar 试过换hibernate低版本,试过换oracle驱动,但问题还在。 请问怎么解决? |
|
pm711
2012-05-11
我前几天也遇到这个问题,就是数据库表字段有lob类型的,就插不进去,报“[org.hibernate.util.JDBCExceptionReporter] 不允许的操作: streams type cannot be used in batching
” 后来是发现ORACLE驱动不是最新的(odjbc12的驱动),换成Oracle10.1.0版本同时发布的odjbc14.jar驱动就好了! |