You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Bryan Lewis (JIRA)" <ji...@apache.org> on 2009/11/11 13:24:39 UTC
[jira] Commented: (CAY-1307) Error committing CLOB on Oracle8
[ https://issues.apache.org/jira/browse/CAY-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12776431#action_12776431 ]
Bryan Lewis commented on CAY-1307:
----------------------------------
Comparing the Cayenne2 and 3 sources. Cayenne2 had this line in its
OracleLOBBatchAction.writeClob() methods:
Method getWriterMethod = OracleAdapter.getWriterFromClobMethod();
Cayenne 3 has:
Writer out = clob.setCharacterStream(0);
I believe the former line would still work, since OracleAdapter still
provides the writerFromClobMethod.
> Error committing CLOB on Oracle8
> --------------------------------
>
> Key: CAY-1307
> URL: https://issues.apache.org/jira/browse/CAY-1307
> Project: Cayenne
> Issue Type: Bug
> Components: Cayenne Core Library
> Affects Versions: 3.0 beta 1
> Reporter: Bryan Lewis
>
> 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)
> ...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.