Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313942 - NullPointerException when unmarshalling MTOM with no AttachmentUnmarshaller
Summary: NullPointerException when unmarshalling MTOM with no AttachmentUnmarshaller
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: 2010-05-21 12:44 EDT by Matt MacIvor CLA
Modified: 2022-06-09 10:34 EDT (History)
0 users

See Also:


Attachments
propsed fix and test cases (5.38 KB, patch)
2010-05-27 15:40 EDT, Matt MacIvor CLA
no flags Details | Diff

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