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.
Build: NetBeans IDE Dev (Build 20121102-e599cc9f2072) VM: Java HotSpot(TM) Client VM, 20.8-b03, Java(TM) SE Runtime Environment, 1.6.0_33-b03 OS: SunOS Stacktrace: java.lang.IllegalArgumentException at java.nio.Buffer.position(Buffer.java:216) at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:583) at org.netbeans.api.queries.FileEncodingQuery$ProxyCharset$ProxyDecoder.decodeLoop(FileEncodingQuery.java:210) at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:544) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:298) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
Created attachment 126976 [details] stacktrace
Created attachment 126985 [details] stacktrace
Created attachment 127002 [details] stacktrace
Created attachment 132619 [details] stacktrace
*** Bug 227433 has been marked as a duplicate of this bug. ***
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=194431
Fanis, please take this one.
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=194431
Created attachment 145347 [details] patch Only 5 of the reports do not come from TodoTaskScanner and none of them are from beta or dev builds. All the rest reports come from TodoTaskScanner. I am not sure what is the root of the issue but I guess is the way the buffer is read into from org.netbeans.api.queries.FileEncodingQuery$ProxyCharset$ProxyDecoder.decodeLoop I am attaching a fix. Honzo, if you are ok with it I will push the fix
Changeset: adae2c1c5e4c Author: Theofanis Oikonomou <theofanis@netbeans.org> Date: 2014-02-18 12:16 Message:
TodoTaskScanner handles the situation more gracefully now. The problem might still be present in org.netbeans.api.queries.FileEncodingQuery$ProxyCharset$ProxyDecoder.decodeLoop I guess...
Integrated into 'main-silver', will be available in build *201402190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/adae2c1c5e4c User: Theofanis Oikonomou <theofanis@netbeans.org> Log: Task #221324 - IllegalArgumentException at java.nio.Buffer.position