Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353037 - Two JPA tests failed on SQL Server DB
Summary: Two JPA tests failed on SQL Server DB
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard: sqlserver
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-25 15:38 EDT by Kevin Yuan CLA
Modified: 2022-06-09 10:35 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2011-07-25 15:38:32 EDT
SQLServer: 2008
JDK: 1.6.0_24

There are the following two JPA tests failed on SQL Server 2008 DB:

1. jpa.advanced.PessimisticLockingExtendedScopeTestSuite.testPESSMISTIC_ES6:
   ========================================================================

other transaction modified row concurrently

junit.framework.AssertionFailedError: other transaction modified row concurrently
at org.eclipse.persistence.testing.tests.jpa.advanced.PessimisticLockingExtendedScopeTestSuite$6.check(PessimisticLockingExtendedScopeTestSuite.java:307)
at org.eclipse.persistence.testing.tests.jpa.advanced.PessimisticLockingExtendedScopeTestSuite$6.check(PessimisticLockingExtendedScopeTestSuite.java:283)
at org.eclipse.persistence.testing.tests.jpa.advanced.PessimisticLockingExtendedScopeTestSuite.testNonrepeatableRead(PessimisticLockingExtendedScopeTestSuite.java:379)
at org.eclipse.persistence.testing.tests.jpa.advanced.PessimisticLockingExtendedScopeTestSuite.testPESSMISTIC_ES6(PessimisticLockingExtendedScopeTestSuite.java:312)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:555)

2. jpa.composite.advanced.EntityManagerJUnitTestSuite.testEMCloseAndOpen:
   =====================================================================

Exception Description: Error preallocating sequence numbers. The sequence table information is not complete.

Local Exception Stack:
Exception [EclipseLink-4011] (Eclipse Persistence Services - 2.4.0.qualifier): org.eclipse.persistence.exceptions.DatabaseException
Exception Description: Error preallocating sequence numbers. The sequence table information is not complete.
at org.eclipse.persistence.exceptions.DatabaseException.errorPreallocatingSequenceNumbers(DatabaseException.java:143)
at org.eclipse.persistence.sequencing.StandardSequence.getGeneratedValue(StandardSequence.java:63)
at org.eclipse.persistence.sequencing.Sequence.getGeneratedValue(Sequence.java:225)
at org.eclipse.persistence.internal.sequencing.SequencingManager$NoPreallocation_State.getNextValue(SequencingManager.java:677)
at org.eclipse.persistence.internal.sequencing.SequencingManager.getNextValue(SequencingManager.java:1067)
at org.eclipse.persistence.internal.sequencing.SequencingManager.getNextValue(SequencingManager.java:266)
at org.eclipse.persistence.internal.sessions.AbstractSession.getNextSequenceNumberValue(AbstractSession.java:2358)
at org.eclipse.persistence.testing.tests.jpa.composite.advanced.EntityManagerJUnitTestSuite.testEMCloseAndOpen(EntityManagerJUnitTestSuite.java:8479)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:555)
Comment 1 Martin Grebac CLA 2014-12-10 14:50:41 EST
Don't see failures any more.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:35:41 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink