IllegalMonitorStateException when shutdwon

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

IllegalMonitorStateException when shutdwon

Jose Luis Larraz
Sometimes when i shutdown the Android service i get this (is not very frequent but sometimes happen), i am looking for a solution but meanwhile i put here just to know if anyone has found a solution to this.

02-05 12:20:16.492: E/AndroidRuntime(5827): FATAL EXCEPTION: cling-26
02-05 12:20:16.492: E/AndroidRuntime(5827): java.lang.IllegalMonitorStateException: attempt to unlock read lock, not locked by current thread
02-05 12:20:16.492: E/AndroidRuntime(5827): at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.unmatchedUnlockException(ReentrantReadWriteLock.java:418)
02-05 12:20:16.492: E/AndroidRuntime(5827): at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryReleaseShared(ReentrantReadWriteLock.java:402)
02-05 12:20:16.492: E/AndroidRuntime(5827): at java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1319)
02-05 12:20:16.492: E/AndroidRuntime(5827): at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock(ReentrantReadWriteLock.java:854)
02-05 12:20:16.492: E/AndroidRuntime(5827): at org.fourthline.cling.transport.SwitchableRouterImpl.unlock(SwitchableRouterImpl.java:251)
02-05 12:20:16.492: E/AndroidRuntime(5827): at org.fourthline.cling.transport.SwitchableRouterImpl.getActiveStreamServers(SwitchableRouterImpl.java:175)
02-05 12:20:16.492: E/AndroidRuntime(5827): at org.fourthline.cling.protocol.async.ReceivingSearch.execute(ReceivingSearch.java:94)
02-05 12:20:16.492: E/AndroidRuntime(5827): at org.fourthline.cling.protocol.ReceivingAsync.run(ReceivingAsync.java:62)
02-05 12:20:16.492: E/AndroidRuntime(5827): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
02-05 12:20:16.492: E/AndroidRuntime(5827): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
02-05 12:20:16.492: E/AndroidRuntime(5827): at java.lang.Thread.run(Thread.java:856)
Reply | Threaded
Open this post in threaded view
|

Re: IllegalMonitorStateException when shutdwon

Draško
Are you still using alpha1 or pulled the latest from the github?
Reply | Threaded
Open this post in threaded view
|

Re: IllegalMonitorStateException when shutdwon

Jose Luis Larraz
the saturday version in github
Reply | Threaded
Open this post in threaded view
|

Re: IllegalMonitorStateException when shutdwon

Christian Bauer
Administrator
In reply to this post by Jose Luis Larraz
Reply | Threaded
Open this post in threaded view
|

Re: IllegalMonitorStateException when shutdwon

Jose Luis Larraz
Thanks