java.lang.NoSuchMethodError: Item.jdoGetManagedFieldCount()" The problem I think it is caused by the reference to the "MyDir parent" in the superclass (seeing the stacktrace). When changing this to "Item parent", enhancing works, but this is semantically less correct. BTW, I also tried enhancing both Item and MyDir multiple times (as suggested in Kodo manual page 69) but this doesnt work. Does anyone have a solution for this problem? thnx in advance, Christiaan Stacktrace: Exception in thread "main" java.lang.NoSuchMethodError: Item.jdoGetManagedFieldCount()I

Oracle Community | 3004 | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    circular reference problem when enhancing

    Oracle Community | 1 decade ago | 3004
    java.lang.NoSuchMethodError: Item.jdoGetManagedFieldCount()" The problem I think it is caused by the reference to the "MyDir parent" in the superclass (seeing the stacktrace). When changing this to "Item parent", enhancing works, but this is semantically less correct. BTW, I also tried enhancing both Item and MyDir multiple times (as suggested in Kodo manual page 69) but this doesnt work. Does anyone have a solution for this problem? thnx in advance, Christiaan Stacktrace: Exception in thread "main" java.lang.NoSuchMethodError: Item.jdoGetManagedFieldCount()I

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      Item.jdoGetManagedFieldCount()" The problem I think it is caused by the reference to the "MyDir parent" in the superclass (seeing the stacktrace). When changing this to "Item parent", enhancing works, but this is semantically less correct. BTW, I also tried enhancing both Item and MyDir multiple times (as suggested in Kodo manual page 69) but this doesnt work. Does anyone have a solution for this problem? thnx in advance, Christiaan Stacktrace: Exception in thread "main" java.lang.NoSuchMethodError: Item.jdoGetManagedFieldCount()I

      at MyDir.<clinit>()
    2. Unknown
      MyDir.<clinit>
      1. MyDir.<clinit>(MyDir.java)
      1 frame
    3. Java RT
      Class.forName
      1. java.lang.Class.forName0(Native Method)
      2. java.lang.Class.forName(Class.java:217)
      2 frames
    4. com.solarmetric.kodo
      JDOEnhancer.main
      1. com.solarmetric.kodo.meta.ClassMetaData.newInstance(ClassMetaData.java:289)
      2. com.solarmetric.kodo.meta.ClassMetaData.getInstance(ClassMetaData.java:262)
      3. com.solarmetric.kodo.meta.ClassMetaData.resolvePersistentFields(ClassMetaData.java:509)
      4. com.solarmetric.kodo.meta.ClassMetaData.finish(ClassMetaData.java:392)
      5. com.solarmetric.kodo.meta.ClassMetaData.newInstance(ClassMetaData.java:334)
      6. com.solarmetric.kodo.meta.ClassMetaData.getInstance(ClassMetaData.java:233)
      7. com.solarmetric.kodo.enhance.JDOEnhancer.<init>(JDOEnhancer.java:258)
      8. com.solarmetric.kodo.enhance.JDOEnhancer.enhance(JDOEnhancer.java:220)
      9. com.solarmetric.kodo.enhance.JDOEnhancer.enhance(JDOEnhancer.java:167)
      10. com.solarmetric.kodo.enhance.JDOEnhancer.main(JDOEnhancer.java:131)
      10 frames