This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

dbal
dbal presents ...

2008/7/19

VisualPersistence01

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)

3800 views / 10 in the last 7 days

Tags: demo test

open in greenfoot
Your browser is ignoring the <APPLET> tag.
mjrb4mjrb4

2008/7/19

It's not normal and sounds like a bug in Greenfoot, possibly to do with the delay method - I've explained more in the forum.

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.