Bug #4506
closedException is thrown during workflow execution
0%
Description
Within PN like workflow it seems that one thread iterates through the hashmap while other one modifies the data of the hashmap. Maybe Hashtable should be used here?
Or external synchronization should be used?
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:810)
at java.util.HashMap$KeyIterator.next(HashMap.java:845)
at ptolemy.actor.process.ProcessDirector.stopFire(ProcessDirector.java:481)
at ptolemy.actor.CompositeActor.stopFire(CompositeActor.java:1375)
at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1184)
at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1651)
at ptolemy.vergil.basic.RunnableGraphController.managerStateChanged(RunnableGraphController.java:181)
at ptolemy.actor.Manager._notifyListenersOfStateChange(Manager.java:1363)
at ptolemy.actor.Manager._setState(Manager.java:1378)
at ptolemy.actor.Manager.wrapup(Manager.java:1270)
at ptolemy.actor.Manager.execute(Manager.java:365)
at ptolemy.actor.Manager.run(Manager.java:1071)
at ptolemy.actor.Manager$3.run(Manager.java:1112)