You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/05/25 12:20:55 UTC
[GitHub] [camel-quarkus] tplevko opened a new issue #2666: Error when using Camel Kinesis component - java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
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)®ion=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:
users@infra.apache.org
[GitHub] [camel-quarkus] ppalaga commented on issue #2666: Error when using Camel Kinesis component - java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #2666:
URL: https://github.com/apache/camel-quarkus/issues/2666#issuecomment-848693540
Which Camel Quarkus version are you using?
In our main branch, camel-quarkus-aws2-kinesis transitively depends on commons-logging-jboss-logging, so it should not be necessary to add it explicitly.
--
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:
users@infra.apache.org
[GitHub] [camel-quarkus] avano commented on issue #2666: Error when using Camel Kinesis component - java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
Posted by GitBox <gi...@apache.org>.
avano commented on issue #2666:
URL: https://github.com/apache/camel-quarkus/issues/2666#issuecomment-848996905
@ppalaga we used an older version, I confirmed that it works ok with `1.8.0`, so this one can be closed
--
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:
users@infra.apache.org
[GitHub] [camel-quarkus] ppalaga closed issue #2666: Error when using Camel Kinesis component - java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
Posted by GitBox <gi...@apache.org>.
ppalaga closed issue #2666:
URL: https://github.com/apache/camel-quarkus/issues/2666
--
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:
users@infra.apache.org