persistence@glassfish.java.net

Re: 6 failures in the unit tests?

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Wed, 18 Oct 2006 11:36:52 -0700

Tom,

The following tests failed the 1st time (may be it'll give some clue):
testPrimaryKeyUpdate
testPrimaryKeyUpdateSameValue
testPrimaryKeyUpdatePKFK
testCascadeMergeDetached
testCascadeMergeManaged
testCascadePersistToNonEntitySubclass

thanks,
-marina

Tom Ware wrote:
> Marina,
>
> I am not seeing these errors.
>
> The fix was to enable DDL generation for the main persistence unit used
> by the tests. This should create the table, so I am a bit surprised it
> is breaking since DDL generation happens right at deploy time.
>
> -Tom
>
> Marina Vatkina wrote:
>
>> Team,
>>
>> We are again at the same problem (am I the only one suffering from
>> them?):
>> a table is not created on the 1st run (subsequent run produces 0 errors).
>>
>> Internal Exception: java.sql.SQLException: ORA-00942: table or view
>> does not exist.
>> Error Code: 942
>> Call:UPDATE CMP3_EMPLOYEE_SEQ SET SEQ_COUNT = SEQ_COUNT + ? WHERE
>> SEQ_NAME = ?
>> bind => [50, EMPLOYEE_SEQ]
>>
>> Tom, which steps are missing for those problems? Let's put a warning
>> into the
>> readme.
>>
>> thanks,
>> -marina
>>
>>