Cling UPnP library for Android. Not seeing devices after shutdown and restart -


i using cling library android locate , control other mobile devices in wifi network. have downloaded , imported (in eclipse) cling browser , cling switch power examples , work fine until exit switch power app remote device , start again.

afterwards, never again visible inside cling browser app. way make device appear again inside browser, force stop power switch app inside apps menu of android settings , start again.

is there possibility androidupnpserviceimpl isn't shutting down correctly? have tried first unbind , stop service using stopservice() still nothing.
have tested on several devices, using android 4.1 , 4.4. , have noticed same behavior. doing wrong?

thank in advance

i forgot mention can see logs of upnpserviceimpl:
>>> shutting down upnp service...
<<< upnp service shutdown completed
indicates service must have shut down.

i've found solution, unfortunately problem inside cling library. colluegue of mine did fix, i'm not able share "patches library" , it's not clear changes affected. used patched version of: cling-distribution-2.0.1

so possibly latest lib it's fixed? luck! did u test 2.0.1?

so problem was: successful run library code:

07-17 17:53:23.205  14826-14826/ i/datagramio﹕ creating bound socket (for datagram input/output) on: 192.168.1.110/192.168.1.110     07-17 17:53:23.205  14826-14826/ i/streamserver﹕ setting executor service on servlet container adapter     07-17 17:53:23.205  14826-14826/ i/streamserver﹕ adding connector: 109.46.235.174/109.46.235.174:0     07-17 17:53:23.205  14826-14826/ d/libc-netbsd﹕ [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0     07-17 17:53:23.205  14826-14826/ d/libc-netbsd﹕ [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=4; ai_family=0     07-17 17:53:23.205  14826-14826/ i/pnpserviceconfiguration﹕ thread pool rejected execution of class org.eclipse.jetty.server.abstractconnector$acceptor     07-17 17:53:23.205  14826-14826/ w/system.err﹕ 2015-07-17 17:53:23.215:info:oejs.abstractconnector:started socketconnector@109.46.235.174:60087     07-17 17:53:23.205  14826-14826/ i/datagramio﹕ creating bound socket (for datagram input/output) on: 109.46.235.174/109.46.235.174     07-17 17:53:23.205  14826-14826/ i/streamclient﹕ starting jetty httpclient...     07-17 17:53:23.205  14826-14826/ i/router﹕ wifi multicast lock acquired     07-17 17:53:23.205  14826-14826/ i/router﹕ created wifi lock, mode: 3     07-17 17:53:23.205  14826-14826/ i/router﹕ wifi lock acquired     07-17 17:53:23.215  14826-14826/ i/upnpserviceimpl﹕ <<< upnp service started 

error run this:

07-17 17:53:23.205  14826-14826/ i/streamclient﹕ starting jetty httpclient... 07-17 17:53:23.205  14826-14826/ i/router﹕ wifi multicast lock acquired 07-17 17:53:23.205  14826-14826/ i/router﹕ created wifi lock, mode: 3 07-17 17:53:23.205  14826-14826/ i/router﹕ wifi lock acquired 07-17 17:53:23.205  14826-14826/ i/datagramio﹕ creating bound socket (for datagram input/output) on: 192.168.1.110/192.168.1.110     07-17 17:53:23.205  14826-14826/ i/streamserver﹕ setting executor service on servlet container adapter     07-17 17:53:23.205  14826-14826/ i/streamserver﹕ adding connector: 109.46.235.174/109.46.235.174:0     07-17 17:53:23.205  14826-14826/ d/libc-netbsd﹕ [getaddrinfo]: hostname=xxxxx; servname=(null); cache_mode=(null), netid=0; mark=0     07-17 17:53:23.205  14826-14826/ d/libc-netbsd﹕ [getaddrinfo]: ai_addrlen=0; ai_canonname=xxxxx; ai_flags=4; ai_family=0     07-17 17:53:23.205  14826-14826/ i/pnpserviceconfiguration﹕ thread pool rejected execution of class org.eclipse.jetty.server.abstractconnector$acceptor     07-17 17:53:23.205  14826-14826/ w/system.err﹕ 2015-07-17 17:53:23.215:info:oejs.abstractconnector:started socketconnector@109.46.235.174:60087     07-17 17:53:23.205  14826-14826/ i/datagramio﹕ creating bound socket (for datagram input/output) on: 109.46.235.174/109.46.235.174     07-17 17:53:23.215  14826-14826/ i/upnpserviceimpl﹕ <<< upnp service started 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -