One Star

[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.java:766)
Caused by: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Message send failed
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.post(Unknown Source)
... 5 more
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(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)
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)
... 6 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
... 18 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 24 more
CAUSE:
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Message send failed
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: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.java:766)
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(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)
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)
... 6 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
... 18 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 24 more
CAUSE:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(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)
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: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.java:766)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
... 18 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 24 more
CAUSE:
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Message send failed
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: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.java:766)
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(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)
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)
... 6 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
... 18 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 24 more
CAUSE:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(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)
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: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.java:766)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
... 18 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 24 more
CAUSE:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(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)
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: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.java:766)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
... 18 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 24 more
Can anybody please tell me where I made a mistake?

  • Data Integration
25 REPLIES
One Star

Re: [resolved] tSOAP Message send failed

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
One Star

Re: [resolved] tSOAP Message send failed

Thanks for the answer. I will try understand and set it up this way.
Moderator

Re: [resolved] tSOAP Message send failed

Hi,
And the related forum 31641.
Best regards
Sabrina
One Star

Re: [resolved] tSOAP Message send failed

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.
Moderator

Re: [resolved] tSOAP Message send failed

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
One Star

Re: [resolved] tSOAP Message send failed

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?
Moderator

Re: [resolved] tSOAP Message send failed

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
One Star

Re: [resolved] tSOAP Message send failed

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?
Moderator

Re: [resolved] tSOAP Message send failed

One Star

Re: [resolved] tSOAP Message send failed

Hey great. Thanks. Now I don't get any error anymore, but now nothing is happening. It just running for a long time with this message in the console:

connecting to socket on port 3627
connected

and then giving me a "unhandled event loop exception - no more handles" error. What does this error mean and how can I fix it?
Moderator

Re: [resolved] tSOAP Message send failed

Hi,
Does it work fine when you re-run job/ re-start studio? Is it random?
Any error log for it?
Best regards
Sabrina
One Star

Re: [resolved] tSOAP Message send failed

It even asks me to restart the studio. But when doing so it always appears again when then restarting the job. And this everytime I start it.
Where do I find the error log?
I changed the memory parameters of the studio in the .ini file to try if it is related to that, but it doesn't change anything. Can you tell me what this error eyxactly wants to tell me?
Thanks for all the help.
Moderator

Re: [resolved] tSOAP Message send failed

Hi,
I changed the memory parameters of the studio in the .ini file to try if it is related to that, but it doesn't change anything. Can you tell me what this error eyxactly wants to tell me?

Yes, usually the error indicates you should set xms, xmx parameter in JVM. Is it a large job in studio? Did you set the "Use specific JVM arguments" in Advanced setting of Run review?(This change will only apply for the active Job.)
In addition that, error log is located in /workspace/.metadata/.log .
Best regards
Sabrina
One Star

Re: [resolved] tSOAP Message send failed

Thanks. This seems to solve my problem completely.
But to still answer your question, it is a (I think) tiny job only consisting of the tSetKeystore compontent and a tSoap component (getting about 7MB data) and a tRow component. That's all.
I now set the paramaters in the advanced settings as follows:
-Xms 1024M
-Xmx1024M
-XX:MaxPermSize=256M
which was default when opening the tab. When reducing the Xms parameter to 256M it still doesn't work. Can you tell me why so I can understand it and apply it to future work?
Moderator

Re: [resolved] tSOAP Message send failed

Hi,
I changed the memory parameters of the studio in the .ini file to try if it is related to that

What you have done is effective for all Jobs. The default setting should be sufficient for all normal Job executions, therefore this global change of JVM arguments is not recommended.
Running a Job which processes a very large amount of data also cause memory issue, for talend client will cache items in memory (like a good java program should) and so you will see it gradually use more and more until it reaches the configured heap size.
So it is suggested that you should allocate more memory for the Job to be able to process large amounts of data or avoid memory issue.
Surely, to make most of talend product, there is a requirement on your hardware and software.
TalendHelpCenter:Installation+requirements.
I now set the paramaters in the advanced settings as follows:
-Xms 1024M
-Xmx1024M
-XX:MaxPermSize=256M
which was default when opening the tab. When reducing the Xms parameter to 256M it still doesn't work. Can you tell me why so I can understand it and apply it to future work?

What's the RAM size of your machine configuration? Why did you reduce it?
Best regards
Sabrina
One Star

Re: [resolved] tSOAP Message send failed

The RAM size of my machine is 3GB.
I reduced it because I learned, that the Xms parameter is the size of the memory given at the start and Xmx is the max size to which the memory can grow during execution. And thus the Xms usually is smaller than Xmx. But here I need to set it to the same size and I don't understand it, because even when starting with a smaller memory it still has the possibility to reach up to the upper bound. Can you get what my question is?
Moderator

Re: [resolved] tSOAP Message send failed

Hi,
Is it working when you set the -Xms as 512M? There might be a conflict when -Xms is as same as -XX:MaxPermSize. The range of - Xms should be 256M-1024M.
The parameter:
-Xms 1024M
-Xmx1024M
-XX:MaxPermSize=256M
That means you give the max value to -Xms (1024M).
Best regards
Sabrina
One Star

Re: [resolved] tSOAP Message send failed

Yes, when I set Xms to 512M it also works. So the min memory size this jobs needs to start is 512M?
And just to be sure. What do you mean with
"There might be a conflict when -Xms is as same as -XX:MaxPermSize."
becuase this also works in my case. Setting both (Xms and Xmx) to 1024M works.
Moderator

Re: [resolved] tSOAP Message send failed

Hi,
If -XX:MaxPermSize=256M is as same as your -Xms(reduce from1024 to 256), there might be a conflict.
For JVM parameter setting, there is no standard answer. It totally depends on your designed job and the number of processing data.
Best regards
Sabrina
One Star

Re: [resolved] tSOAP Message send failed

Hi,
thank ypu for all the explanations and help. I was able to fix all the bugs and also to understand everything.
Best regards,
Nadja
Moderator

Re: [resolved] tSOAP Message send failed

Hi,
Thanks your feedback. Don't hesitate to post your issue on forum.
Best regards
Sabrina
One Star

Re: [resolved] tSOAP Message send failed

Hi,
I'm still working on the same job and am getting the "no more handles" error again. I have a tSOAP component and now I selected the option"Output in Document" (because I get XML data back). Can you please once again help me with this issue? Now the Xms = 512 and the Xmx = 1024 doesn't seem to be enough anymore, is this correct?
Best Regards
Nadja
Moderator

Re: [resolved] tSOAP Message send failed

Hi,
Is the max size of
-Xms 1024M
-Xmx1024M
-XX:MaxPermSize=256M OK for your current job.
Best regards
Sabrina
One Star

Re: [resolved] tSOAP Message send failed

It depends ;-). When I use tRow to look at my output of the tSOAP component (which is a document as mentioned) it doesn't work. But when I just wirte it to a xml file it works.
Moderator

Re: [resolved] tSOAP Message send failed

Hi,
Usually, the purpose of using tlogrow is testing. It will save output data in memory which probably cause memory issue. For a real work, it is OK without it.
Best regards
Sabrina