[jira] Commented: (JDO-460) StateTransitions test fails on
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > [jira] Commented: (JDO-460) StateTransitions test fails on




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Commented: (JDO-460) StateTransitions test fails on  
Andy Jefferson (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-17-07 12:11 PM


[ https://issues.apache.org/jira/brow...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 e
nabled. 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) faile
d:
>     [java] StateTransitions: datastore transaction; current state holl
ow
>     [java] detachCopy with active datastore tx transitioned instance t
o invalid state hollow; expected state persistent-clean
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) faile
d:
>     [java] StateTransitions: no transaction; current state hollow
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOU
serException should have been thrown
>     [java] Assertions A5.9-1 through A5.9-190 (StateTransitions) faile
d:
>     [java] StateTransitions: no transaction; current state persistent-
nontransactional
>     [java] detachCopy outside tx with NontransactionalRead=false; JDOU
serException should have been thrown
>     [java]
>     [java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.ja
va: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(NativeM
ethodAccessorImpl.java:39)
>     [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Del
egatingMethodAccessorImpl.java:25)
>     [java]      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:2
54)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(Batch
TestRunner.java:108)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(Batch
TestRunner.java:148)
>     [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunne
r.java:123)

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








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:14 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register