有赞新零售社区

发帖
API使用问题»获取所有订单信息时报错,启动一段时间还没报错,之后就会报错

获取所有订单信息时报错,启动一段时间还没报错,之后就会报错

开发者100 2017-09-07 1327 浏览 2 评论 | 只看楼主 [打印]
下面是报错的日记,在调用你们jar包时报错了,这是什么原因?为啥前面不会出现,待久点就会报错,急!

Exception in thread "Timer-0" java.lang.RuntimeException: org.apache.http.conn.ConnectTimeoutException: Connect to open.youzan.com:443 [open.youzan.com/106.75.46.12, open.youzan.com/106.75.46.15] failed: Read timed out
    at com.youzan.open.sdk.util.http.DefaultHttpClient.get(DefaultHttpClient.java:112)
    at com.youzan.open.sdk.client.executor.AbstractExecutor.doExecuteInternal(AbstractExecutor.java:84)
    at com.youzan.open.sdk.client.executor.AbstractExecutor.execute(AbstractExecutor.java:28)
    at com.youzan.open.sdk.client.core.DefaultYZClient.execute(DefaultYZClient.java:82)
    at com.youzan.open.sdk.client.core.DefaultYZClient.invoke(DefaultYZClient.java:89)
    at com.yzDemo.service.TradeDetailService.getResult(TradeDetailService.java:62)
    at com.yzDemo.controller.TradeDetailController.execute(TradeDetailController.java:34)
    at com.yzDemo.timer.TimerTest$1.run(TimerTest.java:48)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to open.youzan.com:443 [open.youzan.com/106.75.46.12, open.youzan.com/106.75.46.15] failed: Read timed out
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:150)
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
    at com.youzan.open.sdk.util.http.DefaultHttpClient.get(DefaultHttpClient.java:109)
    ... 9 more
Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:150)
    at java.net.SocketInputStream.read(SocketInputStream.java:121)
    at sun.security.ssl.InputRecord.readFully(InputRecord.java:312)
    at sun.security.ssl.InputRecord.read(InputRecord.java:350)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1328)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1355)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
    at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)
    at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353)
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)
    ... 19 more
用手机打开
收藏 ··· 回复
    你下载最新的SDK再试试

      9496157f68f4   青铜   2017-09-12 | 只看该作者
      阿星 发表于 2017-9-8 19:07
      你下载最新的SDK再试试


      好的,我试试看,谢谢

        1跳至
        您需要登录后才可以回帖 登录 | 立即注册

        本版积分规则

        复制链接
        新浪微博
        QQ空间
        微信扫码
        • 回复

        • 评分

        客服工作时间是9:00-18:00,客服妹子当前不在线,若不能及时回复请谅解。试试右上角的搜索吧,论坛有丰富的经验贴、公告贴,相信一定能够帮到您~

        复制成功