You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Anders Wallgren (JIRA)" <ji...@apache.org> on 2007/03/09 22:48:09 UTC
[jira] Commented: (HTTPCORE-56) Worker thread exits with
CancelledKeyException
[ https://issues.apache.org/jira/browse/HTTPCORE-56?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12479727 ]
Anders Wallgren commented on HTTPCORE-56:
-----------------------------------------
FYI, in my unit test, I create a request, wait for the connection to be establish, then immediately issue a cancel.
> Worker thread exits with CancelledKeyException
> ----------------------------------------------
>
> Key: HTTPCORE-56
> URL: https://issues.apache.org/jira/browse/HTTPCORE-56
> Project: HttpComponents Core
> Issue Type: Bug
> Components: HttpCore NIO
> Environment: Windows Vista
> Reporter: Anders Wallgren
>
> Seeing this during unit testing:
> 2007-03-09T13:33:34.326 | ERROR | Agent-1 | | CommanderThread | Uncaught exception in Thread[Agent-1,5,main]: java.nio.channels.CancelledKeyException
> java.nio.channels.CancelledKeyException
> at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:55)
> at sun.nio.ch.SelectionKeyImpl.interestOps(SelectionKeyImpl.java:59)
> at org.apache.http.impl.nio.reactor.IOSessionImpl.setEvent(IOSessionImpl.java:110)
> at org.apache.http.impl.nio.DefaultNHttpClientConnection.submitRequest(DefaultNHttpClientConnection.java:191)
> at org.apache.http.nio.protocol.BufferingHttpClientHandler.submitRequest(BufferingHttpClientHandler.java:351)
> at org.apache.http.nio.protocol.BufferingHttpClientHandler.requestReady(BufferingHttpClientHandler.java:178)
> at org.apache.http.nio.protocol.BufferingHttpClientHandler.connected(BufferingHttpClientHandler.java:144)
> at org.apache.http.impl.nio.DefaultClientIOEventDispatch.connected(DefaultClientIOEventDispatch.java:67)
> at org.apache.http.impl.nio.reactor.AbstractIOReactor.processNewChannels(AbstractIOReactor.java:210)
> at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:124)
> at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:153)
> at java.lang.Thread.run(Thread.java:619)
> at com.electriccloud.util.queue.CommanderThread.run(CommanderThread.java:78)
--
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