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

ConcurrentModificationException in AbstractRuleBase.removePackage

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.5.0.Beta1
    • 5.4.0.Final, 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)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty