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

Bug 345666

Summary: JAXB MARSHALS INVALID NULL URI PARAMETER TO SAX CONTENT HANDLER SRARTELEMENT()
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matt.macivor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
proposed fix and test case none

Description Blaise Doughan CLA 2011-05-12 16:40:06 EDT
If we marshal an object with a member in the default namespace to a
SAXResult, Toplink JAXB supplies a null for the uri parameter of
ContentHandler.startElement().  This causes a crash when used with Sun's
XmlStreamBuffer SAXResult object.  While other SAXResult objects are more
lenient, according to the javadocs, null is not a valid value, and "" should
be passed in:
Comment 1 Matt MacIvor CLA 2011-05-13 12:25:14 EDT
Created attachment 195605 [details]
proposed fix and test case
Comment 2 Matt MacIvor CLA 2011-05-13 13:57:03 EDT
Attached patch checked in to SVN
Reviewed by Blaise Doughan
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:27:41 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink