[ http://issues.apache.org/jira/browse/JDO-78?page=all ]
Michael Bouschen closed JDO-78:
-------------------------------
Fix Version: JDO 2 beta
Resolution: Fixed
> JPOX PersistenceManagerFactory throws wrong exception for
> getPersistenceManager after close
> -------------------------------------------------------------------------------------------
>
> Key: JDO-78
> URL: http://issues.apache.org/jira/browse/JDO-78
> Project: JDO
> Type: Bug
> Components: tck20
> Environment: JPOX
> Reporter: Craig Russell
> Assignee: Erik Bengtson
> Fix For: JDO 2 beta
>
> 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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira