com.solarmetric.kodo.runtime.UnsupportedOptionException: Unable to create second class object proxy for type: "class com.kodo.test.TestMe".

Oracle Community | 3004 | 1 decade ago
  1. 0

    Error on non persistable field that implements a collection

    Oracle Community | 1 decade ago | 3004
    com.solarmetric.kodo.runtime.UnsupportedOptionException: Unable to create second class object proxy for type: "class com.kodo.test.TestMe".

    Root Cause Analysis

    1. com.solarmetric.kodo.runtime.UnsupportedOptionException

      Unable to create second class object proxy for type: "class com.kodo.test.TestMe".

      at com.solarmetric.kodo.util.Proxies.getCollectionCopy()
    2. com.solarmetric.kodo
      StateManagerImpl.providedObjectField
      1. com.solarmetric.kodo.util.Proxies.getCollectionCopy(Proxies.java:115)
      2. com.solarmetric.kodo.util.SimpleProxyManager.getCollectionCopy(SimpleProxyManager.java:39)
      3. com.solarmetric.kodo.runtime.SaveFieldManager.storeObjectField(SaveFieldManager.java:91)
      4. com.solarmetric.kodo.runtime.StateManagerImpl.providedObjectField(StateManagerImpl.java:1354)
      4 frames
    3. com.kodo.test
      Audit.jdoProvideField
      1. com.kodo.test.Audit.jdoProvideField(Audit.java)
      1 frame
    4. com.solarmetric.kodo
      PersistenceManagerImpl.makePersistent
      1. com.solarmetric.kodo.runtime.StateManagerImpl.provideField(StateManagerImpl.java:2381)
      2. com.solarmetric.kodo.runtime.StateManagerImpl.saveFields(StateManagerImpl.java:1965)
      3. com.solarmetric.kodo.runtime.PNewState.initialize(PNewState.java:19)
      4. com.solarmetric.kodo.runtime.StateManagerImpl.setJDOState(StateManagerImpl.java:376)
      5. com.solarmetric.kodo.runtime.StateManagerImpl.setJDOState(StateManagerImpl.java:341)
      6. com.solarmetric.kodo.runtime.StateManagerImpl.initialize(StateManagerImpl.java:275)
      7. com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistentFilter(PersistenceManagerImpl.java:1461)
      8. com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:1380)
      8 frames
    5. com.kodo.test
      AuditTest.testAlteration2
      1. com.kodo.test.AuditTest.testAlteration2(AuditTest.java:106)
      1 frame
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    7. JUnit
      TestSuite.run
      1. junit.framework.TestCase.runTest(TestCase.java:166)
      2. junit.framework.TestCase.runBare(TestCase.java:140)
      3. junit.framework.TestResult$1.protect(TestResult.java:106)
      4. junit.framework.TestResult.runProtected(TestResult.java:124)
      5. junit.framework.TestResult.run(TestResult.java:109)
      6. junit.framework.TestCase.run(TestCase.java:131)
      7. junit.framework.TestSuite.runTest(TestSuite.java:173)
      8. junit.framework.TestSuite.run(TestSuite.java:168)
      8 frames
    8. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:329)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:218)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:151)
      3 frames