I am new to Terracotta, and I am trying to get a simple lock to work with no success - based on the docs I've tried doing:
ClusteringToolkit toolkit = new TerracottaClient("localhost:9510").getToolkit();
ReadWriteLock rwLock = toolkit.getReadWriteLock("foo");
Lock lock = rwLock.readLock();
With TC server up it connects successfully (I'm using no config file), but then when calling unlock() the following exception is thrown:
Exception in thread "main" java.lang.IllegalMonitorStateException
Also the client logs don't show anything special AFAICT.
Is there any configuration I need to make in order for this to run? I've also tried using a Terracotta EE server / jars but got the exact same message.