jaxp
  1. jaxp
  2. JAXP-29

NAMESPACE_ERR error message needs more details

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • 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.

        Activity

          People

          • Assignee:
            jaxp-issues
            Reporter:
            kohsuke
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: