Android: Error closing socket input stream. Version: 2.7.1
最近在做Android 视频相关开发。视频一直转圈圈,就是不播放处理,同时出现以下error。 (如果等一等,视频会播放出来,目前还不知道时怎么回事)
1 V/MediaHTTPService: makeHTTPConnection: CookieHandler (java.net.CookieManager@722a3eb) exists.
2 makeHTTPConnection(android.media.MediaHTTPService@d8c21eb): cookieHandler: java.net.CookieManager@722a3eb Cookies: null
3 E/HttpProxyCacheServer: HttpProxyCacheServer error
4 com.danikula.videocache.ProxyCacheException: Error closing socket input stream. Version: 2.7.1
5 at com.danikula.videocache.HttpProxyCacheServer.closeSocketInput(HttpProxyCacheServer.java:287)
6 at com.danikula.videocache.HttpProxyCacheServer.releaseSocket(HttpProxyCacheServer.java:272)
7 at com.danikula.videocache.HttpProxyCacheServer.processSocket(HttpProxyCacheServer.java:245)
8 at com.danikula.videocache.HttpProxyCacheServer.access$200(HttpProxyCacheServer.java:54)
9 at com.danikula.videocache.HttpProxyCacheServer$SocketProcessorRunnable.run(HttpProxyCacheServer.java:340)
10 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
11 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
12 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
13 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
14 at java.lang.Thread.run(Thread.java:764)
15 Caused by: java.io.IOException: shutdown failed: ENOTCONN (Transport endpoint is not connected)
16 at java.net.PlainSocketImpl.socketShutdown(PlainSocketImpl.java:275)
17 at java.net.AbstractPlainSocketImpl.shutdownInput(AbstractPlainSocketImpl.java:619)
18 at java.net.Socket.shutdownInput(Socket.java:1570)
19 at com.danikula.videocache.HttpProxyCacheServer.closeSocketInput(HttpProxyCacheServer.java:280)
20 at com.danikula.videocache.HttpProxyCacheServer.releaseSocket(HttpProxyCacheServer.java:272)
21 at com.danikula.videocache.HttpProxyCacheServer.processSocket(HttpProxyCacheServer.java:245)
22 at com.danikula.videocache.HttpProxyCacheServer.access$200(HttpProxyCacheServer.java:54)
23 at com.danikula.videocache.HttpProxyCacheServer$SocketProcessorRunnable.run(HttpProxyCacheServer.java:340)
24 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
25 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
26 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
27 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
28 at java.lang.Thread.run(Thread.java:764)
29 Caused by: android.system.ErrnoException: shutdown failed: ENOTCONN (Transport endpoint is not connected)
30 at libcore.io.Linux.shutdown(Native Method)
31 at libcore.io.ForwardingOs.shutdown(ForwardingOs.java:177)
32 at java.net.PlainSocketImpl.socketShutdown(PlainSocketImpl.java:273)
33 at java.net.AbstractPlainSocketImpl.shutdownInput(AbstractPlainSocketImpl.java:619)
34 at java.net.Socket.shutdownInput(Socket.java:1570)
35 at com.danikula.videocache.HttpProxyCacheServer.closeSocketInput(HttpProxyCacheServer.java:280)
36 at com.danikula.videocache.HttpProxyCacheServer.releaseSocket(HttpProxyCacheServer.java:272)
37 at com.danikula.videocache.HttpProxyCacheServer.processSocket(HttpProxyCacheServer.java:245)
38 at com.danikula.videocache.HttpProxyCacheServer.access$200(HttpProxyCacheServer.java:54)
39 at com.danikula.videocache.HttpProxyCacheServer$SocketProcessorRunnable.run(HttpProxyCacheServer.java:340)
40 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
41 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
42 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
43 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
44 at java.lang.Thread.run(Thread.java:764)
45 W/HttpProxyCacheServer: Failed to close socket on proxy side: shutdown failed: ENOTCONN (Transport endpoint is not connected). It seems client have already closed connection.
46 E/HttpProxyCacheServer: HttpProxyCacheServer error
47 com.danikula.videocache.ProxyCacheException: Error closing socket input stream. Version: 2.7.1
48 at com.danikula.videocache.HttpProxyCacheServer.closeSocketInput(HttpProxyCacheServer.java:287)
49 at com.danikula.videocache.HttpProxyCacheServer.releaseSocket(HttpProxyCacheServer.java:272)
50 at com.danikula.videocache.HttpProxyCacheServer.processSocket(HttpProxyCacheServer.java:245)
51 at com.danikula.videocache.HttpProxyCacheServer.access$200(HttpProxyCacheServer.java:54)
52 at com.danikula.videocache.HttpProxyCacheServer$SocketProcessorRunnable.run(HttpProxyCacheServer.java:340)
53 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
54 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
55 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
56 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
57 at java.lang.Thread.run(Thread.java:764)
58 Caused by: java.io.IOException: shutdown failed: ENOTCONN (Transport endpoint is not connected)
59 at java.net.PlainSocketImpl.socketShutdown(PlainSocketImpl.java:275)
60 at java.net.AbstractPlainSocketImpl.shutdownInput(AbstractPlainSocketImpl.java:619)
61 at java.net.Socket.shutdownInput(Socket.java:1570)
62 at com.danikula.videocache.HttpProxyCacheServer.closeSocketInput(HttpProxyCacheServer.java:280)
63 at com.danikula.videocache.HttpProxyCacheServer.releaseSocket(HttpProxyCacheServer.java:272)
64 at com.danikula.videocache.HttpProxyCacheServer.processSocket(HttpProxyCacheServer.java:245)
65 at com.danikula.videocache.HttpProxyCacheServer.access$200(HttpProxyCacheServer.java:54)
66 at com.danikula.videocache.HttpProxyCacheServer$SocketProcessorRunnable.run(HttpProxyCacheServer.java:340)
67 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
68 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
69 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
70 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
71 at java.lang.Thread.run(Thread.java:764)
72 Caused by: android.system.ErrnoException: shutdown failed: ENOTCONN (Transport endpoint is not connected)
73 at libcore.io.Linux.shutdown(Native Method)
74 at libcore.io.ForwardingOs.shutdown(ForwardingOs.java:177)
75 at java.net.PlainSocketImpl.socketShutdown(PlainSocketImpl.java:273)
76 at java.net.AbstractPlainSocketImpl.shutdownInput(AbstractPlainSocketImpl.java:619)
77 at java.net.Socket.shutdownInput(Socket.java:1570)
78 at com.danikula.videocache.HttpProxyCacheServer.closeSocketInput(HttpProxyCacheServer.java:280)
79 at com.danikula.videocache.HttpProxyCacheServer.releaseSocket(HttpProxyCacheServer.java:272)
80 at com.danikula.videocache.HttpProxyCacheServer.processSocket(HttpProxyCacheServer.java:245)
81 at com.danikula.videocache.HttpProxyCacheServer.access$200(HttpProxyCacheServer.java:54)
82 at com.danikula.videocache.HttpProxyCacheServer$SocketProcessorRunnable.run(HttpProxyCacheServer.java:340)
83 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
84 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
85 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)