Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334321 - MOXy: Marshal Exception occurs if marshalling to a DOMResult with a null node
Summary: MOXy: Marshal Exception occurs if marshalling to a DOMResult with a null node
Status: RESOLVED FIXED
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:
Depends on:
Blocks:
 
Reported: 2011-01-13 16:24 EST by David McCann CLA
Modified: 2022-06-09 10:30 EDT (History)
0 users

See Also:


Attachments
Proposed fix. (1.19 KB, patch)
2011-01-13 16:25 EST, David McCann CLA
no flags Details | Diff
Supporting test case. (1.15 KB, patch)
2011-01-13 16:25 EST, David McCann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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