This might be another of those hard-to-pin-down Oracle 8 errors. We've
gotten an exception upon saving a new object, only twice in the last
week out of hundreds of successful saves. The log shows:
[QueryLogger] INSERT INTO CRTRANS (...) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
[QueryLogger] [batch bind: .... ]
[QueryLogger] === updated 1 row.
[QueryLogger] *** error.
java.lang.NullPointerException
at
org.objectstyle.cayenne.dba.oracle.OracleAdapter.updatesLOBColumns(OracleAdapter.java:191)
at
org.objectstyle.cayenne.dba.oracle.OracleActionBuilder.batchAction(OracleActionBuilder.java:79)
at
org.objectstyle.cayenne.query.BatchQuery.createSQLAction(BatchQuery.java:144)
at
org.objectstyle.cayenne.dba.oracle.OracleAdapter.getAction(OracleAdapter.java:346)
at
org.objectstyle.cayenne.dba.AutoAdapter.getAction(AutoAdapter.java:234)
at
org.objectstyle.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:94)
at
org.objectstyle.cayenne.access.DataNode.performQueries(DataNode.java:321)
at
org.objectstyle.cayenne.access.DataContextCommitAction.commit(DataContextCommitAction.java:172)
at
org.objectstyle.cayenne.access.DataContext.commitChanges(DataContext.java:990)
There's nothing unsual about the entity, no LOB columns.
We're using Cayenne 1.2M10 on that server. In the source code for that
version, the indicated line is:
int type = ((DbAttribute) it.next()).getType();
This archive was generated by hypermail 2.0.0 : Thu Mar 16 2006 - 14:11:23 EST