AndroidVideoCache icon indicating copy to clipboard operation
AndroidVideoCache copied to clipboard

How to get the Listener When thows ProxyCacheException

Open bingbing9527 opened this issue 8 years ago • 5 comments

My network connection has suddenly broken down,it throw Exception,but I need to do something,How to get the Listener When it thows ProxyCacheException?

05-24 10:39:35.267 14916-15787/? E/HttpProxyCacheServer: HttpProxyCacheServer error
                                                         com.danikula.videocache.ProxyCacheException: Error processing request. Version: 2.7.0
                                                             at com.danikula.videocache.HttpProxyCacheServer.processSocket(HttpProxyCacheServer.java:241)
                                                             at com.danikula.videocache.HttpProxyCacheServer.access$200(HttpProxyCacheServer.java:52)
                                                             at com.danikula.videocache.HttpProxyCacheServer$SocketProcessorRunnable.run(HttpProxyCacheServer.java:338)
                                                             at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
                                                             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: com.danikula.videocache.ProxyCacheException: Error opening connection for xxx.mp4 with offset 7231527. Version: 2.7.0
                                                             at com.danikula.videocache.HttpUrlSource.open(HttpUrlSource.java:75)
                                                             at com.danikula.videocache.HttpProxyCache.responseWithoutCache(HttpProxyCache.java:89)
                                                             at com.danikula.videocache.HttpProxyCache.processRequest(HttpProxyCache.java:47)
                                                             at com.danikula.videocache.HttpProxyCacheServerClients.processRequest(HttpProxyCacheServerClients.java:42)
                                                             at com.danikula.videocache.HttpProxyCacheServer.processSocket(HttpProxyCacheServer.java:234)
                                                             at com.danikula.videocache.HttpProxyCacheServer.access$200(HttpProxyCacheServer.java:52) 
                                                             at com.danikula.videocache.HttpProxyCacheServer$SocketProcessorRunnable.run(HttpProxyCacheServer.java:338) 
                                                             at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423) 
                                                             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: xxx.mp4
                                                             at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:238)
                                                             at com.danikula.videocache.HttpUrlSource.open(HttpUrlSource.java:70)
                                                             at com.danikula.videocache.HttpProxyCache.responseWithoutCache(HttpProxyCache.java:89) 
                                                             at com.danikula.videocache.HttpProxyCache.processRequest(HttpProxyCache.java:47) 
                                                             at com.danikula.videocache.HttpProxyCacheServerClients.processRequest(HttpProxyCacheServerClients.java:42) 
                                                             at com.danikula.videocache.HttpProxyCacheServer.processSocket(HttpProxyCacheServer.java:234) 
                                                             at com.danikula.videocache.HttpProxyCacheServer.access$200(HttpProxyCacheServer.java:52) 
                                                             at com.danikula.videocache.HttpProxyCacheServer$SocketProcessorRunnable.run(HttpProxyCacheServer.java:338) 
                                                             at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423) 
                                                             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) 

bingbing9527 avatar May 24 '17 02:05 bingbing9527

I also need it!

hongyang51 avatar May 27 '17 08:05 hongyang51

I also need it!

1405553774 avatar Jan 03 '18 10:01 1405553774

I also need it!

ghost avatar May 23 '18 04:05 ghost

I also need it!

gitLynn avatar Jun 11 '19 03:06 gitLynn

I need this too. Not too much to ask.

RowlandOti avatar Mar 09 '20 12:03 RowlandOti