Issue Details (XML | Word | Printable)

Key: JDO-46
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Michael Watzek
Reporter: Michelle Caisse
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

4 tests give java.lang.NullPointerException during tearDown

Created: 19/May/05 12:57 PM   Updated: 23/Apr/06 02:30 AM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: JDO 2 beta

Time Tracking:
Not Specified

Resolution Date: 23/Apr/06 02:30 AM


 Description  « Hide
Four tests give java.lang.NullPointerException during tearDown.
 test(org.apache.jdo.tck.api.persistencemanagerfactory.AfterCloseGetPMThrowsException)junit.framework.
ssertionFailedError: Exception during tearDown: java.lang.NullPointerException
    [java] at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:170)
    [java] at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:153)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:112)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:90)

test(org.apache.jdo.tck.api.persistencemanagerfactory.AfterCloseSetMethodsThrowException)junit.framew
rk.AssertionFailedError: Exception during tearDown: java.lang.NullPointerException
    [java] at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:170)
    [java] at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:153)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:112)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:90)

test(org.apache.jdo.tck.api.persistencemanagerfactory.Close)junit.framework.AssertionFailedError: Exc
ption during tearDown: java.lang.NullPointerException
    [java] at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:170)
    [java] at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:153)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:112)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:90)

test(org.apache.jdo.tck.api.persistencemanagerfactory.CloseFailsIfTransactionActive)junit.framework.A
sertionFailedError: Exception during tearDown: java.lang.NullPointerException
    [java] at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:170)
    [java] at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:153)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:112)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:90)

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michael Bouschen added a comment - 22/May/05 05:26 AM
Method JDO_Test.tearDown catches any exception thrown during cleanup and turns it into a failure. So the stacktrace as shown in the description does not indicate the place where the NullPointerException is thrown. This will be improved as part of the fix of issue JDO-48.

Here is the stacktrace of the NullPointerException:
java.lang.NullPointerException
  at org.jpox.AbstractPersistenceManagerFactory.close(AbstractPersistenceManagerFactory.java:663)
  at org.apache.jdo.tck.JDO_Test.closePMF(JDO_Test.java:240)
  at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:163)

Michael Watzek added a comment - 14/Jun/05 07:39 PM
This issue covers two problems:

- A global clean up strategy for all tests.
- PMF.close was called twice.

The first problem was fixed by JDO-48.
The second problem was fixed by JDO-58.

Michael Bouschen added a comment - 23/Apr/06 02:18 AM
Reopened to set the Fix Version/s field to JDO 2 beta.