Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-4021

ConcurrentModificationException at DefaultCamelContext.getRouteDefinition()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7.1
    • 2.7.3, 2.8.0
    • camel-core
    • None

    Description

      Similar to CAMEL-3493 there is also a race in getRouteDefinition()

      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]
      

      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.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            arkadi Arkadi Shishlov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: