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

        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Donald Woods made changes -
        Fix Version/s 2.0.0-beta3 [ 12314857 ]
        Fix Version/s 2.0.0 [ 12314019 ]
        Michael Dick made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.3.0 [ 12313326 ]
        Fix Version/s 2.0.0 [ 12314019 ]
        Resolution Fixed [ 1 ]
        Rick Curtis made changes -
        Assignee Rick Curtis [ curtisr7 ] Michael Dick [ mikedd ]
        Michael Dick made changes -
        Fix Version/s 1.2.3 [ 12314517 ]
        Rick Curtis made changes -
        Field Original Value New Value
        Attachment OPENJPA-1482-1.2.x.patch [ 12431439 ]
        Rick Curtis created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development