ConcurrentModificationException at DefaultCamelContext.getRouteDefinition() ---------------------------------------------------------------------------
Key: CAMEL-4021 URL: https://issues.apache.org/jira/browse/CAMEL-4021 Project: Camel Issue Type: Bug Components: camel-core Affects Versions: 2.7.1 Reporter: Arkadi Shishlov Priority: Minor Similar to CAMEL-3493 there is also a race in getRouteDefinition() {noformat} java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)[:1.6.0_21] at java.util.AbstractList$Itr.next(AbstractList.java:343)[:1.6.0_21] at org.apache.camel.impl.DefaultCamelContext.getRouteDefinition(DefaultCamelContext.java:1098)[cih-core-1.0.jar:1.0] at com.tieto.cih.core.main.GatewayRouteSetup.startGatewayRoutes(GatewayRouteSetup.java:86)[cih-core-1.0.jar:1.0] at com.tieto.cih.core.main.GatewayRouteSetup.process(GatewayRouteSetup.java:73)[cih-core-1.0.jar:1.0] {noformat} As route count could be quite large, it would be nice to have them stored in synchronized map or something like that instead of list. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira