Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's not working Nexus 5 android 6.0.1 #53

Closed
himanshumistri opened this issue Jan 28, 2016 · 3 comments
Closed

It's not working Nexus 5 android 6.0.1 #53

himanshumistri opened this issue Jan 28, 2016 · 3 comments

Comments

@himanshumistri
Copy link

Here is my code :

proxyCacheServer=BullTankApp.getProxy();

                    proxyUrl = proxyCacheServer.getProxyUrl((mUri.toString().replaceAll(" ","%20")));


                    proxyCacheServer.registerCacheListener(new CacheListener() {
                        @Override
                        public void onCacheAvailable(File cacheFile, String url, int percentsAvailable) {

                            LogUtil.w("LOG_TAG","Video Cache % is"+ percentsAvailable);

                        }
                    },mUri.getPath().replaceAll(" ", "%20"));


Here is our server example url of videos :

http://19823.45.67/webservices/uploads/3/covervideo/VID_20160125_153445-056a5f36238556.mp4
I can able to play this url without Proxy Cache in android.

```` Java
/com.yyyy E/ProxyCache: Error reading ping response
                                                          com.danikula.videocache.ProxyCacheException: Error opening connection for http://127.0.0.1:50333/ping with offset 0
                                                              at com.danikula.videocache.HttpUrlSource.open(HttpUrlSource.java:66)
                                                              at com.danikula.videocache.HttpProxyCacheServer.pingServer(HttpProxyCacheServer.java:120)
                                                              at com.danikula.videocache.HttpProxyCacheServer.access$400(HttpProxyCacheServer.java:55)
                                                              at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:339)
                                                              at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:335)
                                                              at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                              at java.lang.Thread.run(Thread.java:818)
                                                           Caused by: java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)
                                                              at libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:588)
                                                              at libcore.io.IoBridge.recvfrom(IoBridge.java:552)
                                                              at java.net.PlainSocketImpl.read(PlainSocketImpl.java:481)
                                                              at java.net.PlainSocketImpl.-wrap0(PlainSocketImpl.java)
                                                              at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:237)
                                                              at com.splunk.mint.network.io.InputStreamMonitor.read(InputStreamMonitor.java:91)
                                                              at com.android.okhttp.okio.Okio$2.read(Okio.java:135)
                                                              at com.android.okhttp.okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
                                                              at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:306)
                                                              at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:300)
                                                              at com.android.okhttp.okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:196)
                                                              at com.android.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:191)
                                                              at com.android.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:80)
                                                              at com.android.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:904)
                                                              at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:788)
                                                              at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:443)
                                                              at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:388)
                                                              at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:501)
                                                              at com.danikula.videocache.HttpUrlSource.openConnection(HttpUrlSource.java:138)
                                                              at com.danikula.videocache.HttpUrlSource.open(HttpUrlSource.java:61)
                                                              at com.danikula.videocache.HttpProxyCacheServer.pingServer(HttpProxyCacheServer.java:120at com.danikula.videocache.HttpProxyCacheServer.access$400(HttpProxyCacheServer.java:55at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:339at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:335at java.util.concurrent.FutureTask.run(FutureTask.java:237at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588at java.lang.Thread.run(Thread.java:818Caused by: android.system.ErrnoException: recvfrom failed: ECONNRESET (Connection reset by peer)
                                                              at libcore.io.Posix.recvfromBytes(Native Method)
                                                              at libcore.io.Posix.recvfrom(Posix.java:189)
                                                              at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:250)
                                                              at libcore.io.IoBridge.recvfrom(IoBridge.java:549)
                                                              at java.net.PlainSocketImpl.read(PlainSocketImpl.java:481at java.net.PlainSocketImpl.-wrap0(PlainSocketImpl.javaat java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:237at com.splunk.mint.network.io.InputStreamMonitor.read(InputStreamMonitor.java:91at com.android.okhttp.okio.Okio$2.read(Okio.java:135at com.android.okhttp.okio.AsyncTimeout$2.read(AsyncTimeout.java:211at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:306at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:300at com.android.okhttp.okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:196at com.android.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:191at com.android.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:80at com.android.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:904at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:788at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:443at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:388at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:501at com.danikula.videocache.HttpUrlSource.openConnection(HttpUrlSource.java:138at com.danikula.videocache.HttpUrlSource.open(HttpUrlSource.java:61at com.danikula.videocache.HttpProxyCacheServer.pingServer(HttpProxyCacheServer.java:120at com.danikula.videocache.HttpProxyCacheServer.access$400(HttpProxyCacheServer.java:55at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:339at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:335at java.util.concurrent.FutureTask.run(FutureTask.java:237at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588at java.lang.Thread.run(Thread.java:81801-28 15:36:51.510 12335-13305/com.yyyy E/ProxyCache: Error reading ping response
                                                          com.danikula.videocache.ProxyCacheException: Error opening connection for http://127.0.0.1:50333/ping with offset 0
                                                              at com.danikula.videocache.HttpUrlSource.open(HttpUrlSource.java:66)
                                                              at com.danikula.videocache.HttpProxyCacheServer.pingServer(HttpProxyCacheServer.java:120)
                                                              at com.danikula.videocache.HttpProxyCacheServer.access$400(HttpProxyCacheServer.java:55)
                                                              at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:339)
                                                              at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:335)
                                                              at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                              at java.lang.Thread.run(Thread.java:818)
                                                           Caused by: java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)
                                                              at libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:588)
                                                              at libcore.io.IoBridge.recvfrom(IoBridge.java:552)
                                                              at java.net.PlainSocketImpl.read(PlainSocketImpl.java:481)
                                                              at java.net.PlainSocketImpl.-wrap0(PlainSocketImpl.java)
                                                              at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:237)
                                                              at com.splunk.mint.network.io.InputStreamMonitor.read(InputStreamMonitor.java:91)
                                                              at com.android.okhttp.okio.Okio$2.read(Okio.java:135)
                                                              at com.android.okhttp.okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
                                                              at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:306)
                                                              at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:300)
                                                              at com.android.okhttp.okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:196)
                                                              at com.android.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:191)
                                                              at com.android.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:80)
                                                              at com.android.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:904)
                                                              at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:788)
                                                              at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:443)
                                                              at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:388)
                                                              at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:501)
                                                              at com.danikula.videocache.HttpUrlSource.openConnection(HttpUrlSource.java:138)
                                                              at com.danikula.videocache.HttpUrlSource.open(HttpUrlSource.java:61)
                                                              at com.danikula.videocache.HttpProxyCacheServer.pingServer(HttpProxyCacheServer.java:120at com.danikula.videocache.HttpProxyCacheServer.access$400(HttpProxyCacheServer.java:55at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:339at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:335at java.util.concurrent.FutureTask.run(FutureTask.java:237at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588at java.lang.Thread.run(Thread.java:818Caused by: android.system.ErrnoException: recvfrom failed: ECONNRESET (Connection reset by peer)
                                                              at libcore.io.Posix.recvfromBytes(Native Method)
                                                              at libcore.io.Posix.recvfrom(Posix.java:189)
                                                              at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:250)
                                                              at libcore.io.IoBridge.recvfrom(IoBridge.java:549)
                                                              at java.net.PlainSocketImpl.read(PlainSocketImpl.java:481at java.net.PlainSocketImpl.-wrap0(PlainSocketImpl.javaat java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:237at com.splunk.mint.network.io.InputStreamMonitor.read(InputStreamMonitor.java:91at com.android.okhttp.okio.Okio$2.read(Okio.java:135at com.android.okhttp.okio.AsyncTimeout$2.read(AsyncTimeout.java:211at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:306at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:300at com.android.okhttp.okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:196at com.android.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:191at com.android.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:80at com.android.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:904at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:788at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:443at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:388at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:501at com.danikula.videocache.HttpUrlSource.openConnection(HttpUrlSource.java:138at com.danikula.videocache.HttpUrlSource.open(HttpUrlSource.java:61at com.danikula.videocache.HttpProxyCacheServer.pingServer(HttpProxyCacheServer.java:120at com.danikula.videocache.HttpProxyCacheServer.access$400(HttpProxyCacheServer.java:55at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:339at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:335at java.util.concurrent.FutureTask.run(FutureTask.java:237at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588at java.lang.Thread.run(Thread.java:818
@shaopx
Copy link

shaopx commented Mar 23, 2016

i have also get error on Android 6.0 device. here is the log

03-24 10:49:25.049 21442-22269/com.kingsoft D/ProxyCache: Open connection to http://127.0.0.1:48512/ping 
03-24 10:49:26.306 21442-22269/com.kingsoft E/ProxyCache: Error reading ping response 
com.danikula.videocache.ProxyCacheException: Error opening connection for http://127.0.0.1:48512/ping with offset 0 
at com.danikula.videocache.HttpUrlSource.open(HttpUrlSource.java:66) 
at com.danikula.videocache.HttpProxyCacheServer.pingServer(HttpProxyCacheServer.java:120) 
at com.danikula.videocache.HttpProxyCacheServer.access$400(HttpProxyCacheServer.java:55) 
at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:339) 
at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:335) 
at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
at java.lang.Thread.run(Thread.java:818) 
Caused by: java.io.FileNotFoundException: http://127.0.0.1:48512/ping 
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:238) 
at com.xiaomi.mistatistic.sdk.a.a.getInputStream(Unknown Source) 
at com.danikula.videocache.HttpUrlSource.open(HttpUrlSource.java:63) 
at com.danikula.videocache.HttpProxyCacheServer.pingServer(HttpProxyCacheServer.java:120)  
at com.danikula.videocache.HttpProxyCacheServer.access$400(HttpProxyCacheServer.java:55)  
at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:339)  
at com.danikula.videocache.HttpProxyCacheServer$PingCallable.call(HttpProxyCacheServer.java:335)  
at java.util.concurrent.FutureTask.run(FutureTask.java:237)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)  
at java.lang.Thread.run(Thread.java:818)  
03-24 10:49:27.883 840-946/system_process D/ConnectivityService: notifyType CAP_CHANGED for NetworkAgentInfo [WIFI () - 132] 
03-24 10:49:38.307 21442-21442/com.kingsoft E/ProxyCache: Shutdown server… Error pinging server [attempts: 3, max timeout: 12000]. If you see this message, please, email me [email protected] 
03-24 10:49:38.307 21442-21442/com.kingsoft I/ProxyCache: Shutdown proxy server 
03-24 10:49:38.308 21442-21442/com.kingsoft E/ProxyCache: Proxy server isn't pinged. Caching doesn't work. If you see this message, please, email me [email protected] 

@shaopx
Copy link

shaopx commented Jun 1, 2016

try to use real local ip instead of 127.0.0.1
I have tested , it works fine in my phone

@danikula
Copy link
Owner

Duplicates 28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants