Joined: Thu Mar 10, 2016 5:32 am Posts: 2
|
Hello I have a problem: when I insert a BLOB field in Oracle, using Hibernate 3.6.1
File hbm.xml:
<class name="org.jbpm.pvm.internal.lob.Lob" table="JBPM4_LOB"> <id name="dbid" column="DBID_"> <generator class="assigned" /> </id> <version name="dbversion" column="DBVERSION_" /> <property name="blob" type="blob"><column name="BLOB_VALUE_" /></property> </class>
Error:
Caused by: java.lang.ClassCastException: com.sun.proxy.$Proxy219 incompatible with oracle.sql.BLOB at oracle.jdbc.driver.OraclePreparedStatement.setBlob(OraclePreparedStatement.java:6162) ~[ojdbc6.jar:Oracle JDBC Driver version - "11.1.0.7.0-Production"] at oracle.jdbc.driver.OraclePreparedStatementWrapper.setBlob(OraclePreparedStatementWrapper.java:126) ~[ojdbc6.jar:Oracle JDBC Driver version - "11.1.0.7.0-Production"]
how do I fix?
thank you
|
|