Netflix / Hystrix

Hystrix is a latency and fault tolerance library designed to isolate points of access to remote systems, services and 3rd party libraries, stop cascading failure and enable resilience in complex distributed systems where failure is inevitable.
24.07k stars 4.7k forks source link

Static method issue #1631

Open priyadarsh opened 7 years ago

priyadarsh commented 7 years ago

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 commented 7 years ago

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

priyadarsh commented 7 years ago

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