Report as inappropriate.
This simple scenario frequently throws the following exception and hangs
up the IDE when either the Pause button or the Reset button is clicked
while the scenario is running.
Once the exception is thrown, it is necessary to shut down and restart the
Greenfoot IDE to run the scenario again.
The scenario is being posted solely so that I can solicit information on the
forum as to whether or not this is normal, and if so, why?
Exception in thread "SimulationThread" java.lang.IllegalMonitorStateException
at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryRelease(ReentrantReadWriteLock.java:317)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1140)
at java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock(ReentrantReadWriteLock.java:992)
at greenfoot.core.Simulation.runOneLoop(Simulation.java:212)
at greenfoot.core.Simulation.run(Simulation.java:128)
Want to leave a comment? You must first log in.
No votes yet.
2008/7/19