SocketException cause NullPointerException

11-11 18:43:32.299: E/NetUtil(3877): Connection reset by peer
11-11 18:43:32.299: E/NetUtil(3877): java.net.SocketException: Connection reset by peer
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.harmony.luni.platform.OSNetworkSystem.read(Native Method)
11-11 18:43:32.299: E/NetUtil(3877):    at dalvik.system.BlockGuard$WrappedNetworkSystem.read(BlockGuard.java:273)
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:458)
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:85)
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:103)
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:191)
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:82)
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:174)
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:179)
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:235)
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:259)
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:279)
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:121)
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:421)
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
11-11 18:43:32.299: E/NetUtil(3877):    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
11-11 18:43:32.299: E/NetUtil(3877):    at com.tvie.base.net.NetUtil.request(NetUtil.java:162)
11-11 18:43:32.299: E/NetUtil(3877):    at com.tvie.ivideo.model.fetch.IVideoFetcher$FetchAsyncTask.doInIVideoFetcher.java:103)
11-11  18:43:32.299: E/NetUtil(3877):    at com.tvie.ivideo.model.fetch.IVideoFetcher$FetchAsyncTask.doInIVideoFetcher.java:1)
11-11  18:43:32.299: E/NetUtil(3877):    at android.os.AsyncTask$2.call(AsyncTask.java:185)
11-11 18:43:32.299: E/NetUtil(3877):    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
11-11 18:43:32.299: E/NetUtil(3877):    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
11-11 18:43:32.299: E/NetUtil(3877):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
11-11 18:43:32.299: E/NetUtil(3877):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
11-11 18:43:32.299: E/NetUtil(3877):    at java.lang.Thread.run(Thread.java:1019)

java.lang.NullPointerException

11-11 18:43:32.489: E/AndroidRuntime(3877): Uncaught handler: thread main exiting due to uncaught exception
11-11 18:43:32.489: E/Monkey(3877): exception :java.io.FileNotFoundException: /dev/kmsg (Permission denied)
11-11 18:43:32.509: W/System.err(3877): java.io.IOException: Permission denied
11-11 18:43:32.519: E/AndroidRuntime(3877): exception :java.io.FileNotFoundException: /dev/kmsg (Permission denied)
11-11 18:43:32.519: E/AndroidRuntime(3877): exception :java.io.FileNotFoundException: /dev/kmsg (Permission denied)
11-11 18:43:32.519: E/AndroidRuntime(3877): FATAL EXCEPTION: main
11-11 18:43:32.519: E/AndroidRuntime(3877): java.lang.NullPointerException
11-11 18:43:32.519: E/AndroidRuntime(3877):     at com.tvie.ivideo.setting.SettingFragment$6.onComplete(SettingFragment.java:258)
11-11 18:43:32.519: E/AndroidRuntime(3877):     at com.tvie.ivideo.model.fetch.IVideoFetcher$FetchAsyncTask.onPostExecute(IVideoFetcher.java:94)
11-11 18:43:32.519: E/AndroidRuntime(3877):     at com.tvie.ivideo.model.fetch.IVideoFetcher$FetchAsyncTask.onPostExecute(IVideoFetcher.java:1)
11-11 18:43:32.519: E/AndroidRuntime(3877):     at android.os.AsyncTask.finish(AsyncTask.java:417)
11-11 18:43:32.519: E/AndroidRuntime(3877):     at android.os.AsyncTask.access$300(AsyncTask.java:127)
11-11 18:43:32.519: E/AndroidRuntime(3877):     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
11-11 18:43:32.519: E/AndroidRuntime(3877):     at android.os.Handler.dispatchMessage(Handler.java:99)
11-11 18:43:32.519: E/AndroidRuntime(3877):     at android.os.Looper.loop(Looper.java:130)
11-11 18:43:32.519: E/AndroidRuntime(3877):     at android.app.ActivityThread.main(ActivityThread.java:3683)
11-11 18:43:32.519: E/AndroidRuntime(3877):     at java.lang.reflect.Method.invokeNative(Native Method)
11-11 18:43:32.519: E/AndroidRuntime(3877):     at java.lang.reflect.Method.invoke(Method.java:507)
11-11 18:43:32.519: E/AndroidRuntime(3877):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:895)
11-11 18:43:32.519: E/AndroidRuntime(3877):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:653)
11-11 18:43:32.519: E/AndroidRuntime(3877):     at dalvik.system.NativeStart.main(Native Method)



你可能感兴趣的:(SocketException)