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

Writing blobs fails (Oracle)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0, 3.1B1, 3.2.M1
    • 3.1B2, 3.2.M1, 3.0.3
    • None
    • None

    Description

      Background:
      Deploying Cayenne program to some new Linux servers, we're getting exceptions when the program tries to write a blob:

      Caused by: java.sql.SQLException: Invalid argument(s) in call
      at oracle.jdbc.driver.T4CConnection.newOutputStream(T4CConnection.java:2753) ~[ojdbc6.jar:11.2.0.1.0]
      at oracle.sql.BLOB.setBinaryStream(BLOB.java:893) ~[ojdbc6.jar:11.2.0.1.0]
      at org.apache.cayenne.dba.oracle.OracleLOBBatchAction.writeBlob(OracleLOBBatchAction.java:255) ~[cayenne-server-3.1M3.jar:na]
      at org.apache.cayenne.dba.oracle.OracleLOBBatchAction.processLOBRow(OracleLOBBatchAction.java:211) ~[cayenne-server-3.1M3.jar:na]
      at org.apache.cayenne.dba.oracle.OracleLOBBatchAction.performAction(OracleLOBBatchAction.java:132) ~[cayenne-server-3.1M3.jar:na]
      at org.apache.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:87) ~[cayenne-server-3.1M3.jar:na]
      at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:278) ~[cayenne-server-3.1M3.jar:na]
      at org.apache.cayenne.access.DataDomainFlushAction.runQueries(DataDomainFlushAction.java:237) ~[cayenne-server-3.1M3.jar:na]
      at org.apache.cayenne.access.DataDomainFlushAction.flush(DataDomainFlushAction.java:154) ~[cayenne-server-3.1M3.jar:na]
      at org.apache.cayenne.access.DataDomain.onSyncFlush(DataDomain.java:803) ~[cayenne-server-3.1M3.jar:na]
      at org.apache.cayenne.access.DataDomain$2.transform(DataDomain.java:767) ~[cayenne-server-3.1M3.jar:na]
      at org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:828) ~[cayenne-server-3.1M3.jar:na]
      at org.apache.cayenne.access.DataDomain.onSyncNoFilters(DataDomain.java:764) ~[cayenne-server-3.1M3.jar:na]
      at org.apache.cayenne.access.DataDomain$DataDomainSyncFilterChain.onSync(DataDomain.java:980) ~[cayenne-server-3.1M3.jar:na]
      at org.apache.cayenne.access.DataDomain.onSync(DataDomain.java:735) ~[cayenne-server-3.1M3.jar:na]
      at org.apache.cayenne.access.DataContext.flushToParent(DataContext.java:818) ~[cayenne-server-3.1M3.jar:na]
      ... 8 common frames omitted

      SEE MORE IN DISCUSSION

      http://cayenne.195.n3.nabble.com/Writing-blobs-fails-td4024346.html

      Attachments

        Activity

          People

            cayenne_olga Olga Tkacheva
            cayenne_olga Olga Tkacheva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: