Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1482

NoSuchMethodError when calling setVersion on an enhanced property access Entity

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.2, 1.3.0, 2.0.0-M3, 2.0.0-beta
    • Fix Version/s: 1.2.3, 1.3.0, 2.0.0-beta3
    • Component/s: kernel
    • Labels:
      None

      Description

      I get the following exception when I call setVersion(..) on an enhanced property access Entity.

      java.lang.NoSuchMethodError: org/apache/openjpa/persistence/detachment/model/NoDetachedStateEntityPropertyAccess.pcsetPcVersionInit(Z)V
      at org.apache.openjpa.persistence.detachment.model.NoDetachedStateEntityPropertyAccess.setVersion(NoDetachedStateEntityPropertyAccess.java)

      It appears that the bytecode that is generated by the enhancer added an invalid method call to the setVersion() method.

        Attachments

          Activity

            People

            • Assignee:
              mikedd Michael Dick
              Reporter:
              curtisr7 Rick Curtis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: