You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Steffen Pingel (JIRA)" <ji...@apache.org> on 2007/06/11 17:11:26 UTC

[jira] Updated: (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 ]

Steffen Pingel updated HTTPCORE-80:
-----------------------------------

    Attachment: httpcore-set-eol-flag.patch

Fix and test.

> 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
>         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