Issue Details (XML | Word | Printable)

Key: JDO-78
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Erik Bengtson
Reporter: Craig Russell
Votes: 0
Watchers: 0
Operations

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

JPOX PersistenceManagerFactory throws wrong exception for getPersistenceManager after close

Created: 04/Jul/05 12:54 PM   Updated: 23/Apr/06 02:38 AM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: JDO 2 beta

Time Tracking:
Not Specified

Environment: JPOX

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


 Description  « Hide
JPOX PersistenceManagerFactory throws JDOFatalUserException for getPersistenceManager after close. It should throw JDOUserException.

There were 2 failures:
    [java] 1) test(org.apache.jdo.tck.api.persistencemanagerfactory.AfterCloseGetPMThrowsException)junit.framework.AssertionFailedError: Assertion A11.4-9B (AfterCloseGetPMThrowsException) failed:
    [java] Wrong exception thrown from getPersistenceManager after close.
    [java] Expected JDOUserException, got JDOFatalUserException.
    [java] at org.apache.jdo.tck.JDO_Test.fail(JDO_Test.java:543)
    [java] at org.apache.jdo.tck.api.persistencemanagerfactory.AfterCloseGetPMThrowsException.test(AfterCloseGetPMThrowsException.java:74)
    [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:203)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:128)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:106)
    [java] 2) test(org.apache.jdo.tck.api.persistencemanagerfactory.Close)junit.framework.AssertionFailedError: Assertions A11.4-2 (Close) failed:
    [java] Wrong exception thrown from getPersistenceManager after close.
    [java] Expected JDOUserException, got JDOFatalUserException.
    [java] at org.apache.jdo.tck.JDO_Test.fail(JDO_Test.java:543)
    [java] at org.apache.jdo.tck.api.persistencemanagerfactory.Close.test(Close.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:203)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:128)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:106)


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.