Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] tSOAP Message send failed

Hello everybody,
I'm trying to call a web-service with the help of tSOAP. At the moment my job only exists of one tSOAP with the (hopefully correct) configurations to my web-service and a tLogRow Component. Now when executing the job, I get the following error:
com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection post
Schwerwiegend: SAAJ0009: Message send failed
Exception in component tSOAP_1
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Message send failed
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(Unknown Source)
at org.talend.soap.SOAPUtil.invokeSOAP(SOAPUtil.java:109)
at portaldwjobs.prokon_habilkon_0_1.Prokon_Habilkon.tSOAP_1Process(Prokon_Habilkon.java:591)
at portaldwjobs.prokon_habilkon_0_1.Prokon_Habilkon.runJobInTOS(Prokon_Habilkon.java:900)
at portaldwjobs.prokon_habilkon_0_1.Prokon_Habilkon.main(Prokon_Habilkon



To see the whole post, download it here
Labels (5)
25 Replies
_AnonymousUser
Specialist III
Specialist III

I think you need to set key store via tSetKeystore
For information about keystore look at this: http://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.html
Best regarding
Mr Max Magu
Head of Internation Testing and Affairs
Akschalabala Corp
Indonesia
Anonymous
Not applicable
Author

Thanks for the answer. I will try understand and set it up this way.
Anonymous
Not applicable
Author

Anonymous
Not applicable
Author

So thanks for the hint, but I am not able to set this up. What exactly do I have to so? I have and know the certificate of the server but what now? Should I export it? What configurations do I have to set in the tSetKeystore component? The default documentation on Talend doesn't help me either.
Anonymous
Not applicable
Author

Hi,
Is there any security certification got from server?
It seems that the URL you are trying to access have no valid certificate issued from an authorized CA.
Is this article helpful for your current case http://www.jyothis.co.in/2011/11/12/javax-net-ssl-sslhandshakeexception
Best regards
Sabrina
Anonymous
Not applicable
Author

Well this article helped me understand my issue a lot more. But just to get things right:
- the url I'm opening has a certificate with the folowing path:
Deutsche Telekom Root CA2 --> DFN-Verein PCA Global - G01 --> Uni-Konstanz CA-S001 --> the certificate of the url.
And the root certificate (Deutsche Telekom Root CA2) is trusted by y browser. So I guess the problem is, that my computer still doesn't trust the special certificate of that url?
Now I will also need to execute this job later on different servers as autonmous jobs. Do I now have to manually set this certificate on these servers like described in the article you gave me? Or is there another solution?
Anonymous
Not applicable
Author

Hi,
You have to import the certification into your computer successfully, then tell the Talend how to access the certification( Import this certification into your Java keystore, add a tSetKeystore component to your job and enter your keystore location and password).
Best regards
Sabrina
Anonymous
Not applicable
Author

Ok, thanks for the help.
I added the certificate to my java keystore successfully. Now I get the following error message:
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.SSLSocketImpl.handleException(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)
at sun.net. www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net. www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net. www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.post(Unknown Source)
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(Unknown Source)
at org.talend.soap.SOAPUtil.invokeSOAP(SOAPUtil.java:109)
at portaldwjobs.prokon_habilkon_0_1.Prokon_Habilkon.tSOAP_1Process(Prokon_Habilkon.java:710)
at portaldwjobs.prokon_habilkon_0_1.Prokon_Habilkon.tSetKeystore_1Process(Prokon_Habilkon.java:350)
at portaldwjobs.prokon_habilkon_0_1.Prokon_Habilkon.runJobInTOS(Prokon_Habilkon.java:1019)
at portaldwjobs.prokon_habilkon_0_1.Prokon_Habilkon.main(Prokon_Habilkon.java:885)
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at sun.security.validator.PKIXValidator.(Unknown Source)
at sun.security.validator.Validator.getInstance(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.getValidator(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
at sun.security.ssl.Handshaker.processLoop(Unknown Source)
at sun.security.ssl.Handshaker.process_record(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
... 13 more
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at java.security.cert.PKIXParameters.setTrustAnchors(Unknown Source)
at java.security.cert.PKIXParameters.(Unknown Source)
at java.security.cert.PKIXBuilderParameters.(Unknown Source)
... 25 more
Still caused by the SSL. Did I configure something wrong in the tSetKeystore?
Anonymous
Not applicable
Author