Hystrix icon indicating copy to clipboard operation
Hystrix copied to clipboard

Static method issue

Open priyadarsh opened this issue 9 years ago • 2 comments

Hi The below NPE is thrown when Hystrix annotation is applied on static methods.

java.lang.NullPointerException: null at com.netflix.hystrix.contrib.javanica.utils.AopUtils.getMethodFromTarget(AopUtils.java:50) at com.netflix.hystrix.contrib.javanica.aop.aspectj.HystrixCommandAspect.methodsAnnotatedWithHystrixCommand(HystrixCommandAspect.java:88)

priyadarsh avatar Jul 15 '17 06:07 priyadarsh

Just to be specific, I am using the com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand in Javanica project

priyadarsh avatar Jul 15 '17 06:07 priyadarsh

Submitted pull request for the same https://github.com/Netflix/Hystrix/pull/1632

priyadarsh avatar Jul 17 '17 08:07 priyadarsh