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

NoSuchMethodError when calling setVersion on an enhanced property access Entity

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.2, 1.3.0, 2.0.0-M3, 2.0.0-beta
    • 1.2.3, 1.3.0, 2.0.0-beta3
    • kernel
    • 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

        1. OPENJPA-1482-1.2.x.patch
          2 kB
          Richard G. Curtis

        Activity

          Attaching a patch for the changes I propose for the 1.2.x branch and a test case. I'm not sure I'm sold on this being the proper change for trunk.

          curtisr7 Richard G. Curtis added a comment - Attaching a patch for the changes I propose for the 1.2.x branch and a test case. I'm not sure I'm sold on this being the proper change for trunk.
          mikedd Michael Dick added a comment -

          Tentatively targeting for 1.2.3.

          mikedd Michael Dick added a comment - Tentatively targeting for 1.2.3.

          People

            mikedd Michael Dick
            curtisr7 Richard G. Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: