The TransportClient is part of the full elasticsearch distribution.
We don't have another official client for that.

If you really need to have another Lucene version in your class path, I'm 
afraid you need to use HTTP REST Layer and not Transport layer.

May be you should look at JEST in that case? 
http://www.elasticsearch.org/guide/en/elasticsearch/client/community/current/clients.html#community-java

-- 
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr


Le 27 juin 2014 à 13:32:55, Jeroen Reijn ([email protected]) a écrit:

Hi all,

while trying to use the TransportClient to connect to a remote elasticsearch 
cluster in a project that already contains Lucene libraries it fails to create 
a client connection with the following error.



[INFO] [talledLocalContainer] Jun 27, 2014 12:43:53 PM 
org.apache.catalina.core.StandardContext loadOnStartup
[INFO] [talledLocalContainer] SEVERE: Servlet /app threw load() exception
[INFO] [talledLocalContainer] at 
org.elasticsearch.Version.<clinit>(Version.java:119)
[INFO] [talledLocalContainer] at 
org.elasticsearch.client.transport.TransportClient.<init>(TransportClient.java:169)
[INFO] [talledLocalContainer] at 
org.elasticsearch.client.transport.TransportClient.<init>(TransportClient.java:125)


Caused by: java.lang.NoSuchFieldError: LUCENE_41




I guess this has to do with the assignment of 

Version version = Version.CURRENT;


Is there a particular reason why the transport client depends on the Lucene 
core library which contains the versions?

Is there a way I can work around this besides not having the old lucene 
libraries in my classpath?

Kind regards,

Jeroen
--
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/e29b3445-bef2-440c-b439-65a9a69a8291%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/etPan.53ad65ad.2eb141f2.b75f%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/d/optout.

Reply via email to