I want to create a es client but I got a error like this:
Method threw 'java.lang.StackOverflowError' exception. Cannot evaluate org.elasticsearch.common.inject.InjectorImpl.toString()
This is my code:
Settings settings = Settings.builder()
.put("cluster.name", this.esName)
.put("client.transport.sniff", true)
.build();
TransportClient = new PreBuiltTransportClient(settings);
client.addTransportAddress(TransportAddress(new InetSocketAddress(InetAddresses.forString("163.2.4.56"),9300)));
Does anybody know the reason?