Hi,
I'm using Oracle9i with Hibernate 3.0.5 and Jboss 3.2.4.
Here is my POJO :
public class ReportsDO{
private long id;
private java.sql.Blob report;
public long getId() { return id; }
public void setId(long id) { this.id = id; }
public java.sql.Blob getReport() {
return this.report;
}
public void setReport(java.sql.Blob report) {
this.report = report;
}
}
If I'm trying to write more then 4K in the BLOB type column, it isgiving me following errors......
================================================
2005-11-16 15:04:12,666 ERROR [org.hibernate.util.JDBCExceptionReporter:72] operation not allowed: streams type cannot be used in batching
2005-11-16 15:04:12,698 ERROR [org.hibernate.event.def.AbstractFlushingEventListener:277] Could not synchronize database state with session
org.hibernate.exception.GenericJDBCException: could not insert: [com.bupa.consult.dataaccess.dataobject.reports.ReportObjectsDO]
at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92)
================================================
I've already set StreamsForBinaryEnabled = true.
I tried the latest release of
oracle 9.2.0.5 driver also but it did not work.
That's why I came to the conclusion that there is some problem with the driver. Then finally I replaced oracle 9i thin driver (9.2.0.5)
Quote:
(ojdbc14.jar)
with oracle
10g thin driver (10.1.0.2.0) in the jboss lib and It worked successfully.
can anybody help me on this with oracle 9i driver only. Is there any other solution to this.
Many Thanks
Manish