org.springframework.web.util.NestedServletException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 4013#241246970
    via GitHub by deepu105
    ,
  • test failures
    via GitHub by mattweber
    ,
  • How to generate csv response in elasticsearch?
    via Stack Overflow by oblivion
    ,
    • org.springframework.web.util.NestedServletException: Request processing failed; nested exception is Failed to execute phase [query], all shards failed; shardFailures {[PAKHGJZdSMahhgRRBU6AXQ][testserviceimpl][0]: RemoteTransportException[[Ahura][local[1]][indices:data/read/search[phase/query]]]; nested: SearchParseException[failed to parse search source [{"query":{"wrapper":{"query":"aWQ6MQ=="}}}]]; nested: ElasticsearchParseException[Failed to derive xcontent]; }{[PAKHGJZdSMahhgRRBU6AXQ][testserviceimpl][1]: RemoteTransportException[[Ahura][local[1]][indices:data/read/search[phase/query]]]; nested: SearchParseException[failed to parse search source [{"query":{"wrapper":{"query":"aWQ6MQ=="}}}]]; nested: ElasticsearchParseException[Failed to derive xcontent]; }{[PAKHGJZdSMahhgRRBU6AXQ][testserviceimpl][2]: RemoteTransportException[[Ahura][local[1]][indices:data/read/search[phase/query]]]; nested: SearchParseException[failed to parse search source [{"query":{"wrapper":{"query":"aWQ6MQ=="}}}]]; nested: ElasticsearchParseException[Failed to derive xcontent]; }{[PAKHGJZdSMahhgRRBU6AXQ][testserviceimpl][3]: RemoteTransportException[[Ahura][local[1]][indices:data/read/search[phase/query]]]; nested: SearchParseException[failed to parse search source [{"query":{"wrapper":{"query":"aWQ6MQ=="}}}]]; nested: ElasticsearchParseException[Failed to derive xcontent]; }{[PAKHGJZdSMahhgRRBU6AXQ][testserviceimpl][4]: RemoteTransportException[[Ahura][local[1]][indices:data/read/search[phase/query]]]; nested: SearchParseException[failed to parse search source [{"query":{"wrapper":{"query":"aWQ6MQ=="}}}]]; nested: ElasticsearchParseException[Failed to derive xcontent]; } at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861) at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) at org.springframework.test.web.servlet.TestDispatcherServlet.service(TestDispatcherServlet.java:65) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.springframework.mock.web.MockFilterChain$ServletFilterProxy.doFilter(MockFilterChain.java:167) at org.springframework.mock.web.MockFilterChain.doFilter(MockFilterChain.java:134) at org.springframework.test.web.servlet.MockMvc.perform(MockMvc.java:155) at com.mycompany.myapp.web.rest.TestServiceImplResourceIntTest.searchTestServiceImpl(TestServiceImplResourceIntTest.java:203) Caused by: org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed at org.elasticsearch.action.search.AbstractSearchAsyncAction.onFirstPhaseResult(AbstractSearchAsyncAction.java:206) at org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:152) at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:46) at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:855) at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:833) at org.elasticsearch.transport.TransportService$4.onFailure(TransportService.java:387) 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) Caused by: org.elasticsearch.ElasticsearchParseException: Failed to derive xcontent at org.elasticsearch.common.xcontent.XContentFactory.xContent(XContentFactory.java:201) at org.elasticsearch.common.xcontent.XContentFactory.xContent(XContentFactory.java:192) at org.elasticsearch.index.query.WrapperQueryParser.parse(WrapperQueryParser.java:60) at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:250) at org.elasticsearch.index.query.IndexQueryParserService.innerParse(IndexQueryParserService.java:320) at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:223) at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:218) at org.elasticsearch.search.query.QueryParseElement.parse(QueryParseElement.java:33) at org.elasticsearch.search.SearchService.parseSource(SearchService.java:838) at org.elasticsearch.search.SearchService.createContext(SearchService.java:654) at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:620) at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:371) at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:368) at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:365) at org.elasticsearch.transport.TransportRequestHandler.messageReceived(TransportRequestHandler.java:33) at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:75) at org.elasticsearch.transport.TransportService$4.doRun(TransportService.java:376) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ... 3 more
    No Bugmate found.