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

Bug 334321

Summary: MOXy: Marshal Exception occurs if marshalling to a DOMResult with a null node
Product: z_Archived Reporter: David McCann <david.mccann>
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.
none
Supporting test case. none

Description David McCann CLA 2011-01-13 16:24:49 EST
We need to handle the case where a new DOMResult() is passed in to a marshal method.  In this case the DOMResult's node is null - we should detect this and marshal the object to a Document, then set that as the DOMResult's node.
Comment 1 David McCann CLA 2011-01-13 16:25:09 EST
Created attachment 186781 [details]
Proposed fix.
Comment 2 David McCann CLA 2011-01-13 16:25:34 EST
Created attachment 186782 [details]
Supporting test case.
Comment 3 David McCann CLA 2011-01-14 10:10:16 EST
Reviewed by:  blaise.doughan@oracle.com
Tests: oxm/xmlmarshaller/XMLMarshalTestCases;  all unit tests pass as expected
Revision: 8832
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:14:50 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:30:03 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink