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

Mixing elasticsearch versions between spring boot dependencies and camel parent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • FIS 2.0
    • FIS 2.0
    • FIS-Camel
    • None
    • % %
    • FIS 2.0 Sprint 9

      Camel parent defines 1.4.1.RELEASE spring boot version:
      https://github.com/jboss-fuse/camel/blob/camel-2.18.1.redhat-000004/parent/pom.xml#L544

      Spring boot dependencies with version 1.4.1.RELEASE define 2.4.0 version of elasticsearch
      https://github.com/spring-projects/spring-boot/blob/v1.4.1.RELEASE/spring-boot-dependencies/pom.xml#L76

      But camel parent defines 2.3.5 version of elasticsearch
      https://github.com/jboss-fuse/camel/blob/camel-2.18.1.redhat-000004/parent/pom.xml#L173

      So when we use spring boot dependencies as well as the camel parent within dependency management, the version of camel-parent is overwritten by version from spring boot dependencies and it raise the given error.

      java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.Version
      at org.elasticsearch.node.Node.<init>(Node.java:140)
      at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)
      at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:150)
      at org.apache.camel.component.elasticsearch.ElasticsearchEndpoint.doStart(ElasticsearchEndpoint.java:105)
      at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      at org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:236)
      at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
      at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
      at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
      at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:80)
      at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)

              Unassigned Unassigned
              llowinge@redhat.com Lukas Lowinger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: