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

Bug 313942

Summary: NullPointerException when unmarshalling MTOM with no AttachmentUnmarshaller
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
propsed fix and test cases none

Description Matt MacIvor CLA 2010-05-21 12:44:43 EDT
When attempting to unmarshal an XML document that contains a reference to an MTOM attachment (<xop:Include href="cid:xxxxx"/>), if no AttachmentUnmarshaller has been set a NullPointerException is thrown. A more useful error should be thrown in this case instead.
Comment 1 Matt MacIvor CLA 2010-05-27 15:40:44 EDT
Created attachment 170254 [details]
propsed fix and test cases
Comment 2 Matt MacIvor CLA 2010-05-27 15:48:11 EDT
Attached patch checked in to SVN
Code reviewed by David McCann
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:34:18 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink