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


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to