Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-330

JPOX fails to populate fields in fetch plan during detachCopy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • JDO 2 rc1
    • JDO 2 final (2.0)
    • tck
    • None
    • JPOX

    Description

      After applying the patch in JDO-272, JPOX fails:

      [java] 1) testDetachCopy(org.apache.jdo.tck.api.persistencemanager.detach.DetachCopy)javax.jdo.JDODetachedFieldAccessException: You have just attempted to access field "cart" yet this field was not detached when you detached the object. Either dont access this field, or detach the field when detaching the object.
      [java] at org.apache.jdo.tck.pc.shoppingcart.CartEntry.jdoGetcart(CartEntry.java)
      [java] at org.apache.jdo.tck.pc.shoppingcart.CartEntry.getCart(CartEntry.java:62)
      [java] at org.apache.jdo.tck.api.persistencemanager.detach.DetachTest.checkCartValues(DetachTest.java:140)
      [java] at org.apache.jdo.tck.api.persistencemanager.detach.DetachTest.checkCartValues(DetachTest.java:122)
      [java] at org.apache.jdo.tck.api.persistencemanager.detach.DetachCopy.testDetachCopy(DetachCopy.java:68)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:206)
      [java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:120)
      [java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:95)

      The field is part of the fetch plan in effect when the instances are detached.

      Attachments

        Activity

          People

            clr Craig L Russell
            clr Craig L Russell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: