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 240502 - java.lang.IllegalArgumentException when opening a XML file with invalid UTF-encoding
Summary: java.lang.IllegalArgumentException when opening a XML file with invalid UTF-e...
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-15 15:58 UTC by markiewb
Modified: 2015-07-23 16:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2014-01-15 15:58:39 UTC
java.lang.IllegalArgumentException
	at java.nio.Buffer.position(Buffer.java:236)
	at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:600)
	at org.netbeans.api.queries.FileEncodingQuery$ProxyCharset$ProxyDecoder.decodeHead(FileEncodingQuery.java:258)
	at org.netbeans.api.queries.FileEncodingQuery$ProxyCharset$ProxyDecoder.decodeLoop(FileEncodingQuery.java:220)
	at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:561)
	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:317)
	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
	at java.io.InputStreamReader.read(InputStreamReader.java:184)
	at org.netbeans.modules.editor.lib2.document.ReadWriteUtils.read(ReadWriteUtils.java:71)
	at org.netbeans.editor.BaseDocument.read(BaseDocument.java:1441)
	at org.netbeans.editor.BaseKit.read(BaseKit.java:663)
	at org.openide.text.DataEditorSupport.loadFromStreamToKit(DataEditorSupport.java:490)
	at org.openide.text.DocumentOpenClose$DocumentLoad.atomicLockedRun(DocumentOpenClose.java:777)
	at org.openide.text.DocumentOpenClose$DocumentLoad.run(DocumentOpenClose.java:626)
	at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:321)
	at org.openide.text.NbDocument.runAtomic(NbDocument.java:436)
	at org.openide.text.DocumentOpenClose$DocumentLoad.run(DocumentOpenClose.java:666)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

Validating the XML results in "Ungültiges Byte 1 von 1-Byte-UTF-8-Sequenz. [21] "

Product Version: NetBeans IDE 8.0 Beta (Build 201401091443)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
User directory: C:\Users\markiewb\AppData\Roaming\NetBeans\8.0beta
Cache directory: C:\Users\markiewb\AppData\Local\NetBeans\Cache\8.0beta
Product Version = NetBeans IDE 8.0 Beta (Build 201401091443)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.45-b08