You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "David (Jira)" <ji...@apache.org> on 2019/10/01 14:24:00 UTC

[jira] [Created] (CAMEL-14026) camel-influxdb/NoClassDefFoundError/Moshi

David created CAMEL-14026:
-----------------------------

             Summary: camel-influxdb/NoClassDefFoundError/Moshi
                 Key: CAMEL-14026
                 URL: https://issues.apache.org/jira/browse/CAMEL-14026
             Project: Camel
          Issue Type: Bug
          Components: camel-influxdb
    Affects Versions: 2.24.2
         Environment: karaf 4.2.6

camel 2.24.2

(OpenJDK-8, docker)
            Reporter: David


Hi,

I am running karaf 4.2.6 and camel 2.24.2 (OpenJDK-8, docker).

Dependencies installed through feature definition automatically:

mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.influxdb-java/2.14_1

mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.retrofit/2.4.0_1
...

I am trying to create the bean for the influxdb connection using the
FactoryBuilder but I am getting the following error:

14:08:52.673 ERROR [pipe-stop 305] Unable to start container for
blueprint bundle com.ta-systeme.velocloud.VCEPathCollectorSSH/0.0.1.
SNAPSHOT
org.osgi.service.blueprint.container.ComponentDefinitionException: Error
when instantiating bean infxluxDBConnection of class
org.influxdb.InfluxDBFactory
 at
org.apache.aries.blueprint.container.BeanRecipe.wrapAsCompDefEx(BeanRecipe.java:362)

~[68:org.apache.aries.blueprint.core:1.10.2]
.......
Caused by: java.lang.NoClassDefFoundError: com/squareup/moshi/Moshi$Builder
 at
retrofit2.converter.moshi.MoshiConverterFactory.create(MoshiConverterFactory.java:48)

~[?:?]
 at org.influxdb.impl.InfluxDBImpl.<init>(InfluxDBImpl.java:169) ~[?:?]
 at org.influxdb.impl.InfluxDBImpl.<init>(InfluxDBImpl.java:123) ~[?:?]
 at org.influxdb.impl.InfluxDBImpl.<init>(InfluxDBImpl.java:187) ~[?:?]
 at org.influxdb.InfluxDBFactory.connect(InfluxDBFactory.java:30)
~[?:?]
....

Any idea what I am doing wrong?

Thanks,
David



--
This message was sent by Atlassian Jira
(v8.3.4#803005)