java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via java.com by Unknown author, 1 year ago
via Google Groups by Joachim Arrasz, 3 months ago
Current state = FLUSHED, new state =
via ca.com by Unknown author, 1 year ago
Current state = FLUSHED, new state = CODING_END
via sun.com by Unknown author, 2 years ago
via java.com by Unknown author, 1 year ago
java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END
at java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:933)
at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529)
at sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEncoder.java:358)
at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:414)
at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:160)
at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
at java.io.PrintWriter.close(PrintWriter.java:137)
at undefined.test.main(test.java:10)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.