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 219467 - IllegalStateException: Current state = FLUSHED, new state = CODING_END
Summary: IllegalStateException: Current state = FLUSHED, new state = CODING_END
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: All All
: P1 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
: 219889 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-03 18:05 UTC by Jesse Glick
Modified: 2013-02-26 03:22 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 192910


Attachments
stacktrace (3.11 KB, text/plain)
2012-10-03 18:05 UTC, Jesse Glick
Details
stacktrace (3.11 KB, text/plain)
2012-10-16 18:29 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2012-10-03 18:05:50 UTC
Build: NetBeans IDE Dev (Build 20121002-931556ce6d80)
VM: Java HotSpot(TM) Client VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b10
OS: Linux

User Comments:
GUEST: I had a lot of files opened. The exception ocurred when I want to save a XML file.

jglick: (c) character in an XML file with no explicit encoding; could not save file.
In a Maven project set to use UTF-8 source encoding. After adding <?xml version="1.0" encoding="UTF-8"?> to top of file I was able to save it with the © char.




Stacktrace: 
java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END
   at java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:968)
   at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:554)
   at org.netbeans.api.queries.FileEncodingQuery$ProxyCharset$ProxyEncoder.implFlush(FileEncodingQuery.java:432)
   at java.nio.charset.CharsetEncoder.flush(CharsetEncoder.java:650)
   at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:786)
   at java.nio.charset.CharsetEncoder.canEncode(CharsetEncoder.java:892)
Comment 1 Jesse Glick 2012-10-03 18:05:57 UTC
Created attachment 125325 [details]
stacktrace
Comment 2 Jesse Glick 2012-10-16 18:29:21 UTC
Created attachment 126033 [details]
stacktrace
Comment 3 Exceptions Reporter 2012-10-16 18:29:44 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=192910
Comment 4 Ondrej Vrabec 2012-11-06 16:08:55 UTC
*** Bug 219889 has been marked as a duplicate of this bug. ***
Comment 5 Exceptions Reporter 2013-02-17 18:46:51 UTC
This bug already has 100 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=192910
Comment 6 Tomas Danek 2013-02-18 11:40:10 UTC
Tondo, please evaluate.
Comment 7 Tomas Danek 2013-02-18 12:35:54 UTC
I am not able to reproduce in 7.3 fcs candidate build (and I don't see any report newer that 7.3 Beta); when I try to save xml file (created as a non project file via favorites) containing (c) char, information dialog appears with possibility to fix this automatically by adding encoding='UTF-8' into xml declaration.

Svato, this fixed in 7.3 timeframe, right?
Comment 8 Tomas Danek 2013-02-18 16:03:55 UTC
Confirmed that there were fixes in this area that most likely fixed this (cannot reproduce in 7.3) - marking as FIXED.
Comment 9 Marian Mirilovic 2013-02-26 03:22:08 UTC
... correction : worksforme