-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Are binary size fixed?
PostPosted: Wed Dec 01, 2004 12:57 pm 
Beginner
Beginner

Joined: Tue Jun 22, 2004 3:16 pm
Posts: 35
Hibernate version:2.14

Mapping documents: <property
column="SIGNATURE"
name="signature"
type="binary"
/>


We are using BLOB for signature image store in Oracle 9i database. The type for database column is BLOB. We are using binary for mapping and byte[] for Java datatype. The thing is that we found if the image size is bigger than 4k, then the SQLException will be thrown. Otherwise everything is OK.

The exception looks like this:

queue: 'weblogic.kernel.Default'] - SQL Error: 17410, SQLState: null 2004-12-01 11:24:17,566 ERROR net.sf.hibernate.util.JDBCExceptionReporter [
queue: 'weblogic.kernel.Default'] - No more data to read from socket 2004-12-01 11:24:17,576 ERROR net.sf.hibernate.util.JDBCExceptionReporter [
queue: 'weblogic.kernel.Default'] - could not insert: [com.bcbsma.regcommons.model.Associate#266]
java.sql.SQLException: No more data to read from socket
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1160)
at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:963)
at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:893)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:375)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
at
oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1141)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2149
)
at
oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2032)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
:2894)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedState
ment.java:608)
at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java
:94)
at
net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:
22)
at
net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:468)
at
net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:442)
at
net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:29)
at
net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2382)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2335)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2204)
at ......

ANy thoughts?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2004 7:32 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
This is a known limitation of the Oracle JDBC driver. Complain to them.

While your doing that. Read the wiki - lots of information on dealing with Blobs etc in various ways.


Top
 Profile  
 
 Post subject: using Oracle JDBC thin driver 10g fixes the problem
PostPosted: Thu Dec 02, 2004 1:20 pm 
Beginner
Beginner

Joined: Tue Jun 22, 2004 3:16 pm
Posts: 35
using Oracle JDBC thin driver 10g fixes the problem


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.