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 clintongormley
, 1 year ago
Object has already been built and is self-referencing itself <details>
java.lang.IllegalArgumentException: Object has already been built and is self-referencing itself
<details>	at org.elasticsearch.common.xcontent.XContentBuilder.ensureNotSeen(XContentBuilder.java:1021)	at org.elasticsearch.common.xcontent.XContentBuilder.value(XContentBuilder.java:890)	at org.elasticsearch.common.xcontent.XContentBuilder.field(XContentBuilder.java:883)	at org.elasticsearch.script.ScriptException.innerToXContent(ScriptException.java:92)	at org.elasticsearch.ElasticsearchException.toXContent(ElasticsearchException.java:243)	at org.elasticsearch.ElasticsearchException.toXContent(ElasticsearchException.java:310)	at org.elasticsearch.action.search.ShardSearchFailure.toXContent(ShardSearchFailure.java:164)	at org.elasticsearch.action.search.SearchPhaseExecutionException.innerToXContent(SearchPhaseExecutionException.java:143)	at org.elasticsearch.ElasticsearchException.toXContent(ElasticsearchException.java:243)	at org.elasticsearch.ElasticsearchException.toXContent(ElasticsearchException.java:310)	at org.elasticsearch.rest.BytesRestResponse.convert(BytesRestResponse.java:146)	at org.elasticsearch.rest.BytesRestResponse.(BytesRestResponse.java:92)	at org.elasticsearch.rest.BytesRestResponse.(BytesRestResponse.java:83)	at org.elasticsearch.rest.action.RestActionListener.onFailure(RestActionListener.java:58)	at org.elasticsearch.action.support.TransportAction$1.onFailure(TransportAction.java:97)	at org.elasticsearch.action.support.TransportAction$FilteredActionListener.onFailure(TransportAction.java:254)	at org.elasticsearch.action.search.AbstractSearchAsyncAction.raiseEarlyFailure(AbstractSearchAsyncAction.java:329)	at org.elasticsearch.action.search.AbstractSearchAsyncAction.onFirstPhaseResult(AbstractSearchAsyncAction.java:235)	at org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:170)	at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:51)	at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:954)	at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1055)	at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1033)	at org.elasticsearch.transport.TransportService$6.onFailure(TransportService.java:559)	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.onFailure(ThreadContext.java:490)	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39)	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)