Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by dadoonet
, 1 year ago
discoveryNodes must be set before calling toXContent with group_by=nodes
java.lang.IllegalStateException: discoveryNodes must be set before calling toXContent with group_by=nodes	at org.elasticsearch.action.admin.cluster.node.tasks.list.ListTasksResponse.toXContent(ListTasksResponse.java:159)	at org.elasticsearch.common.Strings.toString(Strings.java:901)	at org.elasticsearch.common.Strings.toString(Strings.java:887)	at org.elasticsearch.action.admin.cluster.node.tasks.list.ListTasksResponse.toString(ListTasksResponse.java:208)	at java.lang.String.valueOf(String.java:2994)	at java.lang.StringBuilder.append(StringBuilder.java:131)	at org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertVersionSerializable(ElasticsearchAssertions.java:678)	at org.elasticsearch.test.transport.AssertingLocalTransport.handleParsedResponse(AssertingLocalTransport.java:85)	at org.elasticsearch.transport.local.LocalTransport.handleResponse(LocalTransport.java:386)	at org.elasticsearch.transport.local.LocalTransport.processReceivedMessage(LocalTransport.java:292)	at org.elasticsearch.transport.local.LocalTransport.lambda$receiveMessage$0(LocalTransport.java:252)	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:450)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)	at java.lang.Thread.run(Thread.java:745)