• SoketException log


     03-05 10:03:11.411: WARN/System.err(23685): java.net.SocketException: Connection reset by peer
    03-05 10:03:11.411: WARN/System.err(23685):     at org.apache.harmony.luni.platform.OSNetworkSystem.readSocketImpl(Native Method)
    03-05 10:03:11.415: WARN/System.err(23685):     at org.apache.harmony.luni.platform.OSNetworkSystem.read(OSNetworkSystem.java:358)
    03-05 10:03:11.425: WARN/System.err(23685):     at org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:561)
    03-05 10:03:11.435: WARN/System.err(23685):     at org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:61)
    03-05 10:03:11.455: WARN/System.err(23685):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.readln(HttpURLConnectionImpl.java:1279)
    03-05 10:03:11.455: WARN/System.err(23685):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.readServerResponse(HttpURLConnectionImpl.java:1351)
    03-05 10:03:11.455: WARN/System.err(23685):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.sendRequest(HttpURLConnectionImpl.java:1339)
    03-05 10:03:11.455: WARN/System.err(23685):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.doRequestInternal(HttpURLConnectionImpl.java:1656)
    03-05 10:03:11.455: WARN/System.err(23685):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.doRequest(HttpURLConnectionImpl.java:1649)
    03-05 10:03:11.465: WARN/System.err(23685):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:1153)
    03-05 10:03:11.465: WARN/System.err(23685):     at java.net.URL.openStream(URL.java:653)
    03-05 10:03:11.465: WARN/System.err(23685):     at com.gr.loveStroies.crawler.HTMLCrawler.getHtml(HTMLCrawler.java:33)
    03-05 10:03:11.465: WARN/System.err(23685):     at com.gr.loveStroies.common.LoadTask.doInBackground(LoadTask.java:94)
    03-05 10:03:11.465: WARN/System.err(23685):     at android.os.AsyncTask$2.call(AsyncTask.java:185)
    03-05 10:03:11.465: WARN/System.err(23685):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
    03-05 10:03:11.465: WARN/System.err(23685):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
    03-05 10:03:11.465: WARN/System.err(23685):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
    03-05 10:03:11.465: WARN/System.err(23685):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
    03-05 10:03:11.465: WARN/System.err(23685):     at java.lang.Thread.run(Thread.java:1096)

    03-05 13:39:17.243: WARN/System.err(30594): java.net.SocketException: The operation timed out
    03-05 13:39:17.253: WARN/System.err(30594):     at org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native Method)
    03-05 13:39:17.253: WARN/System.err(30594):     at org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocket(OSNetworkSystem.java:130)
    03-05 13:39:17.253: WARN/System.err(30594):     at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:246)
    03-05 13:39:17.253: WARN/System.err(30594):     at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:533)
    03-05 13:39:17.253: WARN/System.err(30594):     at java.net.Socket.connect(Socket.java:1055)
    03-05 13:39:17.253: WARN/System.err(30594):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.<init>(HttpConnection.java:62)
    03-05 13:39:17.253: WARN/System.err(30594):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionPool.get(HttpConnectionPool.java:88)
    03-05 13:39:17.263: WARN/System.err(30594):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getHTTPConnection(HttpURLConnectionImpl.java:927)
    03-05 13:39:17.263: WARN/System.err(30594):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:909)
    03-05 13:39:17.263: WARN/System.err(30594):     at com.gr.loveStroies.crawler.HTMLCrawler.getURLConnection(HTMLCrawler.java:54)
    03-05 13:39:17.263: WARN/System.err(30594):     at com.gr.loveStroies.crawler.HTMLCrawler.getHtml(HTMLCrawler.java:77)
    03-05 13:39:17.263: WARN/System.err(30594):     at com.gr.loveStroies.common.LoadTask.doInBackground(LoadTask.java:94)
    03-05 13:39:17.263: WARN/System.err(30594):     at android.os.AsyncTask$2.call(AsyncTask.java:185)
    03-05 13:39:17.263: WARN/System.err(30594):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
    03-05 13:39:17.263: WARN/System.err(30594):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
    03-05 13:39:17.263: WARN/System.err(30594):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
    03-05 13:39:17.263: WARN/System.err(30594):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
    03-05 13:39:17.273: WARN/System.err(30594):     at java.lang.Thread.run(Thread.java:1096)

    Android中使用cmwap接入点访问互联网的问题及解决办法

    http://zxandroid.iteye.com/blog/481979

    Connection reset by peer: socket write error   

    http://cncc.bingj.com/cache.aspx?q=Connection+reset+by+peer&d=4750552126456115&mkt=zh-CN&setlang=zh-CN&w=1311c313,ffcdd461


    ---------------------------------------------------------------------------------------------------------------------------------
    copyright:http://www.cnblogs.com/anee/
  • 相关阅读:
    springcloud-spring cloud config统一配置中心
    springcloud-hystrix断路器对微服务的容错处理
    springcloud-feign组件实现声明式的调用
    springcloud-Ribbon-负载均衡组件
    springcloud-Eureka-服务注册与发现核心组件
    springcloud入门-什么是springcloud
    Redis缓存设计及常见问题
    Lucene全文检索入门使用
    redis安装、使用
    nodejs环境 + 入门 + 博客搭建
  • 原文地址:https://www.cnblogs.com/anee/p/2675764.html
Copyright © 2020-2023  润新知