This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 200901 - org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
Summary: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML ch...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-12 12:11 UTC by Marian Petras
Modified: 2011-08-13 14:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 180573


Attachments
stacktrace (1.78 KB, text/plain)
2011-08-12 12:11 UTC, Marian Petras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Petras 2011-08-12 12:11:35 UTC
Build: NetBeans IDE 7.0.1 (Build 201107282000)
VM: Java HotSpot(TM) Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Windows XP

User Comments:
mpetras: I just started the IDE, Maven project configuration file (pom.xml) was the active editor window (among approx. 40 other open files).




Stacktrace: 
org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified. 
   at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.checkQName(CoreDocumentImpl.java:2582)
   at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.setName(ElementNSImpl.java:117)
   at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.<init>(ElementNSImpl.java:80)
   at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createElementNS(CoreDocumentImpl.java:2095)
   at org.netbeans.modules.maven.MavenProjectPropsImpl.writeAuxiliaryData(MavenProjectPropsImpl.java:157)
   at org.netbeans.modules.maven.MavenProjectPropsImpl.put(MavenProjectPropsImpl.java:132)
Comment 1 Marian Petras 2011-08-12 12:11:40 UTC
Created attachment 109947 [details]
stacktrace
Comment 2 Jesse Glick 2011-08-12 16:24:00 UTC
I can suppress the exception, but whatever preference was being written cannot be, since it is using some character illegal in XML. It is impossible to see from the stack trace what code was storing the problematic key, since the exception occurs during an asynch flush; I think (but am not sure) that if you were using a dev build (or otherwise had assertions enabled) the full stack trace would be visible. Nor does Xerces report what the actual bad qname was (I will include that information in the warning that will replace this exception).
Comment 3 Jesse Glick 2011-08-12 16:49:17 UTC
core-main #3dda07c44e0b
Comment 4 Quality Engineering 2011-08-13 14:16:54 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/3dda07c44e0b
User: Jesse Glick <jglick@netbeans.org>
Log: #200901: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.