I am using ES 5.6.3. In my program I am using the rest-client 5.6.3 jar files. This is how I am constructing my RestClient:
RestClient restClient = RestClient.Builder(new HttpHost("localhost", 9200, "http")).build();
I have tried using the restClient.performRequest() method attempting to do various things but it always throws "java.lang.IllegalStateException: Request cannot be executed; I/O reactor status: STOPPED".
My external ES is running on the same host as the test, which I am running from IntelliJ. I am tailing the ES log file and don't see any activity. I can do a curl command to ES in a terminal and that works fine.
Any ideas?