Details
-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.3
-
None
-
%
-
Description
There are no test cases we have on camel-aws S3 component with SSL. I am unsure if SSL is supported.
Technically, i do not see any issue with enabling SSL though.
Attached is a reproducer application, example-camel-aws-s3-redhat-vgohel-reproducer.tar.gz, which on deployment has the below exception logged,
Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "com.amazonaws.ApacheHttpClientConfig.withSslSocketFactory(Lorg/apache/http/conn/ssl/SSLSocketFactory;)Lcom/amazonaws/ApacheHttpClientConfig;" the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the current class, com/redhat/SSLConfiguration, and the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) for the method's defining class, com/amazonaws/ApacheHttpClientConfig, have different Class objects for the type org/apache/http/conn/ssl/SSLSocketFactory used in the signature at com.redhat.SSLConfiguration.setSSLConfig(SSLConfiguration.java:33)
The issue seems to be coming when the internal Apache HttpClient's SSLSocketFactory trying to instantiated by the JRE/JDK which is used on aws component for making the request.