Facebook
From Diminutive Sloth, 1 Week ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 71
  1. org.springframework.data.elasticsearch.UncategorizedElasticsearchException: Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]; nested exception is ElasticsearchStatusException[Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]]
  2.         at org.springframework.data.elasticsearch.core.ElasticsearchExceptionTranslator.translateExceptionIfPossible(ElasticsearchExceptionTranslator.java:66)
  3.         at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.translateException(ElasticsearchRestTemplate.java:402)
  4.         at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.execute(ElasticsearchRestTemplate.java:385)
  5.         at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.search(ElasticsearchRestTemplate.java:296)
  6.         at com.smartiq.stockservice.service.DefaultVehicleElasticService.listVehicles(DefaultVehicleElasticService.java:266)
  7.         at com.smartiq.stockservice.service.DefaultVehicleFacadeService.listVehicles(DefaultVehicleFacadeService.java:2005)
  8.         at com.smartiq.stockservice.service.DefaultVehicleFacadeService$$FastClassBySpringCGLIB$$ca9904d2.invoke(<generated>)
  9.         at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  10.         at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
  11.         at com.smartiq.stockservice.service.DefaultVehicleFacadeService$$EnhancerBySpringCGLIB$$a2659bb4.listVehicles(<generated>)
  12.         at com.smartiq.stockservice.controller.VehicleController.getVehicleList(VehicleController.java:438)
  13.         at com.smartiq.stockservice.controller.VehicleController$$FastClassBySpringCGLIB$$865a6e7b.invoke(<generated>)
  14.         at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  15.         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779)
  16.         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
  17.         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
  18.         at org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:123)
  19.         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
  20.         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
  21.         at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692)
  22.         at com.smartiq.stockservice.controller.VehicleController$$EnhancerBySpringCGLIB$$5b78b17f.getVehicleList(<generated>)
  23.         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  24.         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  25.         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  26.         at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  27.         at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197)
  28.         at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141)
  29.         at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
  30.         at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894)
  31.         at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
  32.         at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
  33.         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1063)
  34.         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)
  35.         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
  36.         at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
  37.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
  38.         at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
  39.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
  40.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
  41.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  42.         at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  43.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  44.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  45.         at org.springframework.web.servlet.resource.ResourceUrlEncodingFilter.doFilter(ResourceUrlEncodingFilter.java:67)
  46.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  47.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  48.         at com.smartiq.stockservice.security.SecurityFilter.doFilterInternal(SecurityFilter.java:82)
  49.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
  50.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  51.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  52.         at com.smartiq.stockservice.security.LogFilter.doFilterInternal(LogFilter.java:46)
  53.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
  54.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  55.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  56.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:327)
  57.         at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115)
  58.         at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:81)
  59.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
  60.         at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:121)
  61.         at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:115)
  62.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
  63.         at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:126)
  64.         at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:81)
  65.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
  66.         at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:105)
  67.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
  68.         at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:149)
  69.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
  70.         at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
  71.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
  72.         at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:103)
  73.         at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:89)
  74.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
  75.         at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110)
  76.         at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)
  77.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
  78.         at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:55)
  79.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
  80.         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
  81.         at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:211)
  82.         at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183)
  83.         at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)
  84.         at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)
  85.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  86.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  87.         at org.springframework.cloud.sleuth.instrument.web.servlet.TracingFilter.doFilter(TracingFilter.java:89)
  88.         at org.springframework.cloud.sleuth.autoconfig.instrument.web.LazyTracingFilter.doFilter(TraceWebServletConfiguration.java:114)
  89.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  90.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  91.         at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
  92.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
  93.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  94.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  95.         at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
  96.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
  97.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
  98.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
  99.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
  100.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
  101.         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
  102.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
  103.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
  104.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
  105.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
  106.         at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)
  107.         at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
  108.         at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860)
  109.         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1598)
  110.         at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
  111.         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
  112.         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
  113.         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  114.         at java.base/java.lang.Thread.run(Thread.java:834)
  115. Caused by: org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]
  116.         at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:176)
  117.         at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1933)
  118.         at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1910)
  119.         at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1667)
  120.         at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1624)
  121.         at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1594)
  122.         at org.elasticsearch.client.RestHighLevelClient.search(RestHighLevelClient.java:1110)
  123.         at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.lambda$search$11(ElasticsearchRestTemplate.java:296)
  124.         at org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate.execute(ElasticsearchRestTemplate.java:383)
  125.         ... 110 common frames omitted
  126.         Suppressed: org.elasticsearch.client.ResponseException: method [POST], host [https://elastic-stock-db-dev.smartiq.io:443], URI [/vehicle_index/_search?typed_keys=true&max_concurrent_shard_requests=5&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&ignore_throttled=true&search_type=dfs_query_then_fetch&batched_reduce_size=512&ccs_minimize_roundtrips=true], status line [HTTP/1.1 400 Bad Request]
  127. {"error":{"root_cause":[{"type":"script_exception","reason":"runtime error","script_stack":["org.elasticsearch.index.fielddata.ScriptDocValues$Dates.get(ScriptDocValues.java:150)","org.elasticsearch.index.fielddata.ScriptDocValues$Dates.getValue(ScriptDocValues.java:144)","return (new Date().getTime() - doc['stockDate'].value.getMillis())/1000/60/60/24;} else {","                                               ^---- HERE"],"script":"if (doc['soldAt'].empty) {return (new Date().getTime() - doc['stockDate'].value.getMillis())/1000/60/60/24;} else {return (doc['soldAt'].value.getMillis() - doc['stockDate'].value.getMillis())/1000/60/60/24;}","lang":"painless","position":{"offset":73,"start":26,"end":115}}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"vehicle_index","node":"qae97lrzQHCiNFqds7IVPg","reason":{"type":"script_exception","reason":"runtime error","script_stack":["org.elasticsearch.index.fielddata.ScriptDocValues$Dates.get(ScriptDocValues.java:150)","org.elasticsearch.index.fielddata.ScriptDocValues$Dates.getValue(ScriptDocValues.java:144)","return (new Date().getTime() - doc['stockDate'].value.getMillis())/1000/60/60/24;} else {","                                               ^---- HERE"],"script":"if (doc['soldAt'].empty) {return (new Date().getTime() - doc['stockDate'].value.getMillis())/1000/60/60/24;} else {return (doc['soldAt'].value.getMillis() - doc['stockDate'].value.getMillis())/1000/60/60/24;}","lang":"painless","position":{"offset":73,"start":26,"end":115},"caused_by":{"type":"illegal_state_exception","reason":"A document doesn't have a value for a field! Use doc[<field>].size()==0 to check if a document is missing a field!"}}}]},"status":400}
  128.                 at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:326)
  129.                 at org.elasticsearch.client.RestClient.performRequest(RestClient.java:296)
  130.                 at org.elasticsearch.client.RestClient.performRequest(RestClient.java:270)
  131.                 at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1654)
  132.                 ... 115 common frames omitted