Paolo Patierno created CAMEL-15521:
--------------------------------------
Summary: InfluxDB connection bean creation fails
Key: CAMEL-15521
URL: https://issues.apache.org/jira/browse/CAMEL-15521
Project: Camel
Issue Type: Bug
Components: camel-influxdb
Affects Versions: 3.4.3
Reporter: Paolo Patierno
Hi,
I am using Apache Camel 3.4.3 for creating a route involving InfluxDB.
While trying to create the connection bean with the following code:
{{InfluxDB influxDB = InfluxDBFactory.connect("http://localhost:8086");}}
{{influxDB.query(new Query("CREATE DATABASE " + "drivers", "drivers"));}}
{{CamelContext camelContext = new DefaultCamelContext();}}
{{camelContext.getRegistry().bind("connectionBean", influxDB);}}
I get the following exception on the first line while trying to connect to the
InfluxDB server:
WARNING: An illegal reflective access operation has occurredWARNING: An illegal
reflective access operation has occurredWARNING: Illegal reflective access by
retrofit2.Platform
(file:/home/ppatiern/.m2/repository/com/squareup/retrofit2/retrofit/2.8.1/retrofit-2.8.1.jar)
to constructor
java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)WARNING: Please
consider reporting this to the maintainers of retrofit2.PlatformWARNING: Use
--illegal-access=warn to enable warnings of further illegal reflective access
operationsWARNING: All illegal access operations will be denied in a future
releaseException in thread "main" java.lang.NoClassDefFoundError:
kotlin/jvm/internal/Intrinsics at
okhttp3.logging.HttpLoggingInterceptor.<init>(HttpLoggingInterceptor.kt) at
okhttp3.logging.HttpLoggingInterceptor.<init>(HttpLoggingInterceptor.kt:40) at
okhttp3.logging.HttpLoggingInterceptor.<init>(HttpLoggingInterceptor.kt) at
org.influxdb.impl.InfluxDBImpl.<init>(InfluxDBImpl.java:146) at
org.influxdb.impl.InfluxDBImpl.<init>(InfluxDBImpl.java:120) at
org.influxdb.impl.InfluxDBImpl.<init>(InfluxDBImpl.java:187) at
org.influxdb.InfluxDBFactory.connect(InfluxDBFactory.java:30) at
io.ppatierno.formula1.F1KafkaInfluxDBApp.main(F1KafkaInfluxDBApp.java:17)Caused
by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics 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) ... 8 more
--
This message was sent by Atlassian Jira
(v8.3.4#803005)