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 Michael Bouschen <mb...@spree.de> on 2007/01/13 13:25:02 UTC

JDO tck20 failures

Hi Michelle,

I updated my workspace with your latest changes and ran the tck. I can 
confirm there are 5 failures:
    [java] Total tests run: 1355. Failures: 5, Errors: 0.
    [java] 4 of 61 configurations failed.
You find some details about the failures below.

Regards Michael

--------------------------------------

derby-app-lifecycle-junit.txt:
    ** Tests run: 017, Time: 007 seconds. Failures: 1, Errors: 0
There was 1 failure:
1) 
test(org.apache.jdo.tck.lifecycle.StateTransitions)junit.framework.AssertionFailedError: 

Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
StateTransitions: datastore transaction; current state hollow
detachCopy with active datastore tx transitioned instance to invalid 
state hollow; expected state persistent-clean
Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
StateTransitions: no transaction; current state hollow
detachCopy outside tx with NontransactionalRead=false; JDOUserException 
should have been thrown
Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
StateTransitions: no transaction; current state persistent-nontransactional
detachCopy outside tx with NontransactionalRead=false; JDOUserException 
should have been thrown

    at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
    at 
org.apache.jdo.tck.lifecycle.StateTransitions.test(StateTransitions.java:414)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:254)
    at 
org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
    at 
org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
    at 
org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)

--------------------------------------

derby-app-query-junit.txt:
    ** Tests run: 145, Time: 030 seconds. Failures: 2, Errors: 0

There were 2 failures:
1) 
testDateField(org.apache.jdo.tck.query.result.ProjectedSCODoesNotTrackChanges)junit.framework.AssertionFailedError: 

Expected Company instance not to be dirty; actual state is {persistent, 
transactional, dirty}
Expected projected field value is Sat Jan 13 10:50:48 CET 2007; actual 
value is Thu Jan 01 01:02:03 CET 1970

    at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
    at 
org.apache.jdo.tck.query.result.ProjectedSCODoesNotTrackChanges.testDateField(ProjectedSCODoesNotTrackChanges.java:151)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:254)
    at 
org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
    at 
org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
    at 
org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)
2) 
testMultipleProjection(org.apache.jdo.tck.query.result.VariableInResult)junit.framework.AssertionFailedError: 
Assertion A14.6.9-3 (VariableInResult) failed:
Wrong query result:
query: SELECT e, p FROM org.apache.jdo.tck.pc.company.Department WHERE 
employees.contains(e) && e.projects.contains(p) VARIABLES Employee e; 
Project p
expected: java.util.ArrayList of size 7
[[FullTimeEmployee(1, emp1Last, emp1First, born 10/Jun/1970, phone 
{work=123456-1, home=1111}, hired 1/Jan/1999, weeklyhours 40.0, 
$20000.0), Project(1, name orange, budget 2500000.99)], 
[FullTimeEmployee(2, emp2Last, emp2First, born 22/Dez/1975, phone 
{work=123456-2, home=2222}, hired 1/Jul/2003, weeklyhours 40.0, 
$10000.0), Project(1, name orange, budget 2500000.99)], 
[PartTimeEmployee(3, emp3Last, emp3First, born 5/Sep/1972, phone 
{work=123456-3, home=3333}, hired 15/Aug/2002, weeklyhours 19.0, $15.0), 
Project(1, name orange, budget 2500000.99)], [FullTimeEmployee(2, 
emp2Last, emp2First, born 22/Dez/1975, phone {work=123456-2, home=2222}, 
hired 1/Jul/2003, weeklyhours 40.0, $10000.0), Project(2, name blue, 
budget 50000.00)], [PartTimeEmployee(3, emp3Last, emp3First, born 
5/Sep/1972, phone {work=123456-3, home=3333}, hired 15/Aug/2002, 
weeklyhours 19.0, $15.0), Project(2, name blue, budget 50000.00)], 
[PartTimeEmployee(4, emp4Last, emp4First, born 6/Sep/1973, phone 
{work=124456-3, home=3343}, hired 15/Apr/2001, weeklyhours 0.0, $13.0), 
Project(3, name green, budget 2000.99)], [FullTimeEmployee(5, emp5Last, 
emp5First, born 5/Jul/1962, phone {work=126456-3, home=3363}, hired 
15/Aug/1998, weeklyhours 0.0, $45000.0), Project(3, name green, budget 
2000.99)]]
got:      java.util.ArrayList of size 5
[[FullTimeEmployee(5, emp5Last, emp5First, born 5/Jul/1962, phone 
{work=126456-3, home=3363}, hired 15/Aug/1998, weeklyhours 0.0, 
$45000.0), Project(3, name green, budget 2000.99)], [PartTimeEmployee(4, 
emp4Last, emp4First, born 6/Sep/1973, phone {work=124456-3, home=3343}, 
hired 15/Apr/2001, weeklyhours 0.0, $13.0), Project(3, name green, 
budget 2000.99)], [FullTimeEmployee(1, emp1Last, emp1First, born 
10/Jun/1970, phone {work=123456-1, home=1111}, hired 1/Jan/1999, 
weeklyhours 40.0, $20000.0), Project(1, name orange, budget 
2500000.99)], [PartTimeEmployee(3, emp3Last, emp3First, born 5/Sep/1972, 
phone {work=123456-3, home=3333}, hired 15/Aug/2002, weeklyhours 19.0, 
$15.0), Project(2, name blue, budget 50000.00)], [FullTimeEmployee(2, 
emp2Last, emp2First, born 22/Dez/1975, phone {work=123456-2, home=2222}, 
hired 1/Jul/2003, weeklyhours 40.0, $10000.0), Project(2, name blue, 
budget 50000.00)]]
    at org.apache.jdo.tck.JDO_Test.fail(JDO_Test.java:639)
    at org.apache.jdo.tck.query.QueryTest.queryFailed(QueryTest.java:509)
    at 
org.apache.jdo.tck.query.QueryTest.checkQueryResultWithoutOrder(QueryTest.java:539)
    at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:1283)
    at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:1123)
    at 
org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:1060)
    at 
org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:1040)
    at 
org.apache.jdo.tck.query.result.VariableInResult.testMultipleProjection(VariableInResult.java:262)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun..NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:254)
    at 
org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
    at 
org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
    at 
org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)
FAILURES!!!

--------------------------------------

derby-dsid-lifecycle-junit.txt:
    ** Tests run: 017, Time: 008 seconds. Failures: 1, Errors: 0
There was 1 failure:
1) 
test(org.apache.jdo.tck.lifecycle.StateTransitions)junit.framework.AssertionFailedError: 

Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
StateTransitions: datastore transaction; current state hollow
detachCopy with active datastore tx transitioned instance to invalid 
state hollow; expected state persistent-clean
Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
StateTransitions: no transaction; current state hollow
detachCopy outside tx with NontransactionalRead=false; JDOUserException 
should have been thrown
Assertions A5.9-1 through A5.9-190 (StateTransitions) failed:
StateTransitions: no transaction; current state persistent-nontransactional
detachCopy outside tx with NontransactionalRead=false; JDOUserException 
should have been thrown

    at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
    at 
org.apache.jdo.tck.lifecycle.StateTransitions.test(StateTransitions.java:414)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:254)
    at 
org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
    at 
org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
    at 
org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)
--------------------------------------

derby-dsid-query-junit.txt:
    ** Tests run: 145, Time: 071 seconds. Failures: 1, Errors: 0

There was 1 failure:
1) 
testDateField(org.apache.jdo.tck.query.result.ProjectedSCODoesNotTrackChanges)junit.framework.AssertionFailedError: 

Expected Company instance not to be dirty; actual state is {persistent, 
transactional, dirty}
Expected projected field value is Sat Jan 13 11:03:46 CET 2007; actual 
value is Thu Jan 01 01:02:03 CET 1970

    at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1103)
    at 
org.apache.jdo.tck.query.result.ProjectedSCODoesNotTrackChanges.testDateField(ProjectedSCODoesNotTrackChanges.java:151)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:254)
    at 
org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
    at 
org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
    a org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)

-- 
Michael Bouschen		Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de	http://www.tech.spree.de/
Tel.:++49/30/235 520-33		Buelowstr. 66			
Fax.:++49/30/2175 2012		D-10783 Berlin