These are chat archives for spring-cloud/spring-cloud

30th
Nov 2015
ccit-spence
@ccit-spence
Nov 30 2015 00:35
Should the Hystrix Dashboard display all of the clients within an application annotated with @HystrixCommand?
ccit-spence
@ccit-spence
Nov 30 2015 00:44
Figures, I think sometimes I ask dumb questions so that when I hit refresh after an hour and no changes it started working
Joao Duraes
@joaoduraes
Nov 30 2015 16:13

hey guys… I’m using spring-cloud-starter-feign and I have a @FeignClient that is annotated with
@RequestMapping(method = RequestMethod.GET, value = ServiceUri.WEBSITE_BY_ID_URI)

and when I try to use it I get a exception:

java.lang.IllegalStateException: Method findById not annotated with HTTP method type (ex. GET, POST)

any ideas why?

Joao Duraes
@joaoduraes
Nov 30 2015 16:24
I’ve tried using both 1.0.4.RELEASE and 1.1.0.M1 versions
Dave Syer
@dsyer
Nov 30 2015 18:12
Is the findById method annotated?
Joao Duraes
@joaoduraes
Nov 30 2015 18:13
yes, it is
but I was creating it “manually”, using the Feign.builder()
I think that should be the problem, right?
Dave Syer
@dsyer
Nov 30 2015 18:14
Ah. Sorry. Why?
Yes that's the problen
There are some specific steps to take to create the actual client
Joao Duraes
@joaoduraes
Nov 30 2015 18:14
yes… I am now trying to autowire the client but I am having some issues
the application won’t start up due to "No qualifying bean of type” for the client
can you provide me some info on those specific steps? :)
Dave Syer
@dsyer
Nov 30 2015 18:16
Sounds like you didn't @EnableFeignClients or you didn't put the interface in a package that is scanned.
Joao Duraes
@joaoduraes
Nov 30 2015 18:16
I have both, actually...
Dave Syer
@dsyer
Nov 30 2015 18:17
If you have a simple project that shows the problem that will help
Joao Duraes
@joaoduraes
Nov 30 2015 18:17
I will try to create one
Dave Syer
@dsyer
Nov 30 2015 18:17
I might not be able to look before tomorrow
Joao Duraes
@joaoduraes
Nov 30 2015 18:18
yes, I may only be able to have it ready by tomorrow, so no worries :)
Dave Syer
@dsyer
Nov 30 2015 18:18
Check the samples and make sure you follow the same patterns
Joao Duraes
@joaoduraes
Nov 30 2015 18:18
Dave Syer
@dsyer
Nov 30 2015 18:19
For instance
Joao Duraes
@joaoduraes
Nov 30 2015 18:19
great
I’ll take a look at it
if I run into more issues I’ll provide a sample project
thank you @dsyer
Joao Duraes
@joaoduraes
Nov 30 2015 18:21
great :thumbsup: