I have two objects A ->* B. Basically a one to many relationship
between A and B.
A has few simple properties and one clob property.
B has few simple properties and one blob property.
I can save A without any problem ( with out the relationship)
similarly B I can save with out any problem.
When I try to save A and bunch of Bs I get the following errors on SQL Server ( using inet driver)
java.sql.SQLException: [TDS Driver]Unexpected end in binary parameter/value stream at position 0 required length 2379
with hypersonic sql I get
Caused by: java.lang.NegativeArraySizeException
at org.hsqldb.jdbcPreparedStatement.setBinaryStream(Unknown Source)
at net.sf.hibernate.type.BlobType.set(BlobType.java:18)
When I commented out the section for the blob property ( in the mapping xml) , basically B doesnt have the blob property, everything works fine.
Both A and Bs are getting saved properly.
|