[JAXP-29] NAMESPACE_ERR error message needs more details Created: 12/Apr/07  Updated: 12/Apr/07

Status: Open
Project: jaxp
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Improvement Priority: Major
Reporter: kohsuke Assignee: jaxp-issues
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 29

 Description   

One of the DOM error often takes the form like this:

SEVERE: NAMESPACE_ERR: An attempt is made to create or change an object in a way
which is incorrect with regard to names
paces.
org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change
an object in a way which is incorrect wi
th regard to namespaces.
at
com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.checkNamespaceWF(Unknown
Source)
at com.sun.org.apache.xerces.internal.dom.AttrNSImpl.setName(Unknown Source)
at com.sun.org.apache.xerces.internal.dom.AttrNSImpl.<init>(Unknown Source)
at
com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createAttributeNS(Unknown
Source)
at com.sun.org.apache.xerces.internal.dom.ElementImpl.setAttributeNS(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.startElement(Unknown Source)
at
com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.closeStartTag(Unknown
Source)
at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.characters(Unknown
Source)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.characters(Unknown
Source)
at com.sun.xml.bind.v2.runtime.unmarshaller.DomLoader.text(DomLoader.java:102)

Especially since JDK code doesn't ship with the local variable information, it's
very important that the error message points out which rule it's violating and
other details.


Generated at Mon May 30 18:21:39 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.