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

Bug 331063

Summary: NOSUCHMETHODEXCEPTION/DESCRIPTOREXCEPTION ON LISTOFSTRING
Product: z_Archived Reporter: Matt MacIvor <matt.macivor>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
proposed fix and test case none

Description Matt MacIvor CLA 2010-11-24 16:09:31 EST
This seems depend on the 'combination' of types to create the jaxbContext.
The java types we give to jaxb come from the methods on the SEI(service
endpoint interface). I have a SEI with 3 methods, and this problem only
happen in some
combination of these 3 methods.

Exception [EclipseLink-60] (Eclipse Persistence Services -
2.2.0.v20101012-r8345):
org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The method [setValue] or [getValue] is not defined in
the object [jaxb.dev.java.net.java.lang.ListOfString2].
Internal Exception: java.lang.NoSuchMethodException:
jaxb.dev.java.net.java.lang.ListOfString2.getValue()
Mapping:
org.eclipse.persistence.oxm.mappings.XMLDirectMapping[value-->text()]
Descriptor: XMLDescriptor(jaxb.dev.java.net.java.lang.ListOfString2 -->
[DatabaseTable(ns0:sayHello)])
Comment 1 Matt MacIvor CLA 2010-11-24 16:18:00 EST
This bug is related to an issue in MappingsGenerator. A check is incorrectly determining that two separate TypeMappingInfo objects should map to the same complex type.
Comment 2 Matt MacIvor CLA 2010-11-24 16:35:50 EST
Created attachment 183803 [details]
proposed fix and test case
Comment 3 Matt MacIvor CLA 2010-11-24 16:48:27 EST
Attached patch checked in to SVN
Reviewed by David McCann
Comment 4 Matt MacIvor CLA 2010-11-24 16:48:39 EST
closing as fixed
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:35:14 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink