Results 1 to 3 of 3
  1. #1
    Ed
    Ed is offline Senior Member
    Join Date
    Jun 2007
    Posts
    110
    Rep Power
    0

    Default Saving Blob through Hibernate

    I want to store a image using Blob in oracle database but this error appears:

    Java Code:
    org.hibernate.exception.GenericJDBCException: could not insert: [user.Product]
    at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92)
    at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80)
    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
    at org.hibernate.persister.BasicEntityPersister.insert(BasicEntityPersister.java:1683)
    at org.hibernate.persister.BasicEntityPersister.insert(BasicEntityPersister.java:2012)
    at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:42)
    at org.hibernate.impl.ActionQueue.executeActions(ActionQueue.java:232)
    at org.hibernate.impl.ActionQueue.executeActions(ActionQueue.java:137)
    at org.hibernate.event.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:255)
    at org.hibernate.event.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
    at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:814)
    at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:75)
    at user.ProductDetails.saveProduct(ProductDetails.java:21)
    at user.TempRunner.main(TempRunner.java:26)
    Caused by: java.sql.SQLException: operation not allowed: streams type cannot be used in batching
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.driver.OraclePreparedStatement.addBatch(OraclePreparedStatement.java:4073)
    at com.mchange.v2.sql.filter.FilterPreparedStatement.addBatch(FilterPreparedStatement.java:74)
    at org.hibernate.jdbc.BatchingBatcher.addToBatch(BatchingBatcher.java:29)
    at org.hibernate.persister.BasicEntityPersister.insert(BasicEntityPersister.java:1667)
    What's wrong?

  2. #2
    Heather is offline Senior Member
    Join Date
    Jun 2007
    Posts
    164
    Rep Power
    7

  3. #3
    Thennarasu's Avatar
    Thennarasu is offline Member
    Join Date
    Jan 2009
    Location
    Chennai, Tamilnadu
    Posts
    39
    Rep Power
    0

    Cool HI

    hello dude...
    i am new to java-forum.org and i would like to participate in as many thread that i could.

Similar Threads

  1. Saving data...?
    By easyRyder in forum New To Java
    Replies: 8
    Last Post: 07-15-2008, 03:14 AM
  2. saving variables to the harddrive
    By Talon876 in forum New To Java
    Replies: 1
    Last Post: 11-02-2007, 01:30 AM
  3. Problems updating blob columns on Oracle 9
    By ljustiniano in forum JDBC
    Replies: 0
    Last Post: 08-14-2007, 06:17 PM
  4. Replies: 2
    Last Post: 06-30-2007, 03:01 PM
  5. Saving Variables
    By Fish in forum New To Java
    Replies: 6
    Last Post: 06-25-2007, 08:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •