{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1455","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1455/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1455/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1455/events","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/1455","id":188343081,"number":1455,"title":"RestTemplate inside ApplicationListener<ContextRefreshedEvent> to call method from another Microservice","user":{"login":"MaiGhoneim","id":11256505,"avatar_url":"https://avatars.githubusercontent.com/u/11256505?v=3","gravatar_id":"","url":"https://api.github.com/users/MaiGhoneim","html_url":"https://github.com/MaiGhoneim","followers_url":"https://api.github.com/users/MaiGhoneim/followers","following_url":"https://api.github.com/users/MaiGhoneim/following{/other_user}","gists_url":"https://api.github.com/users/MaiGhoneim/gists{/gist_id}","starred_url":"https://api.github.com/users/MaiGhoneim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaiGhoneim/subscriptions","organizations_url":"https://api.github.com/users/MaiGhoneim/orgs","repos_url":"https://api.github.com/users/MaiGhoneim/repos","events_url":"https://api.github.com/users/MaiGhoneim/events{/privacy}","received_events_url":"https://api.github.com/users/MaiGhoneim/received_events","type":"User","site_admin":false},"labels":[{"id":222072230,"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/labels/waiting%20for%20feedback","name":"waiting for feedback","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-09T20:21:17Z","updated_at":"2016-11-11T15:19:16Z","closed_at":null,"body":"Hi, i created two microservices to one call another MS method inside controller in `ApplicationListener<ContextRefreshedEvent>` with `RestTemplate` (Using annotation `LoadBalanced`)\r\nbut MS not working and get the following trace:\r\n\r\n```\r\n2016-11-09 20:52:35.941  INFO 7700 --- [erListUpdater-0] c.netflix.config.ChainedDynamicProperty  : Flipping property: MS1.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647\r\n2016-11-09 20:52:35.961  INFO 7700 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@5e9a9683: startup date [Wed Nov 09 20:52:35 GMT+02:00 2016]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2df6226d\r\n2016-11-09 20:52:35.971  INFO 7700 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring\r\n2016-11-09 20:52:35.971  INFO 7700 --- [           main] c.netflix.config.ChainedDynamicProperty  : Flipping property: MS1.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647\r\n2016-11-09 20:52:35.981  INFO 7700 --- [           main] c.n.u.concurrent.ShutdownEnabledTimer    : Shutdown hook installed for: NFLoadBalancer-PingTimer-MS1\r\n2016-11-09 20:52:35.981  INFO 7700 --- [           main] c.netflix.loadbalancer.BaseLoadBalancer  : Client:MS1 instantiated a LoadBalancer:DynamicServerListLoadBalancer:{NFLoadBalancer:name=MS1,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null\r\n2016-11-09 20:52:35.981  INFO 7700 --- [           main] c.n.l.DynamicServerListLoadBalancer      : Using serverListUpdater PollingServerListUpdater\r\n2016-11-09 20:52:35.981  INFO 7700 --- [           main] c.netflix.config.ChainedDynamicProperty  : Flipping property: MS1.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647\r\n2016-11-09 20:52:35.981  INFO 7700 --- [           main] c.n.l.DynamicServerListLoadBalancer      : DynamicServerListLoadBalancer for client MS1 initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=MS1,current list of Servers=[DEV-MGHONEIM-N.TradeNET.COM:8081],Load balancer stats=Zone stats: {defaultzone=[Zone:defaultzone;\tInstance count:1;\tActive connections count: 0;\tCircuit breaker tripped count: 0;\tActive connections per server: 0.0;]\r\n},Server stats: [[Server:DEV-MGHONEIM-N.TradeNET.COM:8081;\tZone:defaultZone;\tTotal Requests:0;\tSuccessive connection failure:0;\tTotal blackout seconds:0;\tLast connection made:Thu Jan 01 02:00:00 GMT+02:00 1970;\tFirst connection made: Thu Jan 01 02:00:00 GMT+02:00 1970;\tActive Connections:0;\ttotal failure count in last (1000) msecs:0;\taverage resp time:0.0;\t90 percentile resp time:0.0;\t95 percentile resp time:0.0;\tmin resp time:0.0;\tmax resp time:0.0;\tstddev resp time:0.0]\r\n]}ServerList:org.springframework.cloud.netflix.ribbon.eureka.DomainExtractingServerList@5220e6ff\r\n```\r\n\r\nFor Example : https://www.dropbox.com/s/7ox15k2rewkgmyq/demoMS.rar?dl=0"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/comments/259979689","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/1455#issuecomment-259979689","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1455","id":259979689,"user":{"login":"MaiGhoneem","id":18740529,"avatar_url":"https://avatars.githubusercontent.com/u/18740529?v=3","gravatar_id":"","url":"https://api.github.com/users/MaiGhoneem","html_url":"https://github.com/MaiGhoneem","followers_url":"https://api.github.com/users/MaiGhoneem/followers","following_url":"https://api.github.com/users/MaiGhoneem/following{/other_user}","gists_url":"https://api.github.com/users/MaiGhoneem/gists{/gist_id}","starred_url":"https://api.github.com/users/MaiGhoneem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaiGhoneem/subscriptions","organizations_url":"https://api.github.com/users/MaiGhoneem/orgs","repos_url":"https://api.github.com/users/MaiGhoneem/repos","events_url":"https://api.github.com/users/MaiGhoneem/events{/privacy}","received_events_url":"https://api.github.com/users/MaiGhoneem/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T15:19:16Z","updated_at":"2016-11-11T15:19:16Z","body":"I want to cache some data on startup of microservice by request this data from another microservice"}}
{"actor":{"display_login":"MaiGhoneem"}}