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

NullPointerException in ContextCommit with locking

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1 [LEGACY]
    • 1.1 [LEGACY]
    • Core Library
    • 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!

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: