Can anyone explain why this gives an IllegalMonitorException + how to fix it?

Printable View