{"action":"created","issue":{"url":"https://api.github.com/repos/Netflix/feign/issues/226","labels_url":"https://api.github.com/repos/Netflix/feign/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/feign/issues/226/comments","events_url":"https://api.github.com/repos/Netflix/feign/issues/226/events","html_url":"https://github.com/Netflix/feign/issues/226","id":72964165,"number":226,"title":"javax.management.InstanceNotFoundException in multi threaded environment","user":{"login":"beku8","id":1091489,"avatar_url":"https://avatars.githubusercontent.com/u/1091489?v=3","gravatar_id":"","url":"https://api.github.com/users/beku8","html_url":"https://github.com/beku8","followers_url":"https://api.github.com/users/beku8/followers","following_url":"https://api.github.com/users/beku8/following{/other_user}","gists_url":"https://api.github.com/users/beku8/gists{/gist_id}","starred_url":"https://api.github.com/users/beku8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beku8/subscriptions","organizations_url":"https://api.github.com/users/beku8/orgs","repos_url":"https://api.github.com/users/beku8/repos","events_url":"https://api.github.com/users/beku8/events{/privacy}","received_events_url":"https://api.github.com/users/beku8/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-04T08:52:53Z","updated_at":"2015-05-29T01:03:59Z","closed_at":"2015-05-29T01:03:59Z","body":"I'm using feign clients in multi threaded event loop(rxjava + spring cloud), which calls the same client multiple times concurrently from different threads, which results(occasionally)\r\n```\r\njavax.management.InstanceNotFoundException: com.netflix.servo:name=core_LoadBalancerExecutionTimer,statistic=totalTime,class=RibbonLoadBalancer,type=GAUGE,id=Client_core,unit=MILLISECONDS\r\n\tat com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)\r\n\tat com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:427)\r\n\tat com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:415)\r\n\tat com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:546)\r\n\tat com.netflix.servo.jmx.JmxMonitorRegistry.register(JmxMonitorRegistry.java:82)\r\n\tat com.netflix.servo.jmx.JmxMonitorRegistry.register(JmxMonitorRegistry.java:106)\r\n\tat com.netflix.servo.DefaultMonitorRegistry.register(DefaultMonitorRegistry.java:135)\r\n\tat com.netflix.servo.monitor.Monitors.registerObject(Monitors.java:207)\r\n\tat com.netflix.loadbalancer.LoadBalancerContext.initWithNiwsConfig(LoadBalancerContext.java:103)\r\n\tat com.netflix.loadbalancer.LoadBalancerContext.<init>(LoadBalancerContext.java:74)\r\n\tat com.netflix.client.AbstractLoadBalancerAwareClient.<init>(AbstractLoadBalancerAwareClient.java:50)\r\n\tat org.springframework.cloud.netflix.feign.ribbon.RibbonLoadBalancer.<init>(RibbonLoadBalancer.java:53)\r\n\tat org.springframework.cloud.netflix.feign.ribbon.FeignRibbonClient.getClient(FeignRibbonClient.java:88)\r\n\tat org.springframework.cloud.netflix.feign.ribbon.FeignRibbonClient.execute(FeignRibbonClient.java:66)\r\n\tat feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:117)\r\n\tat feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:96)\r\n\tat feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:92)\r\n\tat com.sun.proxy.$Proxy115.findByCriteria(Unknown Source)\r\n\tat com.fm.nd.service.generate.ItemPriceServiceImpl$$EPBhbNaK.findItemPrice(ItemPriceServiceImpl.java:40)\r\n\tat com.fm.nd.service.generate.ItemPriceServiceImpl$$DPBhbNaK.findItemPrice(Unknown Source)\r\n\tat com.fm.nd.service.generate.ItemPriceServiceImpl.findItemPrice(ItemPriceServiceImpl.java)\r\n\tat com.fm.nd.service.generate.RatioItemGenerator$$EPBhfuXg.findItemPrice(RatioItemGenerator.java:43)\r\n\tat com.fm.nd.service.generate.RatioItemGenerator$$DPBhfuXg.findItemPrice(Unknown Source)\r\n\tat com.fm.nd.service.generate.RatioItemGenerator.findItemPrice(RatioItemGenerator.java)\r\n\tat com.fm.nd.service.generate.ServiceItemDtoGenerator.fillServiceItemPrice(ServiceItemDtoGenerator.java:19)\r\n\tat com.fm.nd.service.generate.RatioItemGenerator.fillServiceItemPrice(RatioItemGenerator.java)\r\n\tat com.fm.nd.service.generate.FormulaServiceImpl$$EPBhd1p2.lambda$0(FormulaServiceImpl.java:122)\r\n\tat com.fm.nd.service.generate.FormulaServiceImpl$$EPBhd1p2$$Lambda$628/30937552.call(Unknown Source)\r\n\tat rx.Observable.unsafeSubscribe(Observable.java:7495)\r\n\tat rx.internal.operators.OperatorSubscribeOn$1$1.call(OperatorSubscribeOn.java:62)\r\n\tat com.fm.nd.common.rx.SchedulersHook.lambda$0(SchedulersHook.java:18)\r\n\tat com.fm.nd.common.rx.SchedulersHook$$Lambda$629/17129870.call(Unknown Source)\r\n\tat rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```\r\n\r\nI've seen this similar issue https://github.com/Netflix/feign/issues/182. Is there anything I can do?\r\n"},"comment":{"url":"https://api.github.com/repos/Netflix/feign/issues/comments/106645844","html_url":"https://github.com/Netflix/feign/issues/226#issuecomment-106645844","issue_url":"https://api.github.com/repos/Netflix/feign/issues/226","id":106645844,"user":{"login":"beku8","id":1091489,"avatar_url":"https://avatars.githubusercontent.com/u/1091489?v=3","gravatar_id":"","url":"https://api.github.com/users/beku8","html_url":"https://github.com/beku8","followers_url":"https://api.github.com/users/beku8/followers","following_url":"https://api.github.com/users/beku8/following{/other_user}","gists_url":"https://api.github.com/users/beku8/gists{/gist_id}","starred_url":"https://api.github.com/users/beku8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beku8/subscriptions","organizations_url":"https://api.github.com/users/beku8/orgs","repos_url":"https://api.github.com/users/beku8/repos","events_url":"https://api.github.com/users/beku8/events{/privacy}","received_events_url":"https://api.github.com/users/beku8/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T01:03:59Z","updated_at":"2015-05-29T01:03:59Z","body":"Yep the version update fixed the issue"}}