camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vanshul.Chawla <Vanshul.Cha...@target.com>
Subject RE: Fuse elasticsearch error
Date Thu, 11 Jun 2015 09:36:52 GMT
Yes dependency is added. Actually without dependency it will not even install the bundle. There
we 2 other fixes which were required ie names.txt and changing elasticsearch version in a
features file which I did.
Issue is its not as is supported in Fuse 6.1 so that might be an issue. In camel it works
fine.

Thanks and Regards,

Vanshul Chawla

-----Original Message-----
From: Reji Mathews [mailto:contactreji@gmail.com] 
Sent: Thursday, June 11, 2015 2:55 PM
To: users@camel.apache.org
Subject: Re: Fuse elasticsearch error

Whats the version of camel you are using?
Have you added the dependency in the POM.xml file.

On Thu, Jun 11, 2015 at 9:11 AM, Vanshul.Chawla <Vanshul.Chawla@target.com>
wrote:

> Hello,
>
> I am trying to do a simple POC on elastic search using Fuse. I have 
> resolved errors for names.txt and snowball and my blueprint gets started.
> I am getting below error now:
>
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
> org.elasticsearch.index.codec.postingsformat.PostingFormats
>
> My route is
>
> <camelContext id="elasticsearch"
>               xmlns="http://camel.apache.org/schema/blueprint">
>               <propertyPlaceholder id="properties5"
>
>  location="blueprint:fuse-experian-sendemail-bundle-config5" />
>               <dataFormats>
>                      <xmljson id="xmljson" />
>               </dataFormats>
>               <route>
>                      <from uri="file:src/in/elasticsearch" />
>                      <marshal ref="xmljson" />
>                      <convertBodyTo type="java.lang.byte[]"
> charset="utf-16"/>
>                      <log message="Body inserted to elastic search is 
> ${body}"/>
>                      <to
>
>  uri="elasticsearch://local?operation=INDEX&amp;indexName=mylog&amp;indexType=data"
> />
>                      <log message="Index id from elastic search is 
> ${body} and ${headers}"/>
>               </route>
>        </camelContext>
>
> I am using an xml file, converting to json and then to byte array and 
> then trying to insert in elastic search.
>
> Any clue if something is missing here?
>
> Thanks and Regards,
>
> Vanshul Chawla
>
>
Mime
View raw message