Getting error "No X509TrustManager implementation available" on Fuse 7 after migrating from JDK 8 to JDK 11
Issue
After migrating from Java 1.8 to Java 11, a Camel route cannot be deployed, the following exception is displayed on the Fuse logs:
org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route myRoute: Route(myRoute)[[From[direct:readData]] -> [OnException[[com... because of Unable to execute HTTP request: No X509TrustManager implementation available
at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1826)
at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:136)
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:174)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:938)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:448)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:339)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1365)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1354)
at com.example.redhat.Application.main(Application.java:27)
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route myroute: Route(myroute)[[From[direct:readData]] -> [OnException[[com... because of Unable to execute HTTP request: No X509TrustManager implementation available
at org.apache.camel.impl.RouteService.warmUp(RouteService.java:147)
at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:3965)
at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3872)
at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3658)
at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3501)
at org.apache.camel.impl.DefaultCamelContext$4.call(DefaultCamelContext.java:3260)
at org.apache.camel.impl.DefaultCamelContext$4.call(DefaultCamelContext.java:3256)
at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3279)
at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3256)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3172)
at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:133)
... 15 common frames omitted
Caused by: com.amazonaws.SdkClientException: Unable to execute HTTP request: No X509TrustManager implementation available
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleRetryableException(AmazonHttpClient.java:1163)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1109)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:758)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:732)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:714)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:674)
at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:656)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:520)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4443)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4390)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4384)
at com.amazonaws.services.s3.AmazonS3Client.listObjects(AmazonS3Client.java:844)
at org.apache.camel.component.aws.s3.S3Endpoint.doStart(S3Endpoint.java:112)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:241)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1484)
at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:44)
at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:31)
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:160)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:62)
at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:1194)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:80)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72)
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
at org.apache.camel.impl.RouteService.startChildService(RouteService.java:370)
at org.apache.camel.impl.RouteService.doWarmUp(RouteService.java:196)
at org.apache.camel.impl.RouteService.warmUp(RouteService.java:145)
... 26 common frames omitted
Environment
- Fuse 7.x
- Migration from JDK 1.8 to JDK 11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.