You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2007/06/11 18:00:30 UTC
[jira] Resolved: (HTTPCORE-80) IllegalStateException in
SessionOutputBuffer when line buffer size equals size of input
[ https://issues.apache.org/jira/browse/HTTPCORE-80?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski resolved HTTPCORE-80.
---------------------------------------
Resolution: Fixed
Fix Version/s: 4.0-alpha5
Uuh, this is a nasty one! My bad.
Many thanks for contributing the fix, Steffen. Patch checked in
Oleg
> IllegalStateException in SessionOutputBuffer when line buffer size equals size of input
> ---------------------------------------------------------------------------------------
>
> Key: HTTPCORE-80
> URL: https://issues.apache.org/jira/browse/HTTPCORE-80
> Project: HttpComponents Core
> Issue Type: Bug
> Components: HttpCore NIO
> Affects Versions: 4.0-alpha4
> Reporter: Steffen Pingel
> Fix For: 4.0-alpha5
>
> Attachments: httpcore-set-eol-flag.patch
>
>
> This example triggers the exception:
> String s1 = "abcde";
> SessionOutputBuffer outbuf = new SessionOutputBuffer(1024, 5);
> outbuf.writeLine(s1);
> Stack trace:
> java.lang.IllegalStateException: Current state = CODING, new state = FLUSHED
> at java.nio.charset.CharsetEncoder.throwIllegalStateException(Unknown Source)
> at java.nio.charset.CharsetEncoder.flush(Unknown Source)
> at org.apache.http.impl.nio.reactor.SessionOutputBuffer.writeLine(SessionOutputBuffer.java:151)
> at org.apache.http.impl.nio.DefaultNHttpServerConnection.submitResponse(DefaultNHttpServerConnection.java:184)
> [...]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org