Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » XmlPath Issue with MOXy 2.6.0
icon5.gif  XmlPath Issue with MOXy 2.6.0 [message #1747921] Wed, 16 November 2016 19:05
M. H. is currently offline M. H.Friend
Messages: 1
Registered: November 2016
Junior Member

I am having some trouble with MOXy 2.6.0.
The following simplified scenario worked in 2.5.0 and 2.5.2 :
Customer class: (extract)
	private String name;

	private CustomObject workNumber;
	private CustomObject faxNumber;

	private CustomObject otherNumber;
	private List<CustomObject> numbers;

<?xml version="1.0" encoding="UTF-8"?>
      <name>Jane Doe</name>
      <phone-number id="work">613-555-1111</phone-number>
      <phone-number id="cell">613-555-2222</phone-number>
      <phone-number id="fax">613-555-3333</phone-number>
	  <phone-number id="pager">613-555-4444</phone-number>
      <phone-number id="other">000000</phone-number>

Expected behaviour:
name=Jane Doe
workNumber= 613-555-1111
faxNumber= 613-555-3333
getNumbers={work,cell,fax, pager, other}

In Version 2.5 this was working perfectly. After updating the Maven dependency to 2.6.0 / 2.6.2 the behaviour is as follows:
name=Jane Doe
workNumber= 613-555-1111
faxNumber= null
getNumbers={work,cell,fax, pager, other}

removing the getNumbers mapping from code:
name=Jane Doe
workNumber= 613-555-1111
faxNumber= 613-555-3333

adding a mapping for cell, then:
name=Jane Doe
workNumber= 613-555-1111
cellNumber= 613-555-2222
faxNumber= 613-555-3333
getNumbers={work,cell,fax, pager, other}

So, somehow when the ElementWrapper is mapped, other direct mapped Sub-Elements only work until the unmarshaller hits a Element that is not mapped.
Please enlighten me, if this is supposed to happen or if it is a bug / mistake by myself.

Thanks and best regards,
Previous Topic:Eclipselink 2.6.4CR1 can't query with MongoDB
Next Topic:Duplicate schema for sequence table
Goto Forum:

Current Time: Sat Apr 04 22:53:47 GMT 2020

Powered by FUDForum. Page generated in 0.01739 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top