cling 2.0 SNAPSHOT: Router error on shutdown

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

cling 2.0 SNAPSHOT: Router error on shutdown

bergstr
its back. Happens only very rarely, however. Comments?

java.lang.RuntimeException: Router error on shutdown: org.fourthline.cling.transport.RouterException: Router wasn't available exclusively after waiting 15000ms, lock failed: WriteLock
        at org.fourthline.cling.UpnpServiceImpl.shutdownRouter(UpnpServiceImpl.java:168)
        at org.fourthline.cling.UpnpServiceImpl$1.run(UpnpServiceImpl.java:143)
        at java.lang.Thread.run(Thread.java:856)
Caused by: org.fourthline.cling.transport.RouterException: Router wasn't available exclusively after waiting 15000ms, lock failed: WriteLock
        at org.fourthline.cling.transport.RouterImpl.lock(RouterImpl.java:497)
        at org.fourthline.cling.transport.RouterImpl.lock(RouterImpl.java:510)
        at org.fourthline.cling.android.AndroidRouter.disable(AndroidRouter.java:104)
        at org.fourthline.cling.transport.RouterImpl.shutdown(RouterImpl.java:199)
        at org.fourthline.cling.android.AndroidRouter.shutdown(AndroidRouter.java:79)
        at org.fourthline.cling.UpnpServiceImpl.shutdownRouter(UpnpServiceImpl.java:162)
        ... 2 more
Reply | Threaded
Open this post in threaded view
|

Re: cling 2.0 SNAPSHOT: Router error on shutdown

Draško
Any news what could cause this lock?  Is the following exception somehow related to it?

java.lang.RuntimeException: Fatal error while executing protocol 'ReceivingSearch': org.fourthline.cling.transport.RouterException: Router wasn't available exclusively after waiting 15000ms, lock failed: ReadLock
        at org.fourthline.cling.protocol.ReceivingAsync.run(ReceivingAsync.java:77)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
        at java.lang.Thread.run(Thread.java:856)
Caused by: org.fourthline.cling.transport.RouterException: Router wasn't available exclusively after waiting 15000ms, lock failed: ReadLock
        at org.fourthline.cling.transport.RouterImpl.lock(RouterImpl.java:497)
        at org.fourthline.cling.transport.RouterImpl.lock(RouterImpl.java:510)
        at org.fourthline.cling.transport.RouterImpl.getActiveStreamServers(RouterImpl.java:218)
        at org.fourthline.cling.protocol.async.ReceivingSearch.execute(ReceivingSearch.java:94)
        at org.fourthline.cling.protocol.ReceivingAsync.run(ReceivingAsync.java:71)
        ... 3 more