Bug 272715 - several tests in foundation srg & lrg failed due to "finest" log level
Summary: several tests in foundation srg & lrg failed due to "finest" log level
Status: ASSIGNED
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:
Keywords: test
Depends on:
Blocks:
 
Reported: 2009-04-17 11:35 EDT by Yiping Zhao CLA
Modified: 2022-06-09 10:28 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yiping Zhao CLA 2009-04-17 11:35:42 EDT
In 11GR1 RC2 testing for EclipseLink 1.1.0 r3634, I found that if we set "finest" to be log level in test.properties, following two tests failed in foundation srg:

1.
<testcase classname="org.eclipse.persistence.testing.tests.queries.ConformResultsAcrossWrappedOneToManyTest" name="ConformResultsAcrossWrappedOneToManyTest" time="0.016" />


      <testcase classname="org.eclipse.persistence.testing.tests.queries.ShouldRegisterResultsInUnitOfWorkTest" name="ShouldRegisterResultsInUnitOfWorkTest" time="0.016">
          <error message=" Exception Description: Problem in the setup method of the test: ShouldRegisterResultsInUnitOfWorkTest Internal Exception: java.lang.RuntimeException: Trying to access a wrapped object." type="org.eclipse.persistence.testing.framework.TestProblemException">Local Exception Stack: 
Exception [EclipseLink-0] (Eclipse Persistence Services - 1.1.0.r3634): org.eclipse.persistence.testing.framework.TestProblemException
Exception Description: Problem in the setup method of the test: ShouldRegisterResultsInUnitOfWorkTest
Internal Exception: java.lang.RuntimeException: Trying to access a wrapped object.
	at org.eclipse.persistence.testing.framework.TestCase.execute(TestCase.java:147)
	at org.eclipse.persistence.testing.framework.TestCase.runBare(TestCase.java:263)
	at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:247)
	at org.eclipse.persistence.testing.framework.TestSuite.execute(TestSuite.java:75)
	at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
	at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:247)
	at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:208)
	at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
	at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:247)
	at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:208)
	at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
Caused by: java.lang.RuntimeException: Trying to access a wrapped object.
	at org.eclipse.persistence.testing.tests.queries.WrappedEmployee.getFirstName(WrappedEmployee.java:28)
	at org.eclipse.persistence.testing.models.employee.domain.Employee.toString(Employee.java:511)
	at java.lang.String.valueOf(String.java:2827)
	at org.eclipse.persistence.queries.ObjectLevelModifyQuery.toString(ObjectLevelModifyQuery.java:256)
	at java.text.MessageFormat.subformat(MessageFormat.java:1246)
	at java.text.MessageFormat.format(MessageFormat.java:836)
	at java.text.Format.format(Format.java:140)
	at java.text.MessageFormat.format(MessageFormat.java:812)
	at org.eclipse.persistence.internal.localization.EclipseLinkLocalization.buildMessage(EclipseLinkLocalization.java:77)
	at org.eclipse.persistence.internal.localization.TraceLocalization.buildMessage(TraceLocalization.java:30)
	at org.eclipse.persistence.logging.AbstractSessionLog.formatMessage(AbstractSessionLog.java:801)
	at org.eclipse.persistence.logging.DefaultSessionLog.log(DefaultSessionLog.java:143)
	at org.eclipse.persistence.internal.sessions.AbstractSession.log(AbstractSession.java:2492)
	at org.eclipse.persistence.internal.sessions.AbstractSession.log(AbstractSession.java:3579)
	at org.eclipse.persistence.internal.sessions.AbstractSession.log(AbstractSession.java:3551)
	at org.eclipse.persistence.internal.sessions.AbstractSession.log(AbstractSession.java:3527)
	at org.eclipse.persistence.internal.sessions.AbstractSession.log(AbstractSession.java:3449)
	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1159)
	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1125)
	at org.eclipse.persistence.internal.sessions.AbstractSession.deleteObject(AbstractSession.java:796)
	at org.eclipse.persistence.testing.tests.queries.ShouldRegisterResultsInUnitOfWorkTest.prepareTest(ShouldRegisterResultsInUnitOfWorkTest.java:58)
	at org.eclipse.persistence.testing.tests.queries.ConformResultsInUnitOfWorkTest.setup(ConformResultsInUnitOfWorkTest.java:45)
	at org.eclipse.persistence.testing.framework.TestCase.setUp(TestCase.java:225)
	at org.eclipse.persistence.testing.framework.TestCase.execute(TestCase.java:140)
</error>

2. <testcase classname="org.eclipse.persistence.testing.tests.queries.ShouldRegisterResultsInUnitOfWorkTest" name="DescriptorShouldRegisterResultsInUnitOfWorkTest" time="0.015">
          <error message=" Exception Description: Problem in the setup method of the test: DescriptorShouldRegisterResultsInUnitOfWorkTest Internal Exception: java.lang.RuntimeException: Trying to access a wrapped object." type="org.eclipse.persistence.testing.framework.TestProblemException">Local Exception Stack: 
Exception [EclipseLink-0] (Eclipse Persistence Services - 1.1.0.r3634): org.eclipse.persistence.testing.framework.TestProblemException
Exception Description: Problem in the setup method of the test: DescriptorShouldRegisterResultsInUnitOfWorkTest
Internal Exception: java.lang.RuntimeException: Trying to access a wrapped object.
	at org.eclipse.persistence.testing.framework.TestCase.execute(TestCase.java:147)
	at org.eclipse.persistence.testing.framework.TestCase.runBare(TestCase.java:263)
	at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:247)
	at org.eclipse.persistence.testing.framework.TestSuite.execute(TestSuite.java:75)
	at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
	at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:247)
	at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:208)
	at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
	at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:247)
	at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:208)
	at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
Caused by: java.lang.RuntimeException: Trying to access a wrapped object.
	at org.eclipse.persistence.testing.tests.queries.WrappedEmployee.getFirstName(WrappedEmployee.java:28)
	at org.eclipse.persistence.testing.models.employee.domain.Employee.toString(Employee.java:511)
	at java.lang.String.valueOf(String.java:2827)
	at org.eclipse.persistence.queries.ObjectLevelModifyQuery.toString(ObjectLevelModifyQuery.java:256)
	at java.text.MessageFormat.subformat(MessageFormat.java:1246)
	at java.text.MessageFormat.format(MessageFormat.java:836)
	at java.text.Format.format(Format.java:140)
	at java.text.MessageFormat.format(MessageFormat.java:812)
	at org.eclipse.persistence.internal.localization.EclipseLinkLocalization.buildMessage(EclipseLinkLocalization.java:77)
	at org.eclipse.persistence.internal.localization.TraceLocalization.buildMessage(TraceLocalization.java:30)
	at org.eclipse.persistence.logging.AbstractSessionLog.formatMessage(AbstractSessionLog.java:801)
	at org.eclipse.persistence.logging.DefaultSessionLog.log(DefaultSessionLog.java:143)
	at org.eclipse.persistence.internal.sessions.AbstractSession.log(AbstractSession.java:2492)
	at org.eclipse.persistence.internal.sessions.AbstractSession.log(AbstractSession.java:3579)
	at org.eclipse.persistence.internal.sessions.AbstractSession.log(AbstractSession.java:3551)
	at org.eclipse.persistence.internal.sessions.AbstractSession.log(AbstractSession.java:3527)
	at org.eclipse.persistence.internal.sessions.AbstractSession.log(AbstractSession.java:3449)
	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1159)
	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1125)
	at org.eclipse.persistence.internal.sessions.AbstractSession.deleteObject(AbstractSession.java:796)
	at org.eclipse.persistence.testing.tests.queries.ShouldRegisterResultsInUnitOfWorkTest.prepareTest(ShouldRegisterResultsInUnitOfWorkTest.java:58)
	at org.eclipse.persistence.testing.tests.queries.ConformResultsInUnitOfWorkTest.setup(ConformResultsInUnitOfWorkTest.java:45)
	at org.eclipse.persistence.testing.framework.TestCase.setUp(TestCase.java:225)
	at org.eclipse.persistence.testing.framework.TestCase.execute(TestCase.java:140)
</error>


      </testcase>
Note: If the log level is "finest", five tests in foundation lrg failed as well. But if I change the log level to be "info", the tests all passed. So this is a issue we think right now it's on test case side.
Comment 1 Kevin Yuan CLA 2010-06-03 13:42:31 EDT
This bug fix did not make the cut off for 2.1. We are deferring the bugs to
Future where we can properly sort them all together and severity. And then assign them accordingly to future patch sets and releases.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:28:03 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink