ProtoCom: Simulating open workloads ends with exceptions
Description
Simulating an open workloads basically works and stores all data correctly. Nonetheless, Exceptions are thrown due to closed streams.
This was tested for the Business Reporting System model and as a distributed RMI case. The Exceptions look like this:
16:08 INFO [Thread-2002]: Finished my scenario
16:08 INFO [main]: Storing results...
16:08 INFO [main]: ...Done!
Exception in thread "Thread-2004" java.lang.RuntimeException: Background List failed
at de.uka.ipd.sdq.sensorframework.storage.lists.BackgroundMemoryList.add(BackgroundMemoryList.java:86)
at java.util.AbstractList.add(AbstractList.java:108)
at de.uka.ipd.sdq.sensorframework.dao.file.entities.TimeSpanSensorAndMeasurement.addTimeSpan(TimeSpanSensorAndMeasurement.java:34)
at de.uka.ipd.sdq.sensorframework.dao.file.entities.ExperimentRunImpl.addTimeSpanMeasurement(ExperimentRunImpl.java:100)
at de.uka.ipd.sdq.prototype.framework.AbstractScenarioThread.takeScenarioMeasurement(AbstractScenarioThread.java:100)
at de.uka.ipd.sdq.prototype.framework.AbstractOpenScenarioThread$1.run(AbstractOpenScenarioThread.java:32)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.io.IOException: Stream Closed
at java.io.RandomAccessFile.seek(Native Method)
at de.uka.ipd.sdq.sensorframework.storage.lists.Chunk.<init>(Chunk.java:33)
at de.uka.ipd.sdq.sensorframework.storage.lists.BackgroundMemoryList.ensureCorrectChunkLoaded(BackgroundMemoryList.java:111)
at de.uka.ipd.sdq.sensorframework.storage.lists.BackgroundMemoryList.add(BackgroundMemoryList.java:78)
... 6 more
Environment
Operating System: All
Platform: All
Activity
Should be fixed by now.