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

Potential ConcurrentModificationException in MainHelper.setPropertiesOnTarget(MainHelper.java:323)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 4.8.1
    • None
    • camel-main
    • None
    • Unknown

    Description

      revealed sometimes by test org.apache.camel.main.MainThreadPoolTest.testCustomThreadPool :

      java.util.ConcurrentModificationException
      	at java.base/java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1521)
      	at java.base/java.util.TreeMap$KeyIterator.next(TreeMap.java:1575)
      	at org.apache.camel.main.MainHelper.setPropertiesOnTarget(MainHelper.java:323)
      	at org.apache.camel.main.MainSupportModelConfigurer.setThreadPoolProperties(MainSupportModelConfigurer.java:173)
      	at org.apache.camel.main.BaseMainSupport.doConfigureCamelContextFromMainConfiguration(BaseMainSupport.java:1348)
      	at org.apache.camel.main.BaseMainSupport.autoconfigure(BaseMainSupport.java:559)
      	at org.apache.camel.main.MainSupport.autoconfigure(MainSupport.java:79)
      	at org.apache.camel.main.BaseMainSupport.postProcessCamelContext(BaseMainSupport.java:885)
      	at org.apache.camel.main.MainSupport.initCamelContext(MainSupport.java:346)
      	at org.apache.camel.main.Main.doInit(Main.java:133)
      	at org.apache.camel.support.service.BaseService.init(BaseService.java:85)
      	at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
      	at org.apache.camel.main.MainThreadPoolTest.testCustomThreadPool(MainThreadPoolTest.java:64)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
      	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
      	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
      	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
      	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            apupier Aurélien Pupier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment