Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1307

Error committing CLOB on Oracle8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0 beta 1
    • 3.0RC1, 3.1M1
    • Core Library
    • None

    Description

      I downloaded the new 3.0B1 release to try in our Oracle8 environment. During a commit of a new object with a CLOB field, this exception occurred:

      SELECT * FROM STORY WHERE STORY_ID = ? FOR UPDATE [bind: 1:530354]
      [write LOB: 1:'A bunch of text...']
      ...
      org.apache.cayenne.access.DataContext.flushToParent(DataContext.java:1134)
      org.apache.cayenne.access.DataContext.commitChanges(DataContext.java:1045)
      ...
      ...
      Caused by: java.lang.AbstractMethodError: oracle.sql.CLOB.setCharacterStream(J)Ljava/io/Writer;
      org.apache.cayenne.dba.oracle.OracleLOBBatchAction.writeClob(OracleLOBBatchAction.java:296)
      org.apache.cayenne.dba.oracle.OracleLOBBatchAction.processLOBRow(OracleLOBBatchAction.java:199)
      org.apache.cayenne.dba.oracle.OracleLOBBatchAction.performAction(OracleLOBBatchAction.java:128)
      org.apache.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:87)
      org.apache.cayenne.access.DataNode.performQueries(DataNode.java:274)
      ...

      Attachments

        1. CAY-1307.diff
          3 kB
          Bryan Lewis
        2. Oracle8LOBBatchAction.java
          4 kB
          Bryan Lewis

        Activity

          People

            andrus Andrus Adamchik
            bryanlewis Bryan Lewis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: