後我從升級到7.0.0.33在7.0.0.37 IHS服務器..獲取javax.net.ssl.SSLProtocolException:文件結束
在最新的IHS服務器的SSLv3是完全禁用..
我下面的代碼
HttpURLConnection urlConn = (HttpURLConnection)url.openConnection();
urlConn.setUseCaches(false);
urlConn.setRequestMethod("POST");
urlConn.setDoOutput(true);
DataOutputStream os = new DataOutputStream(urlConn.getOutputStream());
os.writeBytes(obj.toString());
os.flush();
os.close();
一塊,我發現
DataOutputStream os = new DataOutputStream(urlConn.getOutputStream());
下面的代碼是BRE亞慶,並展示了「協議不支持」 後,其拋出下面的錯誤
[5/13/15 14:00:47:730 GMT] 0000001c SystemErr R javax.net.ssl.SSLProtocolException: end of file
at com.ibm.jsse.bv.a(Unknown Source)
at com.ibm.jsse.bv.startHandshake(Unknown Source)
at com.ibm.net.ssl.www2.protocol.https.b.o(b.java:136)
at com.ibm.net.ssl.www2.protocol.https.i.connect(i.java:28)
at com.ibm.net.ssl.www2.protocol.http.bc.getOutputStream(bc.java:44)
at com.ibm.net.ssl.www2.protocol.https.l.getOutputStream(l.java:23)
at com.corio.tsr.webservices.SRAutomationWebServiceClient.getJsonObject(SRAutomationWebServiceClient.java:166)
at com.corio.tsr.jms.receiver.SRAutomationMessageBean.onMessage(Unknown Source)
at com.ibm.ejs.container.MessageEndpointHandler.invokeMdbMethod(MessageEndpointHandler.java:1013)
at com.ibm.ejs.container.MessageEndpointHandler.invoke(MessageEndpointHandler.java:746)
at $Proxy2.onMessage(Unknown Source)
at com.ibm.ws.sib.api.jmsra.impl.JmsJcaEndpointInvokerImpl.invokeEndpoint(JmsJcaEndpointInvokerImpl.java:201)
at com.ibm.ws.sib.ra.inbound.impl.SibRaDispatcher.dispatch(SibRaDispatcher.java:627)
at com.ibm.ws.sib.ra.inbound.impl.SibRaSingleProcessListener$SibRaWork.run(SibRaSingleProcessListener.java:463)
at com.ibm.ejs.j2c.work.WorkProxy.run(WorkProxy.java:394)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
任何一個可以建議我能做什麼或如何擺脫這種錯誤
嘗試這個...將更新一次實施..謝謝你的響應 – gmhk
javax.net.ssl。SSLHandshakeException:遠程主機在握手過程中關閉了連接 - 獲取以下錯誤信息 – gmhk
@gmhk我按照您的要求編輯了答案,只需按照它的步驟操作即可。 –