Bug #5172
closedExceptions are sometimes thrown during sensor workflow run
0%
Description
When running a sensor workflow (importing the localhost sensor simulator site), I will intermittently encounter one of three exceptions. I haven't checked, but I suspect that any sensor names given are not consistent between instances of an exception. Kepler will intercept the exception properly, and display an error message, stopping the workflow.
The exceptions are attached below:
--Exception 1 start--
ptolemy.kernel.util.InternalErrorException: Failed to compute port depth for .Unnamed1.sensor8.data
at ptolemy.actor.util.CausalityInterfaceForComposites._computeInputDepth(CausalityInterfaceForComposites.java:696)
at ptolemy.actor.util.CausalityInterfaceForComposites._computeOutputPortDepth(CausalityInterfaceForComposites.java:756)
at ptolemy.actor.util.CausalityInterfaceForComposites._computeInputDepth(CausalityInterfaceForComposites.java:692)
at ptolemy.actor.util.CausalityInterfaceForComposites._computeActorDepth(CausalityInterfaceForComposites.java:527)
at ptolemy.actor.util.CausalityInterfaceForComposites.getDepthOfPort(CausalityInterfaceForComposites.java:373)
at ptolemy.domains.de.kernel.DEDirector._getDepthOfIOPort(DEDirector.java:1582)
at ptolemy.domains.de.kernel.DEDirector._enqueueTriggerEvent(DEDirector.java:1541)
at ptolemy.domains.de.kernel.DEReceiver.put(DEReceiver.java:162)
at ptolemy.actor.AbstractReceiver.putToAll(AbstractReceiver.java:332)
at ptolemy.actor.IOPort.broadcast(IOPort.java:288)
at ptolemy.actor.TypedIOPort.broadcast(TypedIOPort.java:238)
at org.kepler.sensor.actor.Sensor.fire(Sensor.java:323)
at ptolemy.domains.de.kernel.DEDirector.fire(DEDirector.java:568)
at ptolemy.actor.CompositeActor.fire(CompositeActor.java:459)
at ptolemy.actor.Manager.iterate(Manager.java:749)
at ptolemy.actor.Manager.execute(Manager.java:351)
at ptolemy.actor.Manager.run(Manager.java:1164)
at ptolemy.actor.Manager$3.run(Manager.java:1217)
--Exception 1 stop--
--Exception 2 start--
ptolemy.kernel.util.InternalErrorException: Because:
Attempt to get depth of ioPort .Unnamed1.CR800.sensors that was not sorted.
at ptolemy.domains.de.kernel.DEReceiver.put(DEReceiver.java:165)
at ptolemy.actor.AbstractReceiver.putToAll(AbstractReceiver.java:332)
at ptolemy.actor.IOPort.broadcast(IOPort.java:288)
at ptolemy.actor.TypedIOPort.broadcast(TypedIOPort.java:238)
at org.kepler.sensor.actor.Sensor.fire(Sensor.java:323)
at ptolemy.domains.de.kernel.DEDirector.fire(DEDirector.java:568)
at ptolemy.actor.CompositeActor.fire(CompositeActor.java:459)
at ptolemy.actor.Manager.iterate(Manager.java:749)
at ptolemy.actor.Manager.execute(Manager.java:351)
at ptolemy.actor.Manager.run(Manager.java:1164)
at ptolemy.actor.Manager$3.run(Manager.java:1217)
Caused by: ptolemy.kernel.util.IllegalActionException: Attempt to get depth of ioPort .Unnamed1.CR800.sensors that was not sorted.
at ptolemy.actor.util.CausalityInterfaceForComposites.getDepthOfPort(CausalityInterfaceForComposites.java:379)
at ptolemy.domains.de.kernel.DEDirector._getDepthOfIOPort(DEDirector.java:1582)
at ptolemy.domains.de.kernel.DEDirector._enqueueTriggerEvent(DEDirector.java:1541)
at ptolemy.domains.de.kernel.DEReceiver.put(DEReceiver.java:162)
... 10 more
Caused by: ptolemy.kernel.util.IllegalActionException: Attempt to get depth of ioPort .Unnamed1.CR800.sensors that was not sorted.
at ptolemy.actor.util.CausalityInterfaceForComposites.getDepthOfPort(CausalityInterfaceForComposites.java:379)
at ptolemy.domains.de.kernel.DEDirector._getDepthOfIOPort(DEDirector.java:1582)
at ptolemy.domains.de.kernel.DEDirector._enqueueTriggerEvent(DEDirector.java:1541)
at ptolemy.domains.de.kernel.DEReceiver.put(DEReceiver.java:162)
at ptolemy.actor.AbstractReceiver.putToAll(AbstractReceiver.java:332)
at ptolemy.actor.IOPort.broadcast(IOPort.java:288)
at ptolemy.actor.TypedIOPort.broadcast(TypedIOPort.java:238)
at org.kepler.sensor.actor.Sensor.fire(Sensor.java:323)
at ptolemy.domains.de.kernel.DEDirector.fire(DEDirector.java:568)
at ptolemy.actor.CompositeActor.fire(CompositeActor.java:459)
at ptolemy.actor.Manager.iterate(Manager.java:749)
at ptolemy.actor.Manager.execute(Manager.java:351)
at ptolemy.actor.Manager.run(Manager.java:1164)
at ptolemy.actor.Manager$3.run(Manager.java:1217)
--Exception 2 stop--
--Exception 3 start--
java.util.ConcurrentModificationException
at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:617)
at java.util.LinkedList$ListItr.next(LinkedList.java:552)
at ptolemy.actor.util.CausalityInterfaceForComposites._computeInputDepth(CausalityInterfaceForComposites.java:669)
at ptolemy.actor.util.CausalityInterfaceForComposites._computeOutputPortDepth(CausalityInterfaceForComposites.java:756)
at ptolemy.actor.util.CausalityInterfaceForComposites._computeInputDepth(CausalityInterfaceForComposites.java:692)
at ptolemy.actor.util.CausalityInterfaceForComposites._computeActorDepth(CausalityInterfaceForComposites.java:527)
at ptolemy.actor.util.CausalityInterfaceForComposites.getDepthOfPort(CausalityInterfaceForComposites.java:373)
at ptolemy.domains.de.kernel.DEDirector._getDepthOfIOPort(DEDirector.java:1582)
at ptolemy.domains.de.kernel.DEDirector._enqueueTriggerEvent(DEDirector.java:1541)
at ptolemy.domains.de.kernel.DEReceiver.put(DEReceiver.java:162)
at ptolemy.actor.AbstractReceiver.putToAll(AbstractReceiver.java:332)
at ptolemy.actor.IOPort.broadcast(IOPort.java:288)
at ptolemy.actor.TypedIOPort.broadcast(TypedIOPort.java:238)
at org.kepler.sensor.actor.Sensor.fire(Sensor.java:323)
at ptolemy.domains.de.kernel.DEDirector.fire(DEDirector.java:568)
at ptolemy.actor.CompositeActor.fire(CompositeActor.java:459)
at ptolemy.actor.Manager.iterate(Manager.java:749)
at ptolemy.actor.Manager.execute(Manager.java:351)
at ptolemy.actor.Manager.run(Manager.java:1164)
at ptolemy.actor.Manager$3.run(Manager.java:1217)
--Exception 3 stop--