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

ConcurrentModificiationException with <depends-on>

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

          Activity

            People

            • Assignee:
              mthl Mathieu Lirzin (Inactive)
              Reporter:
              mthl Mathieu Lirzin (Inactive)

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment