Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1 [LEGACY]
-
None
-
Cayenne 1.1-RC1, Oracle 8i, Windows XP, JBoss+Tomcat, j2sdk1.42_04.
Description
I made a relatively small test case which I'll attach as jd.zip; it has a ReadMe.txt. In the process of boiling it down, I found one line of my code that causes the exception to happen later at commitChanges time. It modifies the value of an attribute used for locking. It's what I do on almost all my entities – it's a timestamp for the sake of optimistic locking – but something goes wrong with this particular entity, leading to:
java.lang.NullPointerException
at org.objectstyle.cayenne.access.ContextCommit.appendOptimisticLockingAttributes(ContextCommit.java:564)
Thanks!