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

java.lang.IllegalStateException: Too many recursive interceptor actions after switching to quarkus-rest-client from quarkus-rest-reactive-client #45662

Open
skthodoris opened this issue Jan 16, 2025 · 4 comments
Labels

Comments

@skthodoris
Copy link

Describe the bug

0

This issue occured after switching from Quarkus 3.11.2 to 3.17.6 and from quarkus-rest-reactive-client to quarkus-rest-client.

My quarkus app builds successfully but i get the aforementioned error after it starts. I have pushed a reproducer here:

https://github.com/skthodoris/TSPublic/tree/main/Backend/Quarkus/Bugs/quarkus-rest-client-recursion-bug

Expected behavior

The app should start normally after building successfully.

Actual behavior

The following error occurs:

Configuration validation failed:
java.lang.IllegalStateException: Too many recursive interceptor actions

How to Reproduce?

Try running this app:

https://github.com/skthodoris/TSPublic/tree/main/Backend/Quarkus/Bugs/quarkus-rest-client-recursion-bug

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

I have also posted this issue here:

https://stackoverflow.com/questions/79360818/java-lang-illegalstateexception-too-many-recursive-interceptor-actions-after-sw?noredirect=1#comment139951753_79360818

@skthodoris skthodoris added the kind/bug Something isn't working label Jan 16, 2025
Copy link

quarkus-bot bot commented Jan 16, 2025

/cc @cescoffier (rest-client), @geoand (rest-client)

@manofthepeace
Copy link
Contributor

I you move your 2 source files into a package (not using the default package. it works;

__  ____  __  _____   ___  __ ____  ______
 --/ __ \/ / / / _ | / _ \/ //_/ / / / __/
 -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
2025-01-16 14:36:31,618 INFO  [io.quarkus] (Quarkus Main Thread) quarkus-rest-client-recursion-bug 1.0.0-SNAPSHOT on JVM (powered by Quarkus 3.17.6) started in 3.673s. Listening on: http://localhost:8084

2025-01-16 14:36:31,620 INFO  [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
2025-01-16 14:36:31,621 INFO  [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, rest, rest-client, rest-client-jackson, rest-jackson, smallrye-context-propagation, vertx]
2025-01-16 14:36:42,981 INFO  [io.quarkus] (Shutdown thread) quarkus-rest-client-recursion-bug stopped in 0.015s

@geoand
Copy link
Contributor

geoand commented Jan 17, 2025

Indeed, thanks @manofthepeace!

@radcortez this seems to be some kind of config issue as I see:

Configuration validation failed:
        java.lang.IllegalStateException: Too many recursive interceptor actions

but I wouldn't say fixing it is a very high priority as the default package has always been really hit and miss

@radcortez
Copy link
Member

I'll have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants