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 215133 - com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
Summary: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: In...
Status: RESOLVED WORKSFORME
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-03 16:32 UTC by abhishek90
Modified: 2012-11-30 12:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 150527


Attachments
stacktrace (2.93 KB, text/plain)
2012-07-03 16:32 UTC, abhishek90
Details

Note You need to log in before you can comment on or make changes to this bug.
Description abhishek90 2012-07-03 16:32:38 UTC
Build: NetBeans IDE 7.1.2 (Build 201204101705)
VM: Java HotSpot(TM) Client VM, 22.0-b10, Java(TM) SE Runtime Environment, 1.7.0_02-b13
OS: Windows 7

User Comments:
GUEST: Debug the aplication

abhishek90: Running Apache Tomcat Server version 7.0.28




Stacktrace: 
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
   at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:687)
   at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:557)
   at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1750)
   at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(XMLEntityScanner.java:1249)
   at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanComment(XMLScanner.java:717)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanComment(XMLDocumentFragmentScannerImpl.java:999)
Comment 1 abhishek90 2012-07-03 16:32:42 UTC
Created attachment 121704 [details]
stacktrace
Comment 2 Petr Hejl 2012-11-30 11:28:41 UTC
This report is complete mess. It contains the reports across the whole IDE. The common thing is it uses XML infrastructure directly or indirectly for parsing.
Comment 3 Petr Hejl 2012-11-30 11:33:55 UTC
As almost every report is from Windows, could it be BOM related?
Comment 4 Svata Dedic 2012-11-30 12:35:45 UTC
I think it's unlikely. tomcat-users.xml ship with <?xml encoding="UTF-8"?> directive and when we save the file (after adding an user) UTF-8 is used as well. It seem most probably as damaged file in tomcat installation, e.g. manually written to

As for the report, only the last exception comes from +- recent NB version, the other reports are rather outdated (2009).

Please try running NB again, if the error happens repetedly, reopen the defect. Please check whether your tomcat-users.xml is OK; attach the file here, please.