Home > Back-end >  Springcloud had No instances available for the provider - answer
Springcloud had No instances available for the provider - answer

Time:04-27

Eurka yml

The provider yml

The provider start class

Consumer yml

Consumer to start the class

Consumer handler

Registry


An error
 Java. Lang. An IllegalStateException: No instances available for the provider - answer 
At org.springframework.cloud.net flix. Ribbon. RibbonLoadBalancerClient. Execute (RibbonLoadBalancerClient. Java: 119) ~ [spring - the cloud - netflix - ribbon - 2.2.7. The jar: 2.2.7. RELEASE]
At org.springframework.cloud.net flix. Ribbon. RibbonLoadBalancerClient. Execute (RibbonLoadBalancerClient. Java: 99) ~ [spring - the cloud - netflix - ribbon - 2.2.7. The jar: 2.2.7. RELEASE]
At org. Springframework. Cloud. Client. Loadbalancer. LoadBalancerInterceptor. Intercept (LoadBalancerInterceptor. Java: 56) ~ [spring -- cloud - Commons - 3.0.2. Jar: 3.0.2]
The at org. Springframework. HTTP. Client. InterceptingClientHttpRequest $InterceptingRequestExecution. Execute (InterceptingClientHttpRequest. Java: 93) ~ [spring - web - 5.3.6. Jar: 5.3.6]
The at org. Springframework. HTTP. Client. InterceptingClientHttpRequest. ExecuteInternal (InterceptingClientHttpRequest. Java: 77) ~ [spring - web - 5.3.6. Jar: 5.3.6]
The at org. Springframework. HTTP. Client. AbstractBufferingClientHttpRequest. ExecuteInternal (AbstractBufferingClientHttpRequest. Java: 48) ~ [spring - web - 5.3.6. Jar: 5.3.6]
The at org. Springframework. HTTP. Client. AbstractClientHttpRequest. Execute (AbstractClientHttpRequest. Java: 66) ~ [spring - web - 5.3.6. Jar: 5.3.6]
The at org. Springframework. Web. Client. RestTemplate. The doExecute (RestTemplate. Java: 776) ~ [spring - web - 5.3.6. Jar: 5.3.6]
The at org. Springframework. Web. Client. RestTemplate. Execute (RestTemplate. Java: 711) ~ [spring - web - 5.3.6. Jar: 5.3.6]
The at org. Springframework. Web. Client. RestTemplate. GetForObject (RestTemplate. Java: 334) ~ [spring - web - 5.3.6. Jar: 5.3.6]
At com. Answer. Consumer. Handler. PersonHandler. GetPerson (PersonHandler. Java: 24) ~ (classes/: na)
The at Java. The base/JDK. Internal. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method) ~ [na: na]
The at Java. The base/JDK. Internal. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 62) ~ [na: na]
The at Java. The base/JDK. Internal. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java: ~ [na: na]
The at Java. The base/Java. Lang. Reflect. Method. Invoke (566) Method. The Java: ~ [na: na]
The at org. Springframework. Web. Method. Support. InvocableHandlerMethod. DoInvoke (InvocableHandlerMethod. Java: 197) ~ [spring - web - 5.3.6. Jar: 5.3.6]
The at org. Springframework. Web. Method. Support. InvocableHandlerMethod. InvokeForRequest (InvocableHandlerMethod. Java: 141) ~ [spring - web - 5.3.6. Jar: 5.3.6]
The at org. Springframework. Web. Servlet. MVC) method. The annotation. ServletInvocableHandlerMethod. InvokeAndHandle (ServletInvocableHandlerMethod. Java: 106) ~ [spring - webmvc - 5.3.6. Jar: 5.3.6]
The at org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerAdapter. InvokeHandlerMethod (RequestMappingHandlerAdapter. Java: 894) ~ [spring - webmvc - 5.3.6. Jar: 5.3.6]
The at org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerAdapter. HandleInternal (RequestMappingHandlerAdapter. Java: 808) ~ [spring - webmvc - 5.3.6. Jar: 5.3.6]
The at org. Springframework. Web. Servlet. MVC. Method. AbstractHandlerMethodAdapter. Handle (AbstractHandlerMethodAdapter. Java: 87) ~ [spring - webmvc - 5.3.6. Jar: 5.3.6]
The at org. Springframework. Web. Servlet. DispatcherServlet. DoDispatch (DispatcherServlet. Java: 1060) ~ [spring - webmvc - 5.3.6. Jar: 5.3.6]
The at org. Springframework. Web. Servlet. DispatcherServlet. DoService (DispatcherServlet. Java: 962) ~ [spring - webmvc - 5.3.6. Jar: 5.3.6]
The at org. Springframework. Web. Servlet. FrameworkServlet. The processRequest (FrameworkServlet. Java: 1006) ~ [spring - webmvc - 5.3.6. Jar: 5.3.6]
The at org. Springframework. Web. Servlet. FrameworkServlet. DoGet (FrameworkServlet. Java: 898) ~ [spring - webmvc - 5.3.6. Jar: 5.3.6]
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 626) ~ [tomcat embed - core - 9.0.45. Jar: 4.0 FR]
The at org. Springframework. Web. Servlet. FrameworkServlet. Service (FrameworkServlet. Java: 883) ~ [spring - webmvc - 5.3.6. Jar: 5.3.6]
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 733) ~ [tomcat embed - core - 9.0.45. Jar: 4.0 FR]
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 227) ~ [tomcat embed - core - 9.0.45. Jar: 9.0.45]
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 162) ~ [tomcat embed - core - 9.0.45. Jar: 9.0.45]
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related