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

Bug 337375

Summary: testSetup failed in JPA-SRG with eclipselink.weaving.lazy setting false
Product: z_Archived Reporter: Kevin Yuan <kevin.yuan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: jamesssss, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kevin Yuan CLA 2011-02-16 16:59:13 EST
EclipseLink: trunk (2.3)
JDK: 1.6.0_23
DB: Oracle 11.1.0.7
When set "eclipselink.weaving.lazy=false", and all other options keep
default level. Most tests in JPA-SRG
(org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite)
failed since testSetup failed with the following error:

Stack Trace:
------------
Exception [EclipseLink-0] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.IntegrityException Descriptor Exceptions: --------------------------------------------------------- Exception [EclipseLink-127] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The get method for the attribute [forcedProtected] does not return a ValueHolderInterface, but the mapping uses indirection. Mapping: org.eclipse.persistence.mappings.OneToOneMapping[forcedProtected] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.cacheable.CacheableProtectedEntity --> [DatabaseTable(JPA_CACHEABLE_PROTECTED)]) Exception [EclipseLink-129] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The set method for the attribute [forcedProtected] does not take a ValueHolderInterface as its parameter, but the mapping uses indirection. Mapping: org.eclipse.persistence.mappings.OneToOneMapping[forcedProtected] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.cacheable.CacheableProtectedEntity --> [DatabaseTable(JPA_CACHEABLE_PROTECTED)]) Exception [EclipseLink-127] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The get method for the attribute [directory] does not return a ValueHolderInterface, but the mapping uses indirection. Mapping: org.eclipse.persistence.mappings.ManyToOneMapping[directory] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.inheritance.Vehicle --> [DatabaseTable(CMP3_VEHICLE)]) Exception [EclipseLink-129] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The set method for the attribute [directory] does not take a ValueHolderInterface as its parameter, but the mapping uses indirection. Mapping: org.eclipse.persistence.mappings.ManyToOneMapping[directory] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.inheritance.Vehicle --> [DatabaseTable(CMP3_VEHICLE)]) Exception [EclipseLink-127] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The get method for the attribute [owner] does not return a ValueHolderInterface, but the mapping uses indirection. Mapping: org.eclipse.persistence.mappings.ManyToOneMapping[owner] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.inheritance.Vehicle --> [DatabaseTable(CMP3_VEHICLE)]) Exception

Description: The set method for the attribute [customer] does not take a ValueHolderInterface as its parameter, but the mapping uses indirection. Mapping: org.eclipse.persistence.mappings.ManyToOneMapping[customer] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.xml.merge.relationships.Order --> [DatabaseTable(CMP3_XML_MERGE_ORDER)]) Exception [EclipseLink-127] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The get method for the attribute [item] does not return a ValueHolderInterface, but the mapping uses indirection. Mapping: org.eclipse.persistence.mappings.OneToOneMapping[item] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.xml.merge.relationships.Order --> [DatabaseTable(CMP3_XML_MERGE_ORDER)]) Exception [EclipseLink-129] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The set method for the attribute [item] does not take a ValueHolderInterface as its parameter, but the mapping uses indirection. Mapping: org.eclipse.persistence.mappings.OneToOneMapping[item] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.xml.merge.relationships.Order --> [DatabaseTable(CMP3_XML_MERGE_ORDER)]) Exception [EclipseLink-127] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The get method for the attribute [address] does not return a ValueHolderInterface, but the mapping uses indirection. Mapping: org.eclipse.persistence.mappings.ManyToOneMapping[address] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.advanced.Employee --> [DatabaseTable(CMP3_EMPLOYEE), DatabaseTable(CMP3_SALARY)]) Exception [EclipseLink-129] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The set method for the attribute [address] does not take a ValueHolderInterface as its parameter, but the mapping uses indirection. Mapping: org.eclipse.persistence.mappings.ManyToOneMapping[address] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.advanced.Employee --> [DatabaseTable(CMP3_EMPLOYEE), DatabaseTable(CMP3_SALARY)]) Exception [EclipseLink-127] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The get method for the attribute [hugeProject] does not return a ValueHolderInterface, but the mapping uses indirection. Mapping: org.eclipse.persistence.mappings.OneToOneMapping[hugeProject] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.advanced.Employee --> [DatabaseTable(CMP3_EMPLOYEE), DatabaseTable(CMP3_SALARY)]) Exception [EclipseLink-129] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The set method for the attribute [hugeProject] does not take a ValueHolderInterface as its parameter, but the mapping uses indirection. Mapping: org.eclipse.persistence.mappings.OneToOneMapping[hugeProject] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.jpa.advanced.Employee --> [DatabaseTable(CMP3_EMPLOYEE), DatabaseTable(CMP3_SALARY)]) Exception [EclipseLink-127] (Eclipse Persistence Services - 2.3.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The get method for the attribute [manager] does not return a ValueHolderInterface, but the mapping uses indirection.

Runtime Exceptions:
---------------------------------------------------------

at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:477)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:408)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:681)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:642)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:235)
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:395)
Comment 1 James Sutherland CLA 2011-04-04 13:28:41 EDT
See, https://bugs.eclipse.org/bugs/show_bug.cgi?id=341153 for diff
Comment 2 James Sutherland CLA 2011-04-13 09:47:59 EDT
fixed
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:20:07 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink