hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anders Wallgren (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (HTTPCORE-58) IllegalStateException after cancelling
Date Fri, 30 Mar 2007 19:45:25 GMT

     [ https://issues.apache.org/jira/browse/HTTPCORE-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Anders Wallgren reopened HTTPCORE-58:
-------------------------------------


This might be a different bug, but it happens under similar circumstances: I cancel a request
after it's been submitted, calling shutdown on the connection:

{code}
2007-03-30T03:57:53.152 | ERROR | Agent-2       |                                        
      | CommanderThread                | Uncaught exception in Thread[Agent-2,5,main]: java.lang.IllegalStateException:
Connection is closed
java.lang.IllegalStateException: Connection is closed
	at org.apache.http.impl.nio.NHttpConnectionBase.assertNotClosed(NHttpConnectionBase.java:201)
	at org.apache.http.impl.nio.DefaultNHttpClientConnection.submitRequest(DefaultNHttpClientConnection.java:166)
	at org.apache.http.nio.protocol.BufferingHttpClientHandler.submitRequest(BufferingHttpClientHandler.java:354)
	at org.apache.http.nio.protocol.BufferingHttpClientHandler.requestReady(BufferingHttpClientHandler.java:181)
	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:212)
	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)
{code}


> IllegalStateException after cancelling
> --------------------------------------
>
>                 Key: HTTPCORE-58
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-58
>             Project: HttpComponents Core
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 4.0-alpha4
>         Environment: Window Vista
>            Reporter: Anders Wallgren
>             Fix For: 4.0-alpha5
>
>
> Seeing this exception during tests when cancelling:
> 2007-03-14T18:04:39.600 | DEBUG | main          |                                   
           | AgentManager                   | startCommand: request[agent[localhost:62851],cancel-8]
> cancel
> 2007-03-14T18:04:39.603 | DEBUG | Agent-1       | cancel-8                          
           | AgentManager                   | initalizeContext: request[agent[localhost:62851],cancel-8]
> 2007-03-14T18:04:39.605 | DEBUG | Agent-1       | cancel-8                          
           | AgentManager                   | submitRequest: request[agent[localhost:62851],cancel-8,
connected]
> 2007-03-14T18:04:39.605 | DEBUG | main          |                                   
           | AgentRequest                   | Cancelling request[agent[localhost:62851],cancel-8,
connected] due to com.electriccloud.commander.agent.AgentPingException: testCancel
> 2007-03-14T18:04:39.608 | DEBUG | Agent-1       |                                   
           | CommanderThread                | Exiting Thread[Agent-1,5,main]
> 2007-03-14T18:04:39.611 | ERROR | Agent-1       |                                   
           | CommanderThread                | Uncaught exception in Thread[Agent-1,5,main]:
java.lang.IllegalStateException: Session request already completed
> java.lang.IllegalStateException: Session request already completed
>     at org.apache.http.impl.nio.reactor.SessionRequestImpl.completed(SessionRequestImpl.java:116)
>     at org.apache.http.impl.nio.reactor.AbstractIOReactor.processNewChannels(AbstractIOReactor.java:216)
>     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


Mime
View raw message