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

Elasticsearch component fails in an OSGi environment due to missing names.txt

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.1
    • Component/s: Camel
    • Labels:
      None
    • Environment:

      Red Hat JBoss Fuse 6.1.0

    • Steps to Reproduce:
      Hide

      1) Download and unzip TestCase_ElasticSearchIssue.zip
      2) Go to the extracted folder.
      3) Run mvn clean install to build the osgi bundle.
      4) In fuse install feature camel-elasticsearch using command

      features:install camel-elasticsearch
      

      5) Deploy bundle using command

      osgi:install -s mvn:com.mycompany/camel-blueprint-elasticsearch/1.0
      

      6) In fuse.log we get error

      Failed to resolve config path [names.txt], tried file path [names.txt], path file [xxx/config/names.txt], and classpath
         at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:945)
         at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:187)
      ...
      Caused by: org.elasticsearch.env.FailedToResolveConfigException: Failed to resolve config path [names.txt], tried file path [names.txt], path file [xxx/config/names.txt], and classpath
         at org.elasticsearch.env.Environment.resolveConfig(Environment.java:213)
         at org.elasticsearch.node.internal.InternalSettingsPreparer.prepareSettings(InternalSettingsPreparer.java:119)
      

      Show
      1) Download and unzip TestCase_ElasticSearchIssue.zip 2) Go to the extracted folder. 3) Run mvn clean install to build the osgi bundle. 4) In fuse install feature camel-elasticsearch using command features:install camel-elasticsearch 5) Deploy bundle using command osgi:install -s mvn:com.mycompany/camel-blueprint-elasticsearch/1.0 6) In fuse.log we get error Failed to resolve config path [names.txt], tried file path [names.txt], path file [xxx/config/names.txt], and classpath at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:945) at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:187) ... Caused by: org.elasticsearch.env.FailedToResolveConfigException: Failed to resolve config path [names.txt], tried file path [names.txt], path file [xxx/config/names.txt], and classpath at org.elasticsearch.env.Environment.resolveConfig(Environment.java:213) at org.elasticsearch.node.internal.InternalSettingsPreparer.prepareSettings(InternalSettingsPreparer.java:119)

      Description

      As described in community JIRA https://issues.apache.org/jira/browse/CAMEL-8194, this issue is fixed with camel versions 2.13.4, 2.14.2, 2.15.0.

      But this fix is not backported to 2.12.0.redhat-6-1-x-patch branch yet.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tplevko Tomas Plevko
                Reporter:
                cpandey Chandra Shekhar Pandey
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: