Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm using tRest component to consume data from Rest webservices.
My job was working till yesterday but suddenly it started giving me error like this
com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLException: Received fatal alert: internal_error
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:131)
at com.sun.jersey.api.client.Client.handle(Client.java:616)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:559)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:72)
at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:454)
at project_Rest.jbgetDataRest.jbgetDataRest.tREST_2Process(jbgetDataRest.java:3918)
at project_Rest.jbgetDataRest.jbgetDataRest.tJava_1Process(jbgetDataRest.java:2587)
at project_Rest.jbgetDataRest.jbgetDataRest.tJava_16Process(jbgetDataRest.java:24482)
at project_Rest.jbgetDataRest.jbgetDataRest.runJobInTOS(jbgetDataRest.java:24943)
at project_Rest.jbgetDataRest.jbgetDataRest.runJob(jbgetDataRest.java:24572)
at project_Rest.jbgetDataRest.jbgetDataRest.tFileInputDelimited_1Process(jbgetDataRest.java:3179)
at project_Rest.jbgetDataRest.jbgetDataRest.runJobInTOS(jbgetDataRest.java:4671)
at project_Rest.jbgetDataRest.jbgetDataRest.main(jbgetDataRest.java:4276)
Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.jav...)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:218)
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:129)
So I have found this while doing google
https://community.talend.com/t5/Migration-Configuration-and/tRestClient-SSL-issue-Received-fatal-ale...
May I know please how I can fix this using workaround solution ? Where I need to update that entry ? And why this error suddenly happened ?
Thanks
The workaround is already mentioned in the link you provided
Upgrade to Talend version 6.4.1.
or
locate this file etc/org.apache.cxf.http.conduits-*.cfg
comment out this line tlsClientParameters.disableCNCheck
add this new line tlsClientParameters.useHttpsURLConnectionDefaultHostnameVerifier = true
if the server CA certificate is already in the JVM's own truststore, comment out all of the lines starting with tlsClientParameters.trustManagers
@jcruie Where I can locate this file etc/org.apache.cxf.http.conduits-*.cfg ? I'm not able to find any etc folder in workspace ....!
In my setup it's like this C:\talend\TOS_ESB-20161216_1026-V6.3.1\Runtime_ESBSE\container\etc