Join GitHub today
IllegalMonitorException thrown by glu script #43
As reported in the forum: http://glu.977617.n3.nabble.com/Changing-object-properties-without-reflecting-it-in-ZooKeeper-td2830286.html , in some cases you get an IllegalMonitorException which is masking the real exception.
This is a rather puzzling issue: to reproduce the problem I changed the ScriptState.changeState call to do the following:
This is the stack trace I get:
I do not understand why although I am throwing Exception, the type ends up being IllegalMonitorException as it does not happen while calling wait or notify. This is really quite odd.
In the end what needs to happen is to make sure that the code does not throw any exception which I think is the case now.