camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Newsham (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-3493) ConcurrentModificationException in DefaultCamelContext.removeRouteDefinitions()
Date Wed, 05 Jan 2011 01:14:47 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-3493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977572#action_12977572
] 

Jim Newsham commented on CAMEL-3493:
------------------------------------

We are also adding routes from multiple threads.  Although I haven't seen a problem yet, from
looking at the source code it looks like the same problem exists with addRouteDefinitions().

> ConcurrentModificationException in DefaultCamelContext.removeRouteDefinitions()
> -------------------------------------------------------------------------------
>
>                 Key: CAMEL-3493
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3493
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.5.0
>            Reporter: Jim Newsham
>
> I get the following exception in DefaultCamelContext.removeRouteDefinitions().  We are
removing route definitions from multiple threads.  I see synchronization in various other
methods, but not this one. 
> Caused by: java.util.ConcurrentModificationException
> 	at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
> 	at java.util.AbstractList$Itr.next(AbstractList.java:343)
> 	at java.util.AbstractCollection.removeAll(AbstractCollection.java:336)
> 	at org.apache.camel.impl.DefaultCamelContext.removeRouteDefinitions(DefaultCamelContext.java:588)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message