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

NoSuchMethodError when calling setVersion on an enhanced property access Entity

    XMLWordPrintableJSON

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: