[ 
https://issues.apache.org/jira/browse/HTTPCORE-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507553
 ] 

Roland Weber commented on HTTPCORE-83:
--------------------------------------

Hi Oleg,

I guess it is expected that once in a while, an exception is printed to stdout 
but the testcases still pass?

cheers,
  Roland

java.io.IOException: Connection reset by peer
     [java]     at sun.nio.ch.FileDispatcher.read0(Native Method)
     [java]     at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
     [java]     at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
     [java]     at sun.nio.ch.IOUtil.read(IOUtil.java:206)
     [java]     at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)
     [java]     at 
org.apache.http.impl.nio.reactor.IOSessionImpl$ChannelAdaptor.read(IOSessionImpl.java:251)
     [java]     at 
org.apache.http.impl.nio.reactor.SessionInputBuffer.fill(SessionInputBuffer.java:82)
     [java]     at 
org.apache.http.impl.nio.codecs.HttpMessageParser.fillBuffer(HttpMessageParser.java:95)
     [java]     at 
org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(DefaultNHttpServerConnection.java:90)
     [java]     at 
org.apache.http.impl.nio.DefaultServerIOEventDispatch.inputReady(DefaultServerIOEventDispatch.java:94)
     [java]     at 
org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:68)
     [java]     at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:160)
     [java]     at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:145)
     [java]     at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:127)
     [java]     at 
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:159)
     [java]     at java.lang.Thread.run(Thread.java:595)


> Test failures in SVN head
> -------------------------
>
>                 Key: HTTPCORE-83
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-83
>             Project: HttpComponents Core
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 4.0-alpha5
>         Environment: Dual core windows vista
>            Reporter: Anders Wallgren
>            Priority: Blocker
>             Fix For: 4.0-alpha5
>
>         Attachments: throttling-service-bug.patch
>
>
> In the current svn head (revision 547953), I'm getting these test failures:
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.http.nio.TestAll
> Exception in thread "worker-thread-28" java.lang.IllegalStateException: 
> Buffer already closed for writing
>         at 
> org.apache.http.nio.util.SharedOutputBuffer.write(SharedOutputBuffer.java:112)
>         at 
> org.apache.http.nio.entity.ContentOutputStream.write(ContentOutputStream.java:67)
>         at 
> org.apache.http.entity.ByteArrayEntity.writeTo(ByteArrayEntity.java:76)
>         at 
> org.apache.http.nio.protocol.ThrottlingHttpServiceHandler.handleRequest(ThrottlingHttpServiceHandler.java:578)
>         at 
> org.apache.http.nio.protocol.ThrottlingHttpServiceHandler.access$000(ThrottlingHttpServiceHandler.java:94)
>         at 
> org.apache.http.nio.protocol.ThrottlingHttpServiceHandler$1.run(ThrottlingHttpServiceHandler.java:274)
>         at 
> org.apache.http.nio.mockup.SimpleThreadPoolExecutor$WorkerThread.run(SimpleThreadPoolExecutor.java:204)
> Exception in thread "worker-thread-34" java.lang.IllegalStateException: 
> Buffer already closed for writing
>         at 
> org.apache.http.nio.util.SharedOutputBuffer.write(SharedOutputBuffer.java:112)
>         at 
> org.apache.http.nio.entity.ContentOutputStream.write(ContentOutputStream.java:67)
>         at 
> org.apache.http.entity.ByteArrayEntity.writeTo(ByteArrayEntity.java:76)
>         at 
> org.apache.http.nio.protocol.ThrottlingHttpServiceHandler.handleRequest(ThrottlingHttpServiceHandler.java:578)
>         at 
> org.apache.http.nio.protocol.ThrottlingHttpServiceHandler.access$000(ThrottlingHttpServiceHandler.java:94)
>         at 
> org.apache.http.nio.protocol.ThrottlingHttpServiceHandler$1.run(ThrottlingHttpServiceHandler.java:274)
>         at 
> org.apache.http.nio.mockup.SimpleThreadPoolExecutor$WorkerThread.run(SimpleThreadPoolExecutor.java:204)
> Exception in thread "worker-thread-39" java.lang.IllegalStateException: 
> Buffer already closed for writing
>         at 
> org.apache.http.nio.util.SharedOutputBuffer.write(SharedOutputBuffer.java:112)
>         at 
> org.apache.http.nio.entity.ContentOutputStream.write(ContentOutputStream.java:67)
>         at 
> org.apache.http.entity.ByteArrayEntity.writeTo(ByteArrayEntity.java:76)
>         at 
> org.apache.http.nio.protocol.ThrottlingHttpServiceHandler.handleRequest(ThrottlingHttpServiceHandler.java:578)
>         at 
> org.apache.http.nio.protocol.ThrottlingHttpServiceHandler.access$000(ThrottlingHttpServiceHandler.java:94)
>         at 
> org.apache.http.nio.protocol.ThrottlingHttpServiceHandler$1.run(ThrottlingHttpServiceHandler.java:274)
>         at 
> org.apache.http.nio.mockup.SimpleThreadPoolExecutor$WorkerThread.run(SimpleThreadPoolExecutor.java:204)
> Tests run: 100, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 11.224 sec 
> <<< FAILURE!
> Results :
> Failed tests:
>   testSimpleHttpGets(org.apache.http.nio.protocol.TestNIOHttp)
>   
> testSimpleHttpPostsWithContentLength(org.apache.http.nio.protocol.TestNIOHttp)
>   testSimpleHttpPostsHTTP10(org.apache.http.nio.protocol.TestNIOHttp)
>   testSimpleHttpHeads(org.apache.http.nio.protocol.TestNIOHttp)
> Tests run: 100, Failures: 4, Errors: 0, Skipped: 0

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