openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rúben Cabaço <rub...@student.dei.uc.pt>
Subject Oracle blob exception
Date Mon, 04 Feb 2008 00:54:24 GMT
Hi,

I am trying to write a byte[] annotated as a Lob to an Oracle  
database but I keep getting:
Caused by: <openjpa-1.0.0-r420667:568756 nonfatal general error>  
org.apache.openjpa.persistence.PersistenceException: Exhausted Resultset
.....
NestedThrowables:
<openjpa-1.0.0-r420667:568756 nonfatal general error>  
org.apache.openjpa.persistence.PersistenceException: oracle.sql.BLOB

Following the instructions on OpenJPA's website i defined the  
following properties on my persistence.xml:

<property name="openjpa.jdbc.DBDictionary" value="oracle"/>
<property name="openjpa.jdbc.DBDictionary.driverVendor" value="oracle"/>
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema 
(ForeignKeys=true)" />
<property name="openjpa.jdbc.DBDictionary.maxEmbeddedBlobSize"  
value="5242880"/>

But still the same exception occurs.

Any suggestions?

Regards,
Rúben Cabaço




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message