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.
While investigating random failures of the form org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified. at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createElement(CoreDocumentImpl.java:626) at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.importNode(CoreDocumentImpl.java:1485) at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.importNode(CoreDocumentImpl.java:1444) at org.openide.xml.XMLUtil.normalize(XMLUtil.java:820) at org.openide.xml.XMLUtil.write(XMLUtil.java:394) at org.netbeans.spi.project.support.ant.GeneratedFilesHelper.applyBuildExtensions(GeneratedFilesHelper.java:503) I found that aBE parses and then reserializes build-impl.xml even when there are no build extensions at all, i.e. AntBuildExtenderAccessor.DEFAULT.getExtensions(ext) is empty. Probably it should just return resultData straight away in such a case. I would fix it myself but I found that there is no test covering this method; if you change it to just always return resultData, all tests in the module pass.
Potential performance issue - wasted time; and potential aesthetic issue - could change formatting in an undesirable way relative to original XSLT output. Probably not P3 though.
Reassigning to default owner.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss