persistence@glassfish.java.net

Re: 2 failures of entity-persistence-tests on Derby

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Sat, 10 Mar 2007 16:14:58 -0800

This is really strange as the issue 1451 was a fix for Derby.

Wonseok, are you using an embedded or a server mode for Derby?

thanks,
-marina

Wonseok Kim wrote:
> Hi, Andrei and Chris
>
> On Derby I'm hitting 2 failures which seem to be derived from recent
> changes.
>
> Testcase: testUpdateUsingTempStorageWithParameter took 0.15 sec
> FAILED
> Exception thrown: class
> oracle.toplink.essentials.exceptions.DatabaseException
> junit.framework.AssertionFailedError: Exception thrown: class
> oracle.toplink.essentials.exceptions.DatabaseException
> at
> oracle.toplink.essentials.testing.tests.cmp3.advanced.EntityManagerJUnitTestSuite.internalUpdateUsingTempStorage
> (EntityManagerJUnitTestSuite.java:3213)
> at
> oracle.toplink.essentials.testing.tests.cmp3.advanced.EntityManagerJUnitTestSuite.testUpdateUsingTempStorageWithParameter(EntityManagerJUnitTestSuite.java:3159)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> at junit.extensions.TestSetup.run(TestSetup.java:23)
>
> Testcase: unknown took 0 sec
> FAILED
> Warning, RAW type used for Primary keys only supported on Oracle
> junit.framework.AssertionFailedError: Warning, RAW type used for Primary
> keys only supported on Oracle
> at
> oracle.toplink.essentials.testing.tests.cmp3.datatypes.arraypks.PrimitiveArrayPKCachingJUnitTestCase$1.setUp
> (PrimitiveArrayPKCachingJUnitTestCase.java:46)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
> at junit.extensions.TestSetup.run(TestSetup.java:23)
>
> The first test was added with the fix of issue 1451 by Andrei. Is this
> test expected to work on Derby?
>
> The second test appears to be intended only for Oracle, but which was
> added to FullRegressionTestSuite like below. Shouldn't this test skip in
> case of other database?
> http://fisheye5.cenqua.com/changelog/glassfish/entity-persistence-tests?cs=MAIN:chris_delahunt:20070309151945
>
> Thanks,
> -Wonseok