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 187824 - com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 4-byte UTF-8 sequence.
Summary: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: In...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 183756 187834 193983 219034 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-19 09:36 UTC by rostik_netbins
Modified: 2012-09-29 08:41 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 170802


Attachments
stacktrace (3.30 KB, text/plain)
2010-06-19 09:36 UTC, rostik_netbins
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rostik_netbins 2010-06-19 09:36:37 UTC
This bug was originally marked as duplicate of bug 183756, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 6.9 (Build 201006101454)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows 7

User Comments:
rostik_netbins: just editing file

GUEST: When I try to edit css-Files.

GUEST: Typing with non english keyboard

GUEST: Editing CSS-File

GUEST: edit the css




Stacktrace: 
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 4-byte UTF-8 sequence.
   at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:0)
   at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:0)
   at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:0)
   at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.peekChar(XMLEntityScanner.java:0)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:0)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:0)
Comment 1 rostik_netbins 2010-06-19 09:36:40 UTC
Created attachment 100241 [details]
stacktrace
Comment 2 Marek Fukala 2010-06-22 08:52:01 UTC
rostik, if the issue is still reproducible on the css file, can you please attach it to this issue + let me know what is you project/default system encoding.

The source of the problem is quite clear, some of the file characters comprises an invalid UTF-8 sequence and the FlyingSource previewer logs the exception so it pops up as user exception.
Comment 3 Marek Fukala 2010-06-22 08:54:46 UTC
*** Bug 187834 has been marked as a duplicate of this bug. ***
Comment 4 Marek Fukala 2010-12-16 11:26:44 UTC
fixed in web-main#e14c57fad918
Comment 5 Quality Engineering 2010-12-17 06:19:20 UTC
Integrated into 'main-golden', will be available in build *201012170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e14c57fad918
User: Marek Fukala <mfukala@netbeans.org>
Log: #187824 - com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 4-byte UTF-8 sequence. Also updating FLYING SAUCER library to R8 final version
Comment 6 Marek Fukala 2011-01-05 10:25:35 UTC
*** Bug 193983 has been marked as a duplicate of this bug. ***
Comment 7 Marek Fukala 2011-03-04 13:39:35 UTC
*** Bug 183756 has been marked as a duplicate of this bug. ***
Comment 8 Marian Mirilovic 2012-09-29 08:41:41 UTC
*** Bug 219034 has been marked as a duplicate of this bug. ***