Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3616

ConcurrentModificationException in AbstractRuleBase.removePackage

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • 5.4.0.Final, 5.5.0.Beta1
    • 5.5.0.Beta1
    • drools-core
    • None

    Description

      At AbstractRuleBase.removePackage:

      //and now the rule flows
      final Map flows = pkg.getRuleFlows();
      for (final Iterator iter = flows.keySet().iterator(); iter.hasNext();) {
           removeProcess( (String) iter.next() );
      }
      

      At AbstractRuleBase.removeProcess

      this.pkgs.get(process.getPackageName()).removeRuleFlow(id);
      

      removeProcess removes an object from the Map referenced by the flows variable in removePackage. Since the iterator is based on this variable it leads to a ConcurrentModificationException at iter.next().

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            lstampf Lukas Stampf (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: