openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Thompson" <>
Subject RE: JPA and streams
Date Mon, 01 Mar 2010 14:58:03 GMT
Did you try @Lob?

I struggled with this also about a year ago when I was trying to refactor some legacy code
and eventually gave up due to an imminent deadline - so I'm curious to hear how you solve
this also.


-----Original Message-----
From: Hiran Chaudhuri []
Sent: Mon 3/1/2010 9:46 AM
Subject: JPA and streams

Hi there. 

I'm trying to get OpenJPA running with Inputstreams. Somehow I always get Exceptions using
OpenJPA 1.2.1, Oracle JDBC driver and Oracle Database 10g Enterprise Edition Release - 64bit Production. 
The entity in question contains one field maked as: 
    InputStream data; 

This is the exception obtained: 

Exception in thread "main" <openjpa-1.2.1-r752877:753278 fatal store error> org.apache.openjpa.persistence.RollbackException:
        at org.apache.openjpa.persistence.EntityManagerImpl.commit(

        at ... 
Caused by: <openjpa-1.2.1-r752877:753278 nonfatal general error> org.apache.openjpa.persistence.PersistenceException:
        at org.apache.openjpa.kernel.BrokerImpl.beforeCompletion( 
        at org.apache.openjpa.kernel.LocalManagedRuntime.commit(

        at org.apache.openjpa.kernel.BrokerImpl.commit( 
        at org.apache.openjpa.kernel.DelegatingBroker.commit( 
        at org.apache.openjpa.persistence.EntityManagerImpl.commit(

        ... 1 more 
Caused by: java.lang.NullPointerException 
        at org.apache.openjpa.jdbc.sql.DBDictionary.updateBlob( 
        at org.apache.openjpa.jdbc.meta.strats.LobFieldStrategy.customInsert(

        at org.apache.openjpa.jdbc.meta.FieldMapping.customInsert( 
        at org.apache.openjpa.jdbc.kernel.AbstractUpdateManager$CustomMapping.execute(

        at org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(

        at org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(

        at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.flush(

        at org.apache.openjpa.kernel.DelegatingStoreManager.flush(

        at org.apache.openjpa.kernel.BrokerImpl.flush( 
        at org.apache.openjpa.kernel.BrokerImpl.flushSafe( 
        at org.apache.openjpa.kernel.BrokerImpl.beforeCompletion( 
        ... 5 more 

Any ideas or workarounds? 


Hiran Chaudhuri
System Support Programmer / Analyst
IT Service Assurance
E-Commerce Service Assurance
Amadeus Data Processing GmbH
Berghamer Strasse 6
85435 Erding
T: +49-8122-43x3662 <>  

Amadeus logo <> 

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