Project: talendesb
Issue TESB-10859: Throw exception when TransportToken is applied to operation with runtime builds 5.4.0.M3
Export models with studio build V5.4.0NB_r106669. Follow reproduced steps with runtime build 5.4.0.M2 (5.4.0.M2-SNAPSHOT_BPM_1052), then this usercase worked well. But with runtime build 5.4.0.M3 (5.4.0.M3-SNAPSHOT_BPM_1133/5.4.0.M3-SNAPSHOT_BPM_1128), throw exception as below: {noformat} 11:17:02,973 | WARN | pool-14-thread-1 | ache.cxf.common.logging.LogUtils 452 | 122 - org.apache.cxf.cxf-api - 2.7.7.SNAPSHOT | Interceptor for {http://services.test.esb.talend.org/Standard}StandardTestServiceProvider#{http://services.test.esb.talend.org/Standard}doRequestResponse has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: Could not send Message. org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)[122:org.apache.cxf.cxf-api:2.7.7.SNAPSHOT] org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)[122:org.apache.cxf.cxf-api:2.7.7.SNAPSHOT] org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:565)[122:org.apache.cxf.cxf-api:2.7.7.SNAPSHOT] org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:474)[122:org.apache.cxf.cxf-api:2.7.7.SNAPSHOT] org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:377)[122:org.apache.cxf.cxf-api:2.7.7.SNAPSHOT] org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:330)[122:org.apache.cxf.cxf-api:2.7.7.SNAPSHOT] org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:350)[122:org.apache.cxf.cxf-api:2.7.7.SNAPSHOT] org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:336)[122:org.apache.cxf.cxf-api:2.7.7.SNAPSHOT] org.talend.esb.job.controller.internal.RuntimeESBConsumer.sendDocument(RuntimeESBConsumer.java:343)[190:org.talend.esb.job.controller:5.4.0.SNAPSHOT] org.talend.esb.job.controller.internal.RuntimeESBConsumer.invoke(RuntimeESBConsumer.java:316)[190:org.talend.esb.job.controller:5.4.0.SNAPSHOT] mfshen20130819.registryconsumerdorequestresponse_0_6.RegistryConsumerDoRequestResponse.tFixedFlowInput_1Process(RegistryConsumerDoRequestResponse.java:2069)[259:mfshen20130819.RegistryConsumerDoRequestResponse:0.6] mfshen20130819.registryconsumerdorequestresponse_0_6.RegistryConsumerDoRequestResponse.runJobInTOS(RegistryConsumerDoRequestResponse.java:2893)[259:mfshen20130819.RegistryConsumerDoRequestResponse:0.6] org.talend.esb.job.controller.internal.SimpleJobTask$JobRunner.run(SimpleJobTask.java:80)[190:org.talend.esb.job.controller:5.4.0.SNAPSHOT] java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_21] java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_21] java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_21] org.talend.esb.job.controller.internal.SimpleJobTask.run(SimpleJobTask.java:62)[190:org.talend.esb.job.controller:5.4.0.SNAPSHOT] java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_21] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_21] java.lang.Thread.run(Thread.java:722)[:1.7.0_21] Caused by: javax.net.ssl.SSLHandshakeException: SSLHandshakeException invoking https://localhost:9001/services/tesb.test.participants.osgi.sr.provider/soap/RegistryStandardDataServiceProvider/: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.7.0_21] sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.7.0_21] sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_21] java.lang.reflect.Constructor.newInstance(Constructor.java:525)[:1.7.0_21] org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1338)[130:org.apache.cxf.cxf-rt-transports-http:2.7.7.SNAPSHOT] org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1322)[130:org.apache.cxf.cxf-rt-transports-http:2.7.7.SNAPSHOT] org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)[122:org.apache.cxf.cxf-api:2.7.7.SNAPSHOT] org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)[130:org.apache.cxf.cxf-rt-transports-http:2.7.7.SNAPSHOT] org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)[122:org.apache.cxf.cxf-api:2.7.7.SNAPSHOT]	... 19 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 sun.security.ssl.Alerts.getSSLException(Alerts.java:192)[:1.7.0_21] sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1886)[:1.7.0_21] sun.security.ssl.Handshaker.fatalSE(Handshaker.java:276)[:1.7.0_21] sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)[:1.7.0_21] sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1341)[:1.7.0_21] sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153)[:1.7.0_21] sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)[:1.7.0_21] sun.security.ssl.Handshaker.process_record(Handshaker.java:804)[:1.7.0_21] sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016)[:1.7.0_21] sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)[:1.7.0_21] sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)[:1.7.0_21] sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)[:1.7.0_21] sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:515)[:1.7.0_21] sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)[:1.7.0_21] sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1090)[:1.7.0_21] sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)[:1.7.0_21] org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.setupWrappedStream(URLConnectionHTTPConduit.java:168)[130:org.apache.cxf.cxf-rt-transports-http:2.7.7.SNAPSHOT] org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1282)[130:org.apache.cxf.cxf-rt-transports-http:2.7.7.SNAPSHOT] org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1238)[130:org.apache.cxf.cxf-rt-transports-http:2.7.7.SNAPSHOT] org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.onFirstWrite(URLConnectionHTTPConduit.java:195)[130:org.apache.cxf.cxf-rt-transports-http:2.7.7.SNAPSHOT] org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:47)[122:org.apache.cxf.cxf-api:2.7.7.SNAPSHOT] org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)[122:org.apache.cxf.cxf-api:2.7.7.SNAPSHOT] org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1295)[130:org.apache.cxf.cxf-rt-transports-http:2.7.7.SNAPSHOT]	... 22 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 sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:385)[:1.7.0_21] sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)[:1.7.0_21] sun.security.validator.Validator.validate(Validator.java:260)[:1.7.0_21] sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)[:1.7.0_21] sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231)[:1.7.0_21] sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)[:1.7.0_21] sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1323)[:1.7.0_21]	... 40 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:196)[:1.7.0_21] java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268)[:1.7.0_21] sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:380)[:1.7.0_21]	... 46 more {noformat}
Story points: 1