我找到了一些解决方案,但不幸的是,紧贴库中出现了一些问题。我的一些同事进行了修复,我无法共享“补丁库”,也不清楚哪些更改受到了影响。我们使用了一个补丁版本:cling-distribution-2.0.1
那么可能使用最新的库它也已经修复了吗?祝你好运!你已经用 2.0.1 测试过了吗?
所以问题是:从库代码成功运行:
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 successfully
错误运行是这样的:
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 successfully