Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15521

InfluxDB connection bean creation fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.3
    • 3.4.4, 3.6.0
    • camel-influxdb
    • None
    • Unknown

    Description

      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

       

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            ppatierno Paolo Patierno
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: