Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321141

Summary: Remove duplicate out-of-date unreferenced EntityManagerTLRJUnitTestSuite
Product: z_Archived Reporter: Michael OBrien <michael.f.obrien>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipselink.orm-inbox, martin.grebac, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 304650    
Bug Blocks: 454799    

Description Michael OBrien CLA 2010-07-28 11:21:46 EDT
>The TLR test suite is not referenced, it is a duplcate like the advanced and fieldaccess versions
This test suite is not currently run anyway - if it was enabled it would fail on the following differences

It looks to be out of date with some recent changes to EntityManagerJUnitTestSuite namely
the following are still commented
        //suite.addTest(new EntityManagerTLRJUnitTestSuite("testPrimaryKeyUpdatePKFK"));
        //suite.addTest(new EntityManagerTLRJUnitTestSuite("testPrimaryKeyUpdate"));
        //suite.addTest(new EntityManagerTLRJUnitTestSuite("testQueryTimeOut"));

missing
        suite.addTest(new EntityManagerJUnitTestSuite("updateAttributeWithObjectTest"));

setup needs a refactor
            getServerSession().getLogin().setShouldForceFieldNamesToUpperCase(true);
to
            getServerSession("fieldaccess").getLogin().setShouldForceFieldNamesToUpperCase(true);

>missing exception check in testSetRollbackOnly()
- one issue is that there is no test for the javax.persistence.RollbackException (only in the TLR version
>found this out when verifying bug# 304650 using testing browser after adding line 130 to FullRegressionTestSuite.suite()
        suite.addTest(org.eclipse.persistence.testing.tests.jpa.fieldaccess.advanced.EntityManagerJUnitTestSuite.suite());

>missing PostgreSQL warning in testQueryTimeOut()

>missing misc Symfoware fixes
Comment 1 Michael OBrien CLA 2010-07-28 11:23:50 EDT
>This would be the same change as what was done when the UTP suite was deleted by VE
Comment 2 Michael OBrien CLA 2010-09-13 10:47:30 EDT
>Update: TLR suite now fails with 3 errors - starting around SVN rev# 8100
I had the suite enabled in my view and started getting new failures at this time on the JPA suite - where previously we had a 0,0 run.

Therefore anyone reenabling this suite should be aware of recent modified functionality that now breaks TLR.

>Or just remove the test suite and close this bug


  <testcase classname="org.eclipse.persistence.testing.tests.jpa.inherited.InheritedModelJunitTest" name="testSerializedElementCollectionMap" time="0.49">
    <error message="Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.2.0.qualifier): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-01658: unable to create INITIAL extent for segment in tablespace MFOBRIEN

Error Code: 1658
Call: INSERT INTO CMP3_ALPINE_LOOKUP (BeerConsumer_ID, DATA, S_NUMBER) VALUES (?, ?, ?)
	bind =&gt; [7864, A test comment, 5852]
Query: DataModifyQuery(sql=&quot;INSERT INTO CMP3_ALPINE_LOOKUP (BeerConsumer_ID, DATA, S_NUMBER) VALUES (?, ?, ?)&quot;)" type="javax.persistence.PersistenceException">javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.2.0.qualifier): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-01658: unable to create INITIAL extent for segment in tablespace MFOBRIEN

Error Code: 1658
Call: INSERT INTO CMP3_ALPINE_LOOKUP (BeerConsumer_ID, DATA, S_NUMBER) VALUES (?, ?, ?)
	bind =&gt; [7864, A test comment, 5852]
Query: DataModifyQuery(sql=&quot;INSERT INTO CMP3_ALPINE_LOOKUP (BeerConsumer_ID, DATA, S_NUMBER) VALUES (?, ?, ?)&quot;)
	at org.eclipse.persistence.internal.jpa.EntityManagerImpl.flush(EntityManagerImpl.java:744)
	at org.eclipse.persistence.testing.tests.jpa.inherited.InheritedModelJunitTest.testSerializedElementCollectionMap(InheritedModelJunitTest.java:1459)
	at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:466)
	at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:248)
	at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:208)
	at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.2.0.qualifier): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-01658: unable to create INITIAL extent for segment in tablespace MFOBRIEN

Error Code: 1658
Call: INSERT INTO CMP3_ALPINE_LOOKUP (BeerConsumer_ID, DATA, S_NUMBER) VALUES (?, ?, ?)
	bind =&gt; [7864, A test comment, 5852]
Query: DataModifyQuery(sql=&quot;INSERT INTO CMP3_ALPINE_LOOKUP (BeerConsumer_ID, DATA, S_NUMBER) VALUES (?, ?, ?)&quot;)
	at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:324)
	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:797)
	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:863)
	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:583)
	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:526)
	at org.eclipse.persistence.internal.sessions.AbstractSession.executeCall(AbstractSession.java:990)
	at org.eclipse.persistence.internal.sessions.IsolatedClientSession.executeCall(IsolatedClientSession.java:131)
	at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:206)
	at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:192)
	at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeNoSelectCall(DatasourceCallQueryMechanism.java:235)
	at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeNoSelect(DatasourceCallQueryMechanism.java:215)
	at org.eclipse.persistence.internal.queries.StatementQueryMechanism.executeNoSelect(StatementQueryMechanism.java:115)
	at org.eclipse.persistence.queries.DataModifyQuery.executeDatabaseQuery(DataModifyQuery.java:85)
	at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:768)
	at org.eclipse.persistence.queries.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:675)
	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2914)
	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1301)
	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1283)
	at org.eclipse.persistence.mappings.DirectCollectionMapping.performDataModificationEvent(DirectCollectionMapping.java:2040)
	at org.eclipse.persistence.mappings.DirectMapMapping.performDataModificationEvent(DirectMapMapping.java:597)
	at org.eclipse.persistence.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:157)
	at org.eclipse.persistence.internal.sessions.AbstractSession.writeAllObjectsWithChangeSet(AbstractSession.java:3358)
	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToDatabase(UnitOfWorkImpl.java:1422)
	at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.commitToDatabase(RepeatableWriteUnitOfWork.java:610)
	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithPreBuiltChangeSet(UnitOfWorkImpl.java:1569)
	at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.writeChanges(RepeatableWriteUnitOfWork.java:423)
	at org.eclipse.persistence.internal.jpa.EntityManagerImpl.flush(EntityManagerImpl.java:741)
Caused by: java.sql.SQLException: ORA-01658: unable to create INITIAL extent for segment in tablespace MFOBRIEN

	at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
	at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
	at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
	at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
	at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:956)
	at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
	at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:951)
	at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1219)
	at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3364)
	at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3445)
	at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1061)
	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:788)
</error>
  </testcase>
  <testcase classname="org.eclipse.persistence.testing.tests.jpa.inherited.InheritedModelJunitTest" name="testVersionUpdateOnElementCollectionChange" time="0.07" />
  <testcase classname="org.eclipse.persistence.testing.tests.jpa.inherited.InheritedModelJunitTest" name="testAddToHeinekenBeerConsumerMap" time="0.04" />
  <testcase classname="org.eclipse.persistence.testing.tests.jpa.inherited.InheritedModelJunitTest" name="testColumnUpdatableAndInsertable" time="0.5">
    <failure message="An exception was caught during create operation: [Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.2.0.qualifier): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-01658: unable to create INITIAL extent for segment in tablespace MFOBRIEN

Error Code: 1658
Call: INSERT INTO JPA_OFFICIAL_ENTRY (ID) VALUES (?)
	bind =&gt; [2151]
Query: InsertObjectQuery(org.eclipse.persistence.testing.models.jpa.inherited.OfficialEntry@1e054ce)]" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: An exception was caught during create operation: [Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.2.0.qualifier): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-01658: unable to create INITIAL extent for segment in tablespace MFOBRIEN

Error Code: 1658
Call: INSERT INTO JPA_OFFICIAL_ENTRY (ID) VALUES (?)
	bind =&gt; [2151]
Query: InsertObjectQuery(org.eclipse.persistence.testing.models.jpa.inherited.OfficialEntry@1e054ce)]
	at org.eclipse.persistence.testing.tests.jpa.inherited.InheritedModelJunitTest.testColumnUpdatableAndInsertable(InheritedModelJunitTest.java:1604)
	at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:466)
	at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:248)
	at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:208)
	at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
</failure>
  </testcase>
  <testcase classname="org.eclipse.persistence.testing.tests.jpa.inherited.InheritedModelJunitTest" name="testColumnUpdatableAndInsertableThroughQuery" time="0.03" />
  <testcase classname="org.eclipse.persistence.testing.tests.jpa.inherited.InheritedModelJunitTest" name="testElementCollectionMapEmbeddable" time="0.55" />
  <testcase classname="org.eclipse.persistence.testing.tests.jpa.inherited.InheritedModelJunitTest" name="testMultipleIdButNonIdClassEntity" time="0.5">
    <failure message="An exception was caught during create operation: [Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.2.0.qualifier): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-01658: unable to create INITIAL extent for segment in tablespace MFOBRIEN

Error Code: 1658
Call: INSERT INTO JPA_BUILDING (NUMB, CITY, DESCRIP) VALUES (?, ?, ?)
	bind =&gt; [352, Ottawa, Can&apos;t build without a permit]
Query: InsertObjectQuery(org.eclipse.persistence.testing.models.jpa.inherited.BuildingBylaw@ec6584)]" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: An exception was caught during create operation: [Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.2.0.qualifier): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-01658: unable to create INITIAL extent for segment in tablespace MFOBRIEN

Error Code: 1658
Call: INSERT INTO JPA_BUILDING (NUMB, CITY, DESCRIP) VALUES (?, ?, ?)
	bind =&gt; [352, Ottawa, Can&apos;t build without a permit]
Query: InsertObjectQuery(org.eclipse.persistence.testing.models.jpa.inherited.BuildingBylaw@ec6584)]
	at org.eclipse.persistence.testing.tests.jpa.inherited.InheritedModelJunitTest.testMultipleIdButNonIdClassEntity(InheritedModelJunitTest.java:187)
	at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:466)
	at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:248)
	at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:208)
	at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
</failure>
  </testcase>
  <testcase classname="org.eclipse.persistence.testing.tests.jpa.inherited.InheritedCallbacksJunitTest" name="testSetup" time="2.61" />
Comment 3 Michael OBrien CLA 2010-09-13 10:48:48 EDT
>FullRegressionTestSuite:131
+       suite.addTest(org.eclipse.persistence.testing.tests.jpa.fieldaccess.advanced.EntityManagerTLRJUnitTestSuite.suite());
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:24:30 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink