db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: TCK errors in 2.2 branch
Date Wed, 08 Oct 2008 05:31:02 GMT
Ok, this is a case of "wrong exception". It should be  
JDOUnsupportedOptionException but DataNucleus throws JDOUserException.

Bad implementation.

Craig

On Oct 7, 2008, at 8:33 PM, Michelle Caisse wrote:

> I haven't run the TCK for a while, but I'm getting the following  
> errors with transactions.conf in the new 2.2 branch (4 errors total,  
> 2 for each identity type).  I'm using datanucleus 1.0.1.
>
> 20:14:03,296 (main) INFO  [org.apache.jdo.tck] - Exception during  
> setUp or runtest:
>
> junit.framework.AssertionFailedError:
>
> Assertion A13.4.2-29 (setIsolationLevel) failed: active datastore  
> transaction; JDOUnsupportedOptionException not thrown for  
> setIsolationLevel(snapshot). Unexpected exception:
> javax.jdo.JDOUserException: Isolation level "snapshot" not supported  
> by this datastore
>
>
>
>   at junit.framework.Assert.fail(Assert.java:47)
>
>   at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1160)
>
>   at  
> org 
> .apache 
> .jdo 
> .tck 
> .transactions 
> .SetIsolationLevel 
> .testSetIsolationLevelOutsideTransaction(SetIsolationLevel.java:82)
>
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>   at  
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>   at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
>
>   at java.lang.reflect.Method.invoke(Method.java:597)
>
>   at junit.framework.TestCase.runTest(TestCase.java:154)
>
>   at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:272)
>
>   at junit.framework.TestResult$1.protect(TestResult.java:106)
>
>   at junit.framework.TestResult.runProtected(TestResult.java:124)
>
>   at junit.framework.TestResult.run(TestResult.java:109)
>
>   at junit.framework.TestCase.run(TestCase.java:118)
>
>   at junit.framework.TestSuite.runTest(TestSuite.java:208)
>
>   at junit.framework.TestSuite.run(TestSuite.java:203)
>
>   at junit.framework.TestSuite.runTest(TestSuite.java:208)
>
>   at junit.framework.TestSuite.run(TestSuite.java:203)
>
>   at junit.textui.TestRunner.doRun(TestRunner.java:116)
>
>   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)
>
> 20:14:03,765 (main) INFO  [org.apache.jdo.tck] - Exception during  
> setUp or runtest:
>
> junit.framework.AssertionFailedError:
>
> Assertion A13.4.2-29 (setIsolationLevel) failed: active datastore  
> transaction; JDOUnsupportedOptionException not thrown for  
> setIsolationLevel(snapshot). Unexpected exception:
> javax.jdo.JDOUserException: Isolation level "snapshot" not supported  
> by this datastore
>
>
>
>   at junit.framework.Assert.fail(Assert.java:47)
>
>   at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1160)
>
>   at  
> org 
> .apache 
> .jdo 
> .tck 
> .transactions 
> .SetIsolationLevel 
> .testSetIsolationLevelWithActiveOptimisticTransaction 
> (SetIsolationLevel.java:130)
>
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>   at  
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>   at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
>
>   at java.lang.reflect.Method.invoke(Method.java:597)
>
>   at junit.framework.TestCase.runTest(TestCase.java:154)
>
>   at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:272)
>
>   at junit.framework.TestResult$1.protect(TestResult.java:106)
>
>   at junit.framework.TestResult.runProtected(TestResult.java:124)
>
>   at junit.framework.TestResult.run(TestResult.java:109)
>
>   at junit.framework.TestCase.run(TestCase.java:118)
>
>   at junit.framework.TestSuite.runTest(TestSuite.java:208)
>
>   at junit.framework.TestSuite.run(TestSuite.java:203)
>
>   at junit.framework.TestSuite.runTest(TestSuite.java:208)
>
>   at junit.framework.TestSuite.run(TestSuite.java:203)
>
>   at junit.textui.TestRunner.doRun(TestRunner.java:116)
>
>   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)
>
>

Craig L Russell
Architect, Sun Java Enterprise System http://db.apache.org/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message