You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2013/06/01 00:14:20 UTC
[jira] [Commented] (HTTPCORE-164) DefaultConnectingIOReactor throws
ConcurrentModificationException in processEvents() method
[ https://issues.apache.org/jira/browse/HTTPCORE-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13671852#comment-13671852 ]
Oleg Kalnichevski commented on HTTPCORE-164:
--------------------------------------------
Frédéric,
I took a brief look at the stack trace and one thing that strikes as really odd is that your code attempts to initiate new requests form _inside_ ResponseConsumer#failed event. New connection requests can also fail. As a result you end up with multiple recursive calls to #lease and #processPendingRequests method. I suspect this is what may lead to ConcurrentModificationException as the same collection gets iterated recursively. I will further investigate the problem but I do think you should reconsider this approach. In any way this is not the same issue as the one originally reported. Could you please raise a new JIRA?
Oleg
> DefaultConnectingIOReactor throws ConcurrentModificationException in processEvents() method
> -------------------------------------------------------------------------------------------
>
> Key: HTTPCORE-164
> URL: https://issues.apache.org/jira/browse/HTTPCORE-164
> Project: HttpComponents HttpCore
> Issue Type: Bug
> Components: HttpCore NIO
> Affects Versions: 4.0-beta2
> Environment: Win XP
> JDK 1.6.0-b105
> httpcore-nio-beta2-20080510.140437-10.jar
> httpcore-beta2-20080510.140437-10.jar
> Reporter: Denis Rogov
> Priority: Critical
>
> Using httpcomponents nio to serve as http client.
> Occasionally getting exception that stops reactor and therefore all engine work:
> Exception in thread "IO Reactor Execution Thread" java.util.ConcurrentModificationException
> at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
> at java.util.HashMap$KeyIterator.next(HashMap.java:827)
> at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:93)
> at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:162)
> at <...>HttpManagerApacheAsyncEngineImpl$1.run(HttpManagerApacheAsyncEngineImpl.java:294)
> at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org