Project

General

Profile

Actions

Bug #4506

closed

Exception is thrown during workflow execution

Added by Michal Owsiak about 15 years ago. Updated almost 15 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
core
Target version:
Start date:
10/27/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4506

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)

Actions

Also available in: Atom PDF