{"action":"created","issue":{"url":"https://api.github.com/repos/mrniko/redisson/issues/171","labels_url":"https://api.github.com/repos/mrniko/redisson/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/mrniko/redisson/issues/171/comments","events_url":"https://api.github.com/repos/mrniko/redisson/issues/171/events","html_url":"https://github.com/mrniko/redisson/issues/171","id":86228450,"number":171,"title":"Issue in locking on key in concurrency","user":{"login":"savanpatel","id":4772502,"avatar_url":"https://avatars.githubusercontent.com/u/4772502?v=3","gravatar_id":"","url":"https://api.github.com/users/savanpatel","html_url":"https://github.com/savanpatel","followers_url":"https://api.github.com/users/savanpatel/followers","following_url":"https://api.github.com/users/savanpatel/following{/other_user}","gists_url":"https://api.github.com/users/savanpatel/gists{/gist_id}","starred_url":"https://api.github.com/users/savanpatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/savanpatel/subscriptions","organizations_url":"https://api.github.com/users/savanpatel/orgs","repos_url":"https://api.github.com/users/savanpatel/repos","events_url":"https://api.github.com/users/savanpatel/events{/privacy}","received_events_url":"https://api.github.com/users/savanpatel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-08T15:42:40Z","updated_at":"2015-06-09T11:31:06Z","closed_at":"2015-06-09T08:14:39Z","body":"In my project, I have a servlet, that call a utility class.\r\nUtility class calls a wrapper class that  I have implemented over redisson lock.\r\nWrapper class holds RLock object for a thread and provides lock and unlock methods that call RLock's lock and unlock method\r\nBut while running a apache ab-test tool for concurrency, Following exception occurs.\r\nCan you tell me if I am missing something over here?\r\n\r\n\r\njava.lang.IllegalMonitorStateException: Attempt to unlock lock, not locked by current id: 286dad3d-dd4b-434e-bca7-30c35eec01eb thread-id: 158\r\n\tat org.redisson.RedissonLock$4.execute(RedissonLock.java:416)\r\n\tat org.redisson.RedissonLock$4.execute(RedissonLock.java:1)\r\n\tat org.redisson.connection.MasterSlaveConnectionManager.write(MasterSlaveConnectionManager.java:272)\r\n\tat org.redisson.connection.MasterSlaveConnectionManager.write(MasterSlaveConnectionManager.java:261)\r\n\tat org.redisson.RedissonLock.unlock(RedissonLock.java:402)\r\n\tat com.sokrati.redisClient.JedisConnection.unlock(JedisConnection.java:431)\r\n\tat com.sokrati.throttlingService.operations.RedisOperations.unlock(RedisOperations.java:112)\r\n\tat com.sokrati.throttlingService.utils.ThrottlerUtil.checkKeyBlocked(ThrottlerUtil.java:135)\r\n\tat com.sokrati.throttlingService.servlets.Throttler.fetch(Throttler.java:70)\r\n\tat sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat com.sokrati.restCommunicator.RestCommunicator.invokeServiceMethod(RestCommunicator.java:308)\r\n"},"comment":{"url":"https://api.github.com/repos/mrniko/redisson/issues/comments/110325869","html_url":"https://github.com/mrniko/redisson/issues/171#issuecomment-110325869","issue_url":"https://api.github.com/repos/mrniko/redisson/issues/171","id":110325869,"user":{"login":"savanpatel","id":4772502,"avatar_url":"https://avatars.githubusercontent.com/u/4772502?v=3","gravatar_id":"","url":"https://api.github.com/users/savanpatel","html_url":"https://github.com/savanpatel","followers_url":"https://api.github.com/users/savanpatel/followers","following_url":"https://api.github.com/users/savanpatel/following{/other_user}","gists_url":"https://api.github.com/users/savanpatel/gists{/gist_id}","starred_url":"https://api.github.com/users/savanpatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/savanpatel/subscriptions","organizations_url":"https://api.github.com/users/savanpatel/orgs","repos_url":"https://api.github.com/users/savanpatel/repos","events_url":"https://api.github.com/users/savanpatel/events{/privacy}","received_events_url":"https://api.github.com/users/savanpatel/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T11:31:06Z","updated_at":"2015-06-09T11:31:06Z","body":"I am unloking thread from same thread still the same exception happens"}}