How to resolve "REST Web Service Exception: java.io.EOFException: SSL peer shut down incorrectly" ?
book
Article ID: KB0070702
calendar_today
Updated On:
Products
Versions
TIBCO Data Virtualization
All Supported versions
Description
If you have configured a REST web service using REST adapter and encountered below exception then please follow the below steps to resolve the issue:
Caused by: java.io.EOFException: SSL peer shut down incorrectly at sun.security.ssl.InputRecord.read(Unknown Source) ... 21 more
at com.compositesw.cdms.webapi.WebapiException_SOAPSerializer.doDeserialize(WebapiException_SOAPSerializer.java:58) at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:209) at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:172) at com.compositesw.cdms.webapi.service.WMetaDataSvc_procresult_getOutputValues_Fault_SOAPSerializer.deserializeDetail(WMetaDataSvc_procresult_getOutputValues_Fault_SOAPSerializer.java:54) at com.sun.xml.rpc.encoding.SOAPFaultInfoSerializer.doDeserialize(SOAPFaultInfoSerializer.java:151) at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:209) at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:172) at com.compositesw.cdms.webapi.service.WMetaDataSvc_Stub._readBodyFaultElement(WMetaDataSvc_Stub.java:25072) at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:238) at com.compositesw.cdms.webapi.service.WMetaDataSvc_Stub.procresult_getOutputValues(WMetaDataSvc_Stub.java:13466) at com.compositesw.cdms.webapi.WProcResult.getOutputParameterCount(WProcResult.java:36) at com.compositesw.ui.modeler.view.result.ComplexProgressTasks$ComplexExecuteQueryTask.displayQueryResult(ComplexProgressTasks.java:511) at com.compositesw.ui.modeler.view.result.ComplexProgressTasks$ComplexExecuteQueryTask.executeQuery(ComplexProgressTasks.java:269) at com.compositesw.ui.modeler.view.result.ComplexProgressTasks$ComplexExecuteQueryTask.goWork(ComplexProgressTasks.java:129) at com.compositesw.ui.modeler.view.result.LongTask$1.run(LongTask.java:62) at java.lang.Thread.run(Unknown Source)
Issue/Introduction
If you have configured a REST web service using REST adapter and encountered below exception "REST Web Service Exception: java.io.EOFException: SSL peer shut down incorrectly" , the steps in this article will assist in resolving the issue.
Resolution
Please follow the below steps in sequence :
1. Please verify that all the required certificates are imported to TDV. Please refer below article for importing certificate for REST adapter
2. Please set the below configuration to true: Studio -> Administration -> Configuration -> Server -> Configuration -> Network -> Disable HTTPS Hostname Verification--> Set to true
3. Upgrade TDV to JRE 1.8 if JRE version is lower than 1.8 in your TDV version (All versions > TDV 8.2 come with JDK 11 or later and should not require an upgrade) . As TDV Rest Adapter is using Socket of TLS SSLContext, it only enable "SSLV3 and TLSV1" in JRE 1.7 but enable "TLSV1, TLSV1.1, TLSV1.2" in JRE 1.8.
4. After upgrading to JRE 1.8, please test the REST operation in TDV and its should succeed.