Giter VIP home page Giter VIP logo

Comments (3)

RobWin avatar RobWin commented on June 12, 2024

Thank you.
Have you been able to debug it?
There seems to be a difference between using cglib or JDK proxies.
Why do you plan to use JDK proxies? I think Spring Boot sets the default proxy to cglib.

from resilience4j.

emilevdh97 avatar emilevdh97 commented on June 12, 2024

Yes, I've been able to debug the issue, the problem is caused by how the fallback method determines the target when using JDK Proxies, the java Method.invoke throws the exception because the proxy object used as the target is not of the correct type.

In R4J version 2.0.2, this was not an issue because there were no proxies involved at all.

Based on the spring documentation for version 6.1.3, it mentions that Spring AOP defaults to using standard JDK dynamic proxies for AOP proxies(https://docs.spring.io/spring-framework/reference/core/aop/introduction-proxies.html) but based on my experience, Spring generally defaults to a CGlib based proxy.

The reason why we use JDK proxies is because we use Spring's WebServiceGatewaySupport to consume soap services and it doesn't work with CGlib proxies, To get the circuitbreakers working on it we had to use JDK proxies.

from resilience4j.

dowenliu-xyz avatar dowenliu-xyz commented on June 12, 2024

I've make a PR to try solve this problem.

from resilience4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.