I have one instance of Oracle Database 10.2.0.4.
I have java-application based on spring framework 3.0.5, hibernate 3.5.6.
I have a table with BLOB column (blobContent BLOB
) and an entity with java.sql.Blob
field (mapped in hibernate XML-mapping as <property name="blobContent" type="blob"/>
).
I use Oracle10gDialect.
I get ORA-01461 periodically trying to insert row in this table.
I tried several Oracle JDBC drivers (10.2.0.4, 10.2.0.5 and 11.2.0.3) with no any success.
My googling and searching metalink database for this problem failed.
I decompiled Oracle JDBC-driver and checked code starting at method oracle.jdbc.driver.OraclePreparedStatement.setBinaryStream(int, InputStream, long)
thru oracle.jdbc.driver.DBConversion
till oracle.jdbc.driver.OracleConversionInputStream
.
Everything looks OK as far as this code can be considered OK :)
Please advise how to trace this problem... may be at Oracle side (?)... may be looking for some implicit casting... May be I missed some known Oracle metalink article regarding this problem?