# Problems connecting to ES with java TransportClient API (v1.3.2)

**URL:** <https://discuss.elastic.co/t/problems-connecting-to-es-with-java-transportclient-api-v1-3-2/20483>\
**Category:** Elasticsearch\
**Created:** [October 29, 2014, 4:45pm UTC](https://discuss.elastic.co/t/problems-connecting-to-es-with-java-transportclient-api-v1-3-2/20483 "2014-10-29T16:45:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_Benson](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@Dave\_Benson](https://discuss.elastic.co/u/Dave_Benson)\
**Post date:** [October 29, 2014, 4:45pm UTC](https://discuss.elastic.co/t/problems-connecting-to-es-with-java-transportclient-api-v1-3-2/20483/1 "2014-10-29T16:45:24Z")

</div>

Hi, I'm trying to use the Java "node-with-no-data"-style API, and I'm  
running to trouble connecting. When trying to create the TransportClient  
with my settings containing only cluster.name=elasticsearch,  
I get the following exception:

14/10/29 09:29:23 INFO elasticsearch.plugins: [Piranha] loaded [], sites []

got exception: org.elasticsearch.common.inject.CreationException: Guice  
creation errors:

1. Error injecting constructor,  
org.elasticsearch.ElasticsearchIllegalArgumentException: no type support  
[test]

at org.elasticsearch.cache.recycler.CacheRecycler.(Unknown Source)

while locating org.elasticsearch.cache.recycler.CacheRecycler

1 error

I can see from the source that this config value "cache.recycler.type"  
should be unset, or set to a string like "default" or "none" -- somehow  
mine is set to "test"... However, merely adding that to my client's  
settings object doesn't seem to affect the print so i assume that it is  
either under a prefix, or being overridden. Sorry I'm a total noob with ES  
so I apologize if this is a dumb question. Still I could really use the  
help!

Thanks,

Dave Benson

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d798714b-d5b7-4d84-af5b-d643ae85e8df%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d798714b-d5b7-4d84-af5b-d643ae85e8df%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [October 29, 2014, 5:22pm UTC](https://discuss.elastic.co/t/problems-connecting-to-es-with-java-transportclient-api-v1-3-2/20483/2 "2014-10-29T17:22:24Z")

</div>

Can you post your code and the settings you use for instantiating the  
TransportClient?

Jörg

On Wed, Oct 29, 2014 at 5:45 PM, Dave Benson [lahiker42@gmail.com](mailto:lahiker42@gmail.com) wrote:

> Hi, I'm trying to use the Java "node-with-no-data"-style API, and I'm  
> running to trouble connecting. When trying to create the TransportClient  
> with my settings containing only cluster.name=elasticsearch,  
> I get the following exception:
> 
> 14/10/29 09:29:23 INFO elasticsearch.plugins: [Piranha] loaded , sites
> 
> got exception: org.elasticsearch.common.inject.CreationException: Guice  
> creation errors:
> 
> 1. Error injecting constructor,  
> org.elasticsearch.ElasticsearchIllegalArgumentException: no type support  
> [test]
> 
> at org.elasticsearch.cache.recycler.CacheRecycler.(Unknown Source)
> 
> while locating org.elasticsearch.cache.recycler.CacheRecycler
> 
> 1 error
> 
> I can see from the source that this config value "cache.recycler.type"  
> should be unset, or set to a string like "default" or "none" -- somehow  
> mine is set to "test"... However, merely adding that to my client's  
> settings object doesn't seem to affect the print so i assume that it is  
> either under a prefix, or being overridden. Sorry I'm a total noob with ES  
> so I apologize if this is a dumb question. Still I could really use the  
> help!
> 
> Thanks,
> 
> Dave Benson
> 
> --  
> 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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/d798714b-d5b7-4d84-af5b-d643ae85e8df%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d798714b-d5b7-4d84-af5b-d643ae85e8df%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/d798714b-d5b7-4d84-af5b-d643ae85e8df%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/d798714b-d5b7-4d84-af5b-d643ae85e8df%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHHLNJsyQhAKutUdV%2BzEjD\_tEEY2OtFfT718Y0itp3NZA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHHLNJsyQhAKutUdV%2BzEjD_tEEY2OtFfT718Y0itp3NZA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:53am UTC](https://discuss.elastic.co/t/problems-connecting-to-es-with-java-transportclient-api-v1-3-2/20483/3 "2017-07-06T00:53:08Z")

</div>


