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: | Malformed XML stored in response to some actions | ||
---|---|---|---|
Product: | ide | Reporter: | Jesse Glick <jglick> |
Component: | Logger | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | jhorvath |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 120151 | ||
Bug Blocks: |
Description
Jesse Glick
2007-10-23 17:35:39 UTC
I am getting this error so often I cannot use the exception reporter at all. org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x2) was found in the element content of the document. etc. You need to be careful not to store control characters. See XMLUtil.toElementContent. Perhaps newly thrown because of http://deadlock.netbeans.org/fisheye/browse/netbeans/logger/uihandlerlib/src/org/netbeans/lib/uihandler/LogRecords.java?r1=1.31&r2=1.32 Please review fix (seems to work): Checking in LogFormatter.java; /shared/data/ccvs/repository/logger/uihandlerlib/src/org/netbeans/lib/uihandler/LogFormatter.java,v <-- LogFormatter.java new revision: 1.7; previous revision: 1.6 done Will now store e.g. ^C (as two ASCII chars) for Copy action. Refinement not to escape \t\r\n: Checking in LogFormatter.java; /shared/data/ccvs/repository/logger/uihandlerlib/src/org/netbeans/lib/uihandler/LogFormatter.java,v <-- LogFormatter.java new revision: 1.8; previous revision: 1.7 done Strictly speaking there are other characters which should be excluded, but I think it is the control characters which are the likely offenders. Reference: http://www.w3.org/TR/2006/REC-xml11-20060816/#charsets *** Issue 120151 has been marked as a duplicate of this issue. *** |