下面是报错的日记,在调用你们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
|
|
用手机打开
收藏
赞 0
···
回复
|
|
|
|