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.
Summary: | Exception thrown when creating new wizard | ||
---|---|---|---|
Product: | xml | Reporter: | Petr Suchomel <psuchomel> |
Component: | TAX/Lib | Assignee: | Marek Fukala <mfukala> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | issues |
Priority: | P1 | Keywords: | SIMPLEFIX |
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Petr Suchomel
2005-11-18 23:26:46 UTC
Data loss. Content of layer.xml dissapeared! No steps to reproduce. I have never seen this before. Did you perhaps delete the encoding="UTF-8" from the layer file? Just guessing. TreeStreamResult.writeDocument apparently has code to deal with the possibility that TreeDocumentRoot.getEncoding() might return null (whether this is true or not is hard to say, since it has no Javadoc) - but then proceeds to create an OutputStreamWriter with the encoding even if it is null, which is apparently illegal. (Must instead use 1-arg constructor.) Wrong component, technically. Yes, you are right, there is missing encoding UTF-8 attribute <?xml version="1.0"?> IMHO, there is no reason for such failure. fixed by using non-encoding constructor of OutputStreamWriter. The system's default one will be used. Checking in TreeStreamResult.java; /cvs/xml/tax/lib/src/org/netbeans/tax/io/TreeStreamResult.java,v <-- TreeStreamResult.java new revision: 1.6; previous revision: 1.5 done *** Issue 70963 has been marked as a duplicate of this issue. *** Works fine in FCS build #200501251500 of NetBeans 5.0. |