Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-11189

Fuse Camel elasticsearch-rest component - ClassNotFoundException and IllegalAccessError

    XMLWordPrintable

Details

    • % %
    • fuse-7.7-build1
    • +
    • Hide

      Attempt to use a simple Camel elasticsearch-rest endpoint, e.g.

                      .to("elasticsearch-rest://local?operation=INDEX&indexName=twitter&indexType=tweet&hostAddresses=127.0.0.1:9200")
      
      Show
      Attempt to use a simple Camel elasticsearch-rest endpoint, e.g. .to( "elasticsearch- rest : //local?operation=INDEX&indexName=twitter&indexType=tweet&hostAddresses=127.0.0.1:9200" )
    • Fuse 7.5 Sprint 52 - Bug fix, Fuse 7.6 - Sprint 55 (1/4)

    Description

      There appears to be some headers missing from the elasticsearch bundles:

      Caused by: java.lang.ClassNotFoundException: org.apache.http.client.methods.HttpRequestBase not found by org.apache.servicemix.bundles.elasticsearch-client [241]
      
      Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.Logger not found by org.apache.servicemix.bundles.elasticsearch [240]
      
      karaf@root()> la -l | grep "24[01]"
      240 │ Active   │  50 │ 6.1.1.1                         │ mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch/6.1.1_1
      241 │ Active   │  50 │ 6.1.1.1                         │ mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch-client/6.1.1_1
      

      But even if you work around this with dynamic imports on those two bundles, you end up with:

      Caused by: java.lang.IllegalAccessError: tried to access method org.joda.time.format.PeriodFormatter.<init>(Lorg/joda/time/format/PeriodPrinter;Lorg/joda/time/format/PeriodParser;Ljava/util/Locale;Lorg/joda/time/PeriodType;)V from class org.joda.time.format.PeriodFormat
      

      Attachments

        Issue Links

          Activity

            People

              yfang@redhat.com Freeman(Yue) Fang
              rhn-support-shiggs Stephen Higgs
              Tomas Veskrna Tomas Veskrna
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: