Community
Participate
Working Groups
These tests failed only in EclipseLink 2.0 because of the tests change in setup, need to fix the following parts: public void testSetup() { new AdvancedTableCreator().replaceTables(JUnitTestCase.getServerSession()); new CompositePKTableCreator().replaceTables(JUnitTestCase.getServerSession()); clearCache(); } The following are exceptions: Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00955: name is already used by an existing object Error Code: 955 Local Exception Stack: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.0.20090211-SNAPSHOT): org.eclipse.persistence.exceptions.DatabaseExceptionInternal Exception: java.sql.SQLSyntaxErrorException: ORA-00955: name is already used by an existing objectError Code: 955 at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:313) at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:767) at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:833) at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:558) at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:501) at org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:536) at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:205) at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:191) at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeNoSelectCall(DatasourceCallQueryMechanism.java:234) at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeNoSelect(DatasourceCallQueryMechanism.java:214) at org.eclipse.persistence.queries.DataModifyQuery.executeDatabaseQuery(DataModifyQuery.java:85) at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:664) at org.eclipse.persistence.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2247) at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1185) at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1169) at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1129) at org.eclipse.persistence.internal.sessions.AbstractSession.executeNonSelectingCall(AbstractSession.java:898) at org.eclipse.persistence.tools.schemaframework.DatabaseObjectDefinition.createOnDatabase(DatabaseObjectDefinition.java:81) at org.eclipse.persistence.tools.schemaframework.SchemaManager.createObject(SchemaManager.java:187) at org.eclipse.persistence.tools.schemaframework.SchemaManager.replaceObject(SchemaManager.java:882) at org.eclipse.persistence.tools.schemaframework.TableCreator.replaceTablesAndConstraints(TableCreator.java:297) at org.eclipse.persistence.tools.schemaframework.TableCreator.replaceTables(TableCreator.java:248) at org.eclipse.persistence.tools.schemaframework.TableCreator.replaceTables(TableCreator.java:240) at org.eclipse.persistence.testing.tests.jpa.advanced.compositepk.AdvancedCompositePKJunitTest.testSetup(AdvancedCompositePKJunitTest.java:69) at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBareServer(JUnitTestCase.java:396) at org.eclipse.persistence.testing.framework.server.TestRunnerBean.runTest(TestRunnerBean.java:87)
This is new regression since the following checkin by Chris: SVN Checkin: Bug 241765 - JPA 2.0 Derived identities https://bugs.eclipse.org/bugs/show_bug.cgi?id=241765 reviewed by Gordon and Guy
Several JPA test suites use the same table creator and call "new AdvancedTableCreator().replaceTables(JUnitTestCase.getServerSession());" in each of them, and it failed intermittently on running all of them together. Need to dig into it. It could be something to do with failing tests on the server not cleaning up resources, since the testSetup tests that fail seem to follow closely other tests that fail.
After OptimisticLock issue fix (the bug 264582), this issue also has been fixed.
Mass update to change fixed in target.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink