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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Release Branch 18.12, Trunk
    • Release Branch 18.12
    • framework
    • None

    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

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

          People

            mthl Mathieu Lirzin (Inactive)
            mthl Mathieu Lirzin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment