Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpServiceProxyFactory raises IllegalStateException if created through the builder and declared as a bean #29376

Closed
rstoyanchev opened this issue Oct 25, 2022 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Milestone

Comments

@rstoyanchev
Copy link
Contributor

rstoyanchev commented Oct 25, 2022

After #29296, the public constructor and setters are deprecated in favour of using the programmatic builder, and if the builder is used, the setters raise IllegalStateException, but afterPropertiesSet and setEmbeddedValueResolver need to be more lenient and simply do nothing if the builder was used. Currently, setEmbeddedValueResolver doesn't to that and leads to "IllegalStateException: HttpServiceProxyFactory was created through the builder".

A workaround is to not declare HttpServiceProxyFactory as a bean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant