tplevko opened a new issue #2666:
URL: https://github.com/apache/camel-quarkus/issues/2666


   I'm getting following error when trying to use `camel-quarkus-aws2-kinesis` 
component in route:
   
   ```
   2021-05-25 14:13:39,057 ERROR [io.qua.run.Application] (main) Failed to 
start application (with profile prod): java.lang.ClassNotFoundException: 
org.apache.commons.logging.LogFactory
        at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
        at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        at 
org.apache.http.conn.ssl.AbstractVerifier.<init>(AbstractVerifier.java:61)
        at 
org.apache.http.conn.ssl.AllowAllHostnameVerifier.<init>(AllowAllHostnameVerifier.java:44)
        at 
org.apache.http.conn.ssl.AllowAllHostnameVerifier.<clinit>(AllowAllHostnameVerifier.java:46)
        at 
org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:151)
        at 
software.amazon.awssdk.http.apache.ApacheHttpClient$ApacheConnectionManagerFactory.getPreferredSocketFactory(ApacheHttpClient.java:615)
   ```
   I found a workaround - adding following dependency to the project. Shouldn't 
this come however already with the camel quarkus component?
   ```
   <dependency>
       <groupId>org.jboss.logging</groupId>
       <artifactId>commons-logging-jboss-logging</artifactId>
   </dependency>
   ```
   The route:
   
   ```
   package com.test;
   
   import java.lang.Exception;
   import java.lang.Override;
   import javax.enterprise.context.ApplicationScoped;
   import org.apache.camel.builder.RouteBuilder;
   
   @ApplicationScoped
   public class MyRouteBuilder extends RouteBuilder {
     @Override
     public void configure() throws Exception {
       from("timer:x?repeatCount=1")
       .setHeader("CamelAwsKinesisPartitionKey", constant("partition-2"))
       .setHeader("CamelAwsKinesisSequenceNumber", constant("1"))
       .setBody()
       .constant("kinesis msg Tue May 11 10:13:06 CEST 
2021").to("aws2-kinesis://xxxxxx?accessKey=RAW(xxxxx)&secretKey=RAW(xxxx)&region=xxxxx");
     }
   }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to