[jira] [Closed] (OFBIZ-11258) ConcurrentModificiationException with <depends-on>

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Closed] (OFBIZ-11258) ConcurrentModificiationException with <depends-on>

Daniel Watford (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-11258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mathieu Lirzin closed OFBIZ-11258.
----------------------------------
    Fix Version/s: Release Branch 18.12
                   Upcoming Branch
       Resolution: Fixed

Committed  [^OFBIZ-11258_Fix.patch] in revision 1868665 on trunk and revision 1868666 on release18.12.

> ConcurrentModificiationException with <depends-on>
> --------------------------------------------------
>
>                 Key: OFBIZ-11258
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11258
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk, Release Branch 18.12
>            Reporter: Mathieu Lirzin
>            Assignee: Mathieu Lirzin
>            Priority: Major
>             Fix For: Upcoming Branch, Release Branch 18.12
>
>         Attachments: OFBIZ-11258_Fix.patch, OFBIZ-11258_Reproduce_bug.patch
>
>
> The {{<depends-on>}} feature is not working properly because it can lead to {{ConcurrentModificiationException}}
> {code}
> 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)
> {code}
> Apply  [^OFBIZ-11258_Reproduce_bug.patch] and execute {{gradlew run}} to see the bug.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)