JDO
  1. JDO
  2. JDO-331

JPOX throws NullPointerException during makePersistent of a detached object

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JDO 2 rc1
    • Fix Version/s: JDO 2 final (2.0)
    • Component/s: tck
    • Labels:
      None
    • Environment:
      JPOX

      Description

      After applying the patch in JDO-272, JPOX throws an exception during makePersistent of a detached object.

      [java] 1) testAttachClean(org.apache.jdo.tck.api.persistencemanager.detach.DetachAttach)java.lang.NullPointerException
      [java] at org.jpox.AbstractPersistenceManager.attachCopy(AbstractPersistenceManager.java:1302)
      [java] at org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1075)
      [java] at org.jpox.AbstractPersistenceManager.makePersistent(AbstractPersistenceManager.java:1167)
      [java] at org.apache.jdo.tck.api.persistencemanager.detach.DetachAttach.testAttachClean(DetachAttach.java:62)
      [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)

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Erik Bengtson
            Reporter:
            Craig L Russell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development