u014109813
u014109813
2016-06-12 03:36
采纳率: 50%
浏览 1.1k
已采纳

Volley加载图片总报这个错误,求指点

06-12 11:34:43.719: E/ImageLoader(27449): failed to connect to file.tche001.com/141.8.224.93 (port 80) after 5000ms
06-12 11:34:43.719: E/ImageLoader(27449): java.net.SocketTimeoutException: failed to connect to file.tche001.com/141.8.224.93 (port 80) after 5000ms
06-12 11:34:43.719: E/ImageLoader(27449): at libcore.io.IoBridge.connectErrno(IoBridge.java:189)
06-12 11:34:43.719: E/ImageLoader(27449): at libcore.io.IoBridge.connect(IoBridge.java:127)
06-12 11:34:43.719: E/ImageLoader(27449): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:188)
06-12 11:34:43.719: E/ImageLoader(27449): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:461)
06-12 11:34:43.719: E/ImageLoader(27449): at java.net.Socket.connect(Socket.java:918)
06-12 11:34:43.719: E/ImageLoader(27449): at com.android.okhttp.internal.Platform.connectSocket(Platform.java:139)
06-12 11:34:43.719: E/ImageLoader(27449): at com.android.okhttp.Connection.connect(Connection.java:152)
06-12 11:34:43.719: E/ImageLoader(27449): at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:282)
06-12 11:34:43.719: E/ImageLoader(27449): at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:216)
06-12 11:34:43.719: E/ImageLoader(27449): at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
06-12 11:34:43.719: E/ImageLoader(27449): at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:332)
06-12 11:34:43.719: E/ImageLoader(27449): at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:500)
06-12 11:34:43.719: E/ImageLoader(27449): at com.nostra13.universalimageloader.core.download.BaseImageDownloader.getStreamFromNetwork(BaseImageDownloader.java:117)
06-12 11:34:43.719: E/ImageLoader(27449): at com.nostra13.universalimageloader.core.download.BaseImageDownloader.getStream(BaseImageDownloader.java:88)
06-12 11:34:43.719: E/ImageLoader(27449): at com.nostra13.universalimageloader.core.decode.BaseImageDecoder.getImageStream(BaseImageDecoder.java:98)
06-12 11:34:43.719: E/ImageLoader(27449): at com.nostra13.universalimageloader.core.decode.BaseImageDecoder.decode(BaseImageDecoder.java:74)
06-12 11:34:43.719: E/ImageLoader(27449): at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.decodeImage(LoadAndDisplayImageTask.java:265)
06-12 11:34:43.719: E/ImageLoader(27449): at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryLoadBitmap(LoadAndDisplayImageTask.java:238)
06-12 11:34:43.719: E/ImageLoader(27449): at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.run(LoadAndDisplayImageTask.java:136)
06-12 11:34:43.719: E/ImageLoader(27449): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
06-12 11:34:43.719: E/ImageLoader(27449): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
06-12 11:34:43.719: E/ImageLoader(27449): at java.lang.Thread.run(Thread.java:818)

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • u011249920
    简一_hz 2016-06-12 03:49
    已采纳

    看错误提示就是连接服务器失败阿;你用你的手机浏览器访问下自己的服务器,看能不能连接上

    点赞 评论
  • u011606457
    _1_1_7_ 2016-06-12 03:43

    连接超时了(超时时间5秒),检查一下链接地址对不对,或者把超时时间设长一些看看行不行

    点赞 评论

相关推荐