Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11258

ConcurrentModificiationException with <depends-on>

    XMLWordPrintableJSON

    Details

      Description

      The <depends-on> feature is not working properly because it can lead to ConcurrentModificiationException

      2019-10-20 18:17:37,294 |main                 |ComponentContainer            |I| Resolved : minilang Dependency for Component common
      Exception in thread "main" java.util.ConcurrentModificationException
      	at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1490)
      	at java.base/java.util.HashMap$EntryIterator.next(HashMap.java:1523)
      	at java.base/java.util.HashMap$EntryIterator.next(HashMap.java:1521)
      	at org.apache.ofbiz.base.container.ComponentContainer.loadComponentWithDependency(ComponentContainer.java:235)
      	at org.apache.ofbiz.base.container.ComponentContainer.loadComponentsInDirectory(ComponentContainer.java:220)
      	at org.apache.ofbiz.base.container.ComponentContainer.loadComponentDirectory(ComponentContainer.java:158)
      	at org.apache.ofbiz.base.container.ComponentContainer.loadComponent(ComponentContainer.java:130)
      	at org.apache.ofbiz.base.container.ComponentContainer.init(ComponentContainer.java:77)
      	at org.apache.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:67)
      	at org.apache.ofbiz.base.start.StartupControlPanel.loadContainers(StartupControlPanel.java:160)
      	at org.apache.ofbiz.base.start.StartupControlPanel.start(StartupControlPanel.java:71)
      	at org.apache.ofbiz.base.start.Start.main(Start.java:90)
      
      

      Apply OFBIZ-11258_Reproduce_bug.patch and execute gradlew run to see the bug.

        Attachments

        1. OFBIZ-11258_Reproduce_bug.patch
          17 kB
          Mathieu Lirzin
        2. OFBIZ-11258_Fix.patch
          1 kB
          Mathieu Lirzin

          Issue Links

            Activity

              People

              • Assignee:
                mthl Mathieu Lirzin
                Reporter:
                mthl Mathieu Lirzin
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: