Bug 334409 - UOWCommitAndResumeWithPreCalcChangeSet failed in remote test models
Summary: UOWCommitAndResumeWithPreCalcChangeSet failed in remote test models
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: Gordon Yorke CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2011-01-14 13:29 EST by Edwin Tang CLA
Modified: 2022-06-09 10:05 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 Edwin Tang CLA 2011-01-14 13:29:55 EST
org.eclipse.persistence.testing.tests.unitofwork.UOWCommitAndResumeWithPreCalcChangeSet failed in remote test models.

Stack Trace:
============
     [java] 		VERSION:   Eclipse Persistence Services - 2.2.0.v20110114-r8831
     [java] 		TEST NAME:   UOWCommitAndResumeWithPreCalcChangeSet
     [java] 		TEST DESCRIPTION: 
     [java] 		##FAILURE##
     [java] 		TEST TIME:      0
     [java] 		TOTAL TIME:      13
     [java] 		RESULT:      Error
     [java] 		Local Exception Stack: 
     [java] 		Exception [EclipseLink-0] (Eclipse Persistence Services - 2.2.0.v20110114-r8831): org.eclipse.persistence.testing.framework.TestErrorException
     [java] 		Exception Description: Fatal error occurred.
     [java] 		Internal Exception: java.lang.NullPointerException
     [java] 	at org.eclipse.persistence.testing.framework.TestCase.execute(TestCase.java:166)
     [java] 	at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:250)
     [java] 	at org.eclipse.persistence.testing.framework.TestSuite.execute(TestSuite.java:75)
     [java] 	at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:250)
     [java] 	at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:208)
     [java] 	at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:250)
     [java] 	at org.eclipse.persistence.testing.framework.TestExecutor.runTest(TestExecutor.java:671)
     [java] 	at org.eclipse.persistence.testing.framework.PromptTestRunner.run(PromptTestRunner.java:141)
     [java] 	at org.eclipse.persistence.testing.framework.PromptTestRunner.main(PromptTestRunner.java:103)
     [java] Caused by: java.lang.NullPointerException
     [java] 	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.isInBatchWritingMode(DatabaseAccessor.java:1326)
     [java] 	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.writesCompleted(DatabaseAccessor.java:1632)
     [java] 	at org.eclipse.persistence.internal.sessions.AbstractSession.writesCompleted(AbstractSession.java:3803)
     [java] 	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.writesCompleted(UnitOfWorkImpl.java:5468)
     [java] 	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToDatabase(UnitOfWorkImpl.java:1427)
     [java] 	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithPreBuiltChangeSet(UnitOfWorkImpl.java:1552)
     [java] 	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitRootUnitOfWorkWithPreBuiltChangeSet(UnitOfWorkImpl.java:1326)
     [java] 	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitAndResumeWithPreBuiltChangeSet(UnitOfWorkImpl.java:1169)
     [java] 	at org.eclipse.persistence.testing.tests.unitofwork.UOWCommitAndResumeWithPreCalcChangeSet.test(UOWCommitAndResumeWithPreCalcChangeSet.java:75)
     [java] 	at org.eclipse.persistence.testing.framework.TestCase.executeTest(TestCase.java:545)
     [java] 	at org.eclipse.persistence.testing.framework.TestCase.execute(TestCase.java:156)
     [java] 	... 8 more
Comment 1 Edwin Tang CLA 2011-01-14 13:31:06 EST
(Gordon Yorke) This can be considered a test issue as this test should not be run on a RemoteUnitOfWork.  The test may have passed recently but it does not make sense to write a ChangeSet through a RemoteUnitOfWork.  The NullPonter happens because the RemoteUOW is not connected to the database.
Comment 2 Gordon Yorke CLA 2011-01-18 09:41:25 EST
Fixed by preventing the test to run against a RemoteUnitOfWork.  The functionality that this test is testing is not supported by remoteUnitOfWork
Comment 4 Edwin Tang CLA 2011-01-18 13:57:46 EST
Ported the changes to 2.1.3 and 2.3.0
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:05:45 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink