Four Stars

Get data from secured web service

I am trying to get data from secured  web service.

I did following steps:

1. created JKS file using below cmd

keytool -genkey -alias mydomain -keyalg RSA -keystore xxxxxxxxxx.jks -keysize 2048
keytool -import -trustcacerts -alias xxxxx -file xxxxxxxxxx.cer -keystore  xxxxxxx.jks

2. Used JKS file into tSetKeyStore components

3. Job structure:

Capture.PNG

 

My job is failing with below error message:

Sep 27, 2017 3:07:30 PM com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection post

SEVERE: SAAJ0009: Message send failed

Exception in component tSOAP_1 (test)

com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed

at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:191)

at org.talend.soap.SOAPUtil.extractContentAsDocument(SOAPUtil.java:266)

at local_project.test_0_1.test.tSOAP_1Process(test.java:503)

at local_project.test_0_1.test.runJobInTOS(test.java:875)

at local_project.test_0_1.test.main(test.java:697)

Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed

at java.security.AccessController.doPrivileged(Native Method)

at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:185)

... 4 more

Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed

at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:389)

at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:214)

... 6 more

Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

at sun.security.ssl.Alerts.getSSLException(Unknown Source)

at sun.security.ssl.Alerts.getSSLException(Unknown Source)

at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)

at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)

at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)

 

Please let me know, if anyone did same kind of work in talend. Thanks

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)

at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)

at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)

at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getOutputStream(Unknown Source)

at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:346)

... 7 more

 

Tags (2)
1 REPLY
Eight Stars

Re: Get data from secured web service

Hi,

 

What is your current JDK/JRE version ?

 

Eric