hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCORE-31) ConcurrentModificationException thrown by DefaultConnectingIOReactor.processTimeouts() when 2 worker threads are used
Date Tue, 30 Jan 2007 18:46:33 GMT

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

Asankha C. Perera commented on HTTPCORE-31:
-------------------------------------------

Oleg

The latest snapshots have indeed seem to have fixed this... 

many thanks
asankha

> ConcurrentModificationException thrown by DefaultConnectingIOReactor.processTimeouts()
when 2 worker threads are used
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCORE-31
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-31
>             Project: HttpComponents Core
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 4.0-alpha4
>            Reporter: Asankha C. Perera
>         Assigned To: Oleg Kalnichevski
>             Fix For: 4.0-alpha4
>
>
> I am seeing a ConcurrentModificationException thrown by DefaultConnectingIOReactor.processTimeouts()
when a load test is being performed. The Javadocs for the Selector.keys() states that the
returned Set is not directly modifiable, but a key is removed only after it has been cancelled
and its channel deregistered. I have started the DefaultConnectingIOReactor with two worker
nodes
> Exception in thread "HttpCoreNIOSender" java.util.ConcurrentModificationException
>        at java.util.HashMap$HashIterator.nextEntry(HashMap.java:841)
>        at java.util.HashMap$KeyIterator.next(HashMap.java:877)
>        at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)
>        at org.apache.http.nio.impl.reactor.DefaultConnectingIOReactor.processTimeouts(DefaultConnectingIOReactor.java:151)
>        at org.apache.http.nio.impl.reactor.DefaultConnectingIOReactor.execute(DefaultConnectingIOReactor.java:92)
>        at org.apache.axis2.transport.nhttp.HttpCoreNIOSender.executeClientEngine(HttpCoreNIOSender.java:103)
>        at org.apache.axis2.transport.nhttp.HttpCoreNIOSender.access$000(HttpCoreNIOSender.java:57)
>        at org.apache.axis2.transport.nhttp.HttpCoreNIOSender$1.run(HttpCoreNIOSender.java:80)
>        at java.lang.Thread.run(Thread.java:595)

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