Open ghost opened 6 years ago
I am facing exactly the same issue.
I detected what is wrong.
please, try changing this
@HystrixCommand(defaultFallback="getDefaultProductInventory")
to
@HystrixCommand(fallbackMethod="getDefaultProductInventory")
@farambarri Thanks very much!!!
Hello, I am getting this exception even though the fallback method signature is same as actual method. The version of lib is hystrix-javanica-1.5.12 My code snippet:
When debugged, it looks like inside method
the condition
is always evaluated to
true
in my case and because of thisfallbackParameterTypes
array is empty and the methodwhich is called later is trying to find fallback method signature with no parameters. But when I change my fallback method signature to
all works fine as method signature matches. I am not able to understand why this is happening. I think as per reference documents, the fallback method signature should match with the actual method. But it seems this is not happening here. I want the
productCode
to be part of fallback method signature.Can somebody tell me where is the issue in this case?
Thanks.