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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Apache Bugzilla by jake.happs, 1 year ago
via redhat.com by Unknown author, 1 year ago
via ca.com by Unknown author, 1 year ago
Current state = FLUSHED, new state = CODING_END
via Google Groups by Joachim Arrasz, 1 month ago
Current state = FLUSHED, new state =
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:941)
at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:537)
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.FilterWriter.close(FilterWriter.java:92)
at org.apache.log4j.FileAppender.closeFile(FileAppender.java:183)
at org.apache.log4j.FileAppender.reset(FileAppender.java:338)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:283)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 8 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.