1
在具有apache和https連接的應用程序java(client/server)中,我遇到連接問題。這是我在客戶端部分收到錯誤:java.net.SocketException:連接重置 - [SSL]
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at com.sun.net.ssl.internal.ssl.InputRecord.readFully(Unknown Source)
at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
at es.stratesys.pos.stratepos.filesync.client.BaseHttpClient.sendAndReceive(BaseHttpClient.java:43)
at es.stratesys.pos.stratepos.filesync.client.FileSyncClient.retrieveRemoteFolderMetadata(FileSyncClient.java:352)
at es.stratesys.pos.stratepos.filesync.client.FileSyncClient.syncTopDown(FileSyncClient.java:166)
at es.stratesys.pos.stratepos.filesync.client.FileSyncClient.synchronize(FileSyncClient.java:144)
at es.stratesys.pos.stratepos.filesync.client.task.TpvFileSyncTaskManager$1.run(TpvFileSyncTaskManager.java:74)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
我們有很多的計算機上安裝該軟件,只有電腦報我這個錯誤。這臺電腦有Windows 7和Java 1.6.0_39(32位)。你能幫我找到這個錯誤嗎? (如果您需要更多信息,請讓我知道)
你檢查是否安裝在機器上正確的證書?它看起來像服務器由於某種原因而斷開連接。 – kaetzacoatl
[SSL連接重置]的可能重複(http://stackoverflow.com/questions/5507878/ssl-connection-reset) – heenenee