我已在我的应用程序中集成了Authorize.net api。它在我的本地环境(Windows)工作正常在上周开发环境(Ubuntu)中也运行良好。但突然间,它在开发环境中无法正常工作。日志说它无法连接到autnorize api服务器。任何人都可以帮我这个。以下是日志消息。
2017-05-11 07:02:04 INFO HttpClient:24 - Use Proxy: 'false'
2017-05-11 07:02:04 DEBUG BasicClientConnectionManager:158 - Get connection for route {s}->https://apitest.authorize.net
2017-05-11 07:02:05 DEBUG DefaultClientConnectionOperator:174 - Connecting to apitest.authorize.net:443
2017-05-11 07:02:05 DEBUG DefaultClientConnection:176 - Connection org.apache.http.impl.conn.DefaultClientConnection@136dcd8 closed
2017-05-11 07:02:05 INFO DefaultHttpClient:623 - I/O exception (java.net.SocketException) caught when connecting to the target host: Connection reset
2017-05-11 07:02:05 DEBUG DefaultHttpClient:627 - Connection reset
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:196)
at java.net.SocketInputStream.read(SocketInputStream.java:122)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
at sun.security.ssl.InputRecord.read(InputRecord.java:480)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:946)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1344)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1371)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1355)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:533)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:401)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
at net.authorize.util.HttpCallTask.call(HttpCallTask.java:72)
at net.authorize.util.HttpCallTask.call(HttpCallTask.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2017-05-11 07:02:05 INFO DefaultHttpClient:629 - Retrying connect