You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Michelle Caisse (JIRA)" <ji...@apache.org> on 2007/01/16 23:29:28 UTC

[jira] Created: (JDO-460) StateTransitions test fails on detachCopy operation

StateTransitions test fails on detachCopy operation
---------------------------------------------------

                 Key: JDO-460
                 URL: https://issues.apache.org/jira/browse/JDO-460
             Project: JDO
          Issue Type: Bug
          Components: tck2
            Reporter: Michelle Caisse
         Assigned To: Andy Jefferson
             Fix For: JDO 2 maintenance release 1


StateTransitions fails on three cases for the detachCopy operation. These transitions are newly specified for JDO 2.1.  See JDO-456. 
   [java] There was 1 failure:
    [java] 1) test(org.apache.jdo.tck.lifecycle.StateTransitions)junit.framework.AssertionFailedError:
    [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
    [java] StateTransitions: datastore transaction; current state hollow
    [java] detachCopy with active datastore tx transitioned instance to invalid state hollow; expected state persistent-clean
    [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
    [java] StateTransitions: no transaction; current state hollow
    [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
    [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
    [java] StateTransitions: no transaction; current state persistent-nontransactional
    [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
    [java]
    [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
    [java]      at org.apache.jdo.tck.lifecycle.StateTransitions.test(StateTransitions.java:414)
    [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:254)
    [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
    [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
    [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (JDO-460) StateTransitions test fails on detachCopy operation

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465390 ] 

Andy Jefferson commented on JDO-460:
------------------------------------

Not sure exactly what has changed on that test (which clearly passed in its previous form) but when I do the following :-

... Create PM without "nontransactionalRead"
try
{
    tx.begin();
    Sample s1 = new Sample();
    pm.makePersistent(s1);
    tx.commit();

    pm.detachCopy(s1);
}
catch (Exception e)
{
    ...
}

I get a JDOUserException caught (thrown from "detachCopy") saying :-
javax.jdo.JDOUserException: PersistenceManager method "detachCopy" has been invoked yet there is no active transaction and nontransactionalRead is not enabled. This is invalid.

I've not had time to look at the test itself but thought it better to report this here in case it gives any clues.

> StateTransitions test fails on detachCopy operation
> ---------------------------------------------------
>
>                 Key: JDO-460
>                 URL: https://issues.apache.org/jira/browse/JDO-460
>             Project: JDO
>          Issue Type: Bug
>          Components: tck2
>            Reporter: Michelle Caisse
>         Assigned To: Andy Jefferson
>             Fix For: JDO 2 maintenance release 1
>
>
> StateTransitions fails on three cases for the detachCopy operation. These transitions are newly specified for JDO 2.1.  See JDO-456. 
>    [java] There was 1 failure:
>     [java] 1) test(org.apache.jdo.tck.lifecycle.StateTransitions)junit.framework.AssertionFailedError:
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: datastore transaction; current state hollow
>     [java] detachCopy with active datastore tx transitioned instance to invalid state hollow; expected state persistent-clean
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state hollow
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state persistent-nontransactional
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java]
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
>     [java]      at org.apache.jdo.tck.lifecycle.StateTransitions.test(StateTransitions.java:414)
>     [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:254)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (JDO-460) StateTransitions test fails on detachCopy operation

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473602 ] 

Michelle Caisse commented on JDO-460:
-------------------------------------

The spec (see https://issues.apache.org/jira/secure/attachment/12349043/stateTransitionsUpdates.htm) says:

Given operation detachCopy with active Optimistic transaction and initial state hollow, state transitions to P-nontrans.

Given operation detachCopy with active Datastore transaction and initial state hollow, state transitions to P-clean.

Given operation detachCopy with active transaction and initial state P-nontrans: If a field of a persistent-nontransactional instance needs to be read for detachCopy with an active transaction, the instance will transition to persistent-clean if a datastore transaction is active; otherwise the instance will not change state.

I believe that this is intended to mean that the transition of hollow and P-nontrans instances to a detachCopy operation are identical.  If this is correct, then the state transitions table in the StateTransitions.java is wrong in that the cell for operation detachCopy with active datastore transaction, initial state PERSISTENT_NONTRANSACTIONAL should read PERSISTENT-CLEAN rather than UNCHANGED. The outcome of the case that is currently failing is unchanged and still needs to be fixed, but the impossible constraint that the outcome should be different for hollow and persistent nontransactional instances would be lifted with this change to the test.


> StateTransitions test fails on detachCopy operation
> ---------------------------------------------------
>
>                 Key: JDO-460
>                 URL: https://issues.apache.org/jira/browse/JDO-460
>             Project: JDO
>          Issue Type: Bug
>          Components: tck2
>            Reporter: Michelle Caisse
>         Assigned To: Andy Jefferson
>             Fix For: JDO 2 maintenance release 1
>
>
> StateTransitions fails on three cases for the detachCopy operation. These transitions are newly specified for JDO 2.1.  See JDO-456. 
>    [java] There was 1 failure:
>     [java] 1) test(org.apache.jdo.tck.lifecycle.StateTransitions)junit.framework.AssertionFailedError:
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: datastore transaction; current state hollow
>     [java] detachCopy with active datastore tx transitioned instance to invalid state hollow; expected state persistent-clean
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state hollow
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state persistent-nontransactional
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java]
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
>     [java]      at org.apache.jdo.tck.lifecycle.StateTransitions.test(StateTransitions.java:414)
>     [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:254)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JDO-460) StateTransitions test fails on detachCopy operation

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473954 ] 

Michelle Caisse commented on JDO-460:
-------------------------------------

I checked in a fix to the state transitions table in the test.  Now the expected transition of a persistent nontransactional intstance after operation detachCopy with active Datastore transaction is to persistent-clean, as per the newly updated spec.  The test now fails for this case.

> StateTransitions test fails on detachCopy operation
> ---------------------------------------------------
>
>                 Key: JDO-460
>                 URL: https://issues.apache.org/jira/browse/JDO-460
>             Project: JDO
>          Issue Type: Bug
>          Components: tck2
>            Reporter: Michelle Caisse
>         Assigned To: Andy Jefferson
>             Fix For: JDO 2 maintenance release 1
>
>
> StateTransitions fails on three cases for the detachCopy operation. These transitions are newly specified for JDO 2.1.  See JDO-456. 
>    [java] There was 1 failure:
>     [java] 1) test(org.apache.jdo.tck.lifecycle.StateTransitions)junit.framework.AssertionFailedError:
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: datastore transaction; current state hollow
>     [java] detachCopy with active datastore tx transitioned instance to invalid state hollow; expected state persistent-clean
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state hollow
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state persistent-nontransactional
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java]
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
>     [java]      at org.apache.jdo.tck.lifecycle.StateTransitions.test(StateTransitions.java:414)
>     [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:254)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JDO-460) StateTransitions test fails on detachCopy operation

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473364 ] 

Andy Jefferson commented on JDO-460:
------------------------------------

In the test we perform
pc2 = pm.detachCopy(pc1);

1. pc1 in HOLLOW should migrate to P_CLEAN
2. pc1 in P_NONTRANS should stay as P_NONTRANS

OK. I have tried to fix this but come across the issue of the object state being passed in to this operation being incorrect. In the StateTransitions.java when creating objects HOLLOW and P_NONTRANS are treated the same in general. This leads to a P_NONTRANS being passed in to part 1 above, and HOLLOW being passed in to part 2 above. Going backwards getHollowInstance() will sometimes return a P_NONTRANS, and getPersistentNontransactionalInstance() will sometimes return a HOLLOW ... which upsets things a little when there is different expected behaviour between these two.

> StateTransitions test fails on detachCopy operation
> ---------------------------------------------------
>
>                 Key: JDO-460
>                 URL: https://issues.apache.org/jira/browse/JDO-460
>             Project: JDO
>          Issue Type: Bug
>          Components: tck2
>            Reporter: Michelle Caisse
>         Assigned To: Andy Jefferson
>             Fix For: JDO 2 maintenance release 1
>
>
> StateTransitions fails on three cases for the detachCopy operation. These transitions are newly specified for JDO 2.1.  See JDO-456. 
>    [java] There was 1 failure:
>     [java] 1) test(org.apache.jdo.tck.lifecycle.StateTransitions)junit.framework.AssertionFailedError:
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: datastore transaction; current state hollow
>     [java] detachCopy with active datastore tx transitioned instance to invalid state hollow; expected state persistent-clean
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state hollow
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state persistent-nontransactional
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java]
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
>     [java]      at org.apache.jdo.tck.lifecycle.StateTransitions.test(StateTransitions.java:414)
>     [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:254)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JDO-460) StateTransitions test fails on detachCopy operation

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474011 ] 

Craig Russell commented on JDO-460:
-----------------------------------

>OK. I have tried to fix this but come across the issue of the object state being passed in to this operation being incorrect. In the StateTransitions.java when creating objects HOLLOW and P_NONTRANS are treated the same in general. This leads to a P_NONTRANS being passed in to part 1 above, and HOLLOW being passed in to part 2 above. Going backwards getHollowInstance() will sometimes return a P_NONTRANS, and getPersistentNontransactionalInstance() will sometimes return a HOLLOW ... which upsets things a little when there is different expected behaviour between these two.

Right. The spec was updated so that detachCopy with either HOLLOW or P_NONTRANS should transition to P_CLEAN. The rationale is that detaching instances causes their fields to be read, which should cause a transition to P_CLEAN with a datastore transaction. 

I also agree that the test case does not reliably create HOLLOW or P_NONTRANS instances. I've checked in a fix for the methods.

> StateTransitions test fails on detachCopy operation
> ---------------------------------------------------
>
>                 Key: JDO-460
>                 URL: https://issues.apache.org/jira/browse/JDO-460
>             Project: JDO
>          Issue Type: Bug
>          Components: tck2
>            Reporter: Michelle Caisse
>         Assigned To: Andy Jefferson
>             Fix For: JDO 2 maintenance release 1
>
>
> StateTransitions fails on three cases for the detachCopy operation. These transitions are newly specified for JDO 2.1.  See JDO-456. 
>    [java] There was 1 failure:
>     [java] 1) test(org.apache.jdo.tck.lifecycle.StateTransitions)junit.framework.AssertionFailedError:
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: datastore transaction; current state hollow
>     [java] detachCopy with active datastore tx transitioned instance to invalid state hollow; expected state persistent-clean
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state hollow
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state persistent-nontransactional
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java]
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
>     [java]      at org.apache.jdo.tck.lifecycle.StateTransitions.test(StateTransitions.java:414)
>     [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:254)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JDO-460) StateTransitions test fails on detachCopy operation

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465551 ] 

Andy Jefferson commented on JDO-460:
------------------------------------

Test is wrong. 
Take the example of "detachCopy outside Txn without NontransactionalRead". The test is only run when we have no txn (scenario=2). To set up the test "prepareTransactionAndJDOSettings()" is called ... but sadly we have no tx and it has no place to set nontransactionalRead to false in that case (and so it stays at the value from the previous test ... true).

> StateTransitions test fails on detachCopy operation
> ---------------------------------------------------
>
>                 Key: JDO-460
>                 URL: https://issues.apache.org/jira/browse/JDO-460
>             Project: JDO
>          Issue Type: Bug
>          Components: tck2
>            Reporter: Michelle Caisse
>         Assigned To: Andy Jefferson
>             Fix For: JDO 2 maintenance release 1
>
>
> StateTransitions fails on three cases for the detachCopy operation. These transitions are newly specified for JDO 2.1.  See JDO-456. 
>    [java] There was 1 failure:
>     [java] 1) test(org.apache.jdo.tck.lifecycle.StateTransitions)junit.framework.AssertionFailedError:
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: datastore transaction; current state hollow
>     [java] detachCopy with active datastore tx transitioned instance to invalid state hollow; expected state persistent-clean
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state hollow
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state persistent-nontransactional
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java]
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
>     [java]      at org.apache.jdo.tck.lifecycle.StateTransitions.test(StateTransitions.java:414)
>     [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:254)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (JDO-460) StateTransitions test fails on detachCopy operation

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JDO-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465889 ] 

Michelle Caisse commented on JDO-460:
-------------------------------------

Fixed problems with the test and now get one failure:

    [java] 1) test(org.apache.jdo.tck.lifecycle.StateTransitions)junit.framework.AssertionFailedError:
    [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
    [java] StateTransitions: datastore transaction; current state hollow
    [java] detachCopy with active datastore tx transitioned instance to invalid state hollow; expected state persistent-clean

> StateTransitions test fails on detachCopy operation
> ---------------------------------------------------
>
>                 Key: JDO-460
>                 URL: https://issues.apache.org/jira/browse/JDO-460
>             Project: JDO
>          Issue Type: Bug
>          Components: tck2
>            Reporter: Michelle Caisse
>         Assigned To: Andy Jefferson
>             Fix For: JDO 2 maintenance release 1
>
>
> StateTransitions fails on three cases for the detachCopy operation. These transitions are newly specified for JDO 2.1.  See JDO-456. 
>    [java] There was 1 failure:
>     [java] 1) test(org.apache.jdo.tck.lifecycle.StateTransitions)junit.framework.AssertionFailedError:
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: datastore transaction; current state hollow
>     [java] detachCopy with active datastore tx transitioned instance to invalid state hollow; expected state persistent-clean
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state hollow
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state persistent-nontransactional
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java]
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
>     [java]      at org.apache.jdo.tck.lifecycle.StateTransitions.test(StateTransitions.java:414)
>     [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:254)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (JDO-460) StateTransitions test fails on detachCopy operation

Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JDO-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Jefferson resolved JDO-460.
--------------------------------

    Resolution: Fixed

Fixed in JPOX CVS HEAD and RELEASE_1_1

> StateTransitions test fails on detachCopy operation
> ---------------------------------------------------
>
>                 Key: JDO-460
>                 URL: https://issues.apache.org/jira/browse/JDO-460
>             Project: JDO
>          Issue Type: Bug
>          Components: tck2
>            Reporter: Michelle Caisse
>         Assigned To: Andy Jefferson
>             Fix For: JDO 2 maintenance release 1
>
>
> StateTransitions fails on three cases for the detachCopy operation. These transitions are newly specified for JDO 2.1.  See JDO-456. 
>    [java] There was 1 failure:
>     [java] 1) test(org.apache.jdo.tck.lifecycle.StateTransitions)junit.framework.AssertionFailedError:
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: datastore transaction; current state hollow
>     [java] detachCopy with active datastore tx transitioned instance to invalid state hollow; expected state persistent-clean
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state hollow
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
>     [java] StateTransitions: no transaction; current state persistent-nontransactional
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOUserException should have been thrown
>     [java]
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
>     [java]      at org.apache.jdo.tck.lifecycle.StateTransitions.test(StateTransitions.java:414)
>     [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:254)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.