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

Fuse Camel elasticsearch-rest component - ClassNotFoundException and IllegalAccessError

XMLWordPrintable

    • % %
    • 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)

      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
      

        1. apache-camel-2.21.0.fuse-760024-redhat-00001-features.xml
          209 kB
          Freeman(Yue) Fang
        2. test.sh
          2 kB
          Zoran Regvart
        3. working-patch-with-elastic6.4.2-lucene7.4.tar
          37.51 MB
          Freeman(Yue) Fang

              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

                Created:
                Updated:
                Resolved: