Announcement Announcement Module
Collapse
No announcement yet.
spring + hibernate + clob Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring + hibernate + clob

    I am using spring 1.1.2, hibernate2 and oracle 9i.
    I am receiving errors when trying to save my clob to the db.
    My original error was
    operation not allowed: streams type cannot be used in batching

    I have managed to solve that problem by turning off batching by specifying
    <prop key="hibernate.jdbc.batch_size">0</prop>

    Now I receive this error:

    org.springframework.dao.DataAccessResourceFailureE xception: Hibernate operation: could not update: [net.idt.ReportEngine.dao.Query#1]; Io exception: Stream closed; nested exception is java.sql.SQLException: Io exception: Stream closed
    org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.translate(SQLErrorCodeSQLExcepti onTranslator.java:231)
    org.springframework.orm.hibernate.HibernateAccesso r.convertJdbcAccessException(HibernateAccessor.jav a:240)
    org.springframework.orm.hibernate.HibernateAccesso r.convertHibernateAccessException(HibernateAccesso r.java:227)
    org.springframework.orm.hibernate.HibernateTemplat e.execute(HibernateTemplate.java:319)
    org.springframework.orm.hibernate.HibernateTemplat e.saveOrUpdate(HibernateTemplate.java:529)
    ...
    ...


    What is the solution to this???
Working...
X