OpenJPA
  1. OpenJPA
  2. OPENJPA-1482

NoSuchMethodError when calling setVersion on an enhanced property access Entity

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        Hide
        Rick 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.

        Show
        Rick 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.
        Hide
        Michael Dick added a comment -

        Tentatively targeting for 1.2.3.

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development