-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
@CacheResult on legacy @RegisterRestClient throws CCE on 3.4.2 #36336
Comments
/cc @gwenneg (cache) |
Thanks for reporting this @Maldivia! I am able to reproduce the bug locally with Switching from |
@geoand Are you aware of a recent change in With that extension, |
Could be related to |
I have no idea, maybe @jamezp knows |
The later is where are focus is on anyway |
Yeah, as a workaournd/fix, I switched to the reactive versions of the extensions, and applied |
You don't need |
I'm using Qute as well, so updated to using quarkus-resteasy-reactive-qute, which I assume causes TemplateInstance to be seen as a reactive type, so I needed Blocking (was getting BlockingNotAllowedException) |
Ah, good point! |
There has been changes in RESTEasy I can think of that would cause this. One thing I find a bit odd in the stack trace is that both the class loaders seem to have the same id, |
I have the same problem, even in newer versions (I have tried up to current release 3.13.2). Is anyone working on this bug or has another solution? |
Describe the bug
Using
@CacheResult
with legacy@RegisterRestClient
throwsClassCastException
on 3.4.2Expected behavior
No response
Actual behavior
No response
How to Reproduce?
Using the following dependencies:
Given the below example service and resource classes:
and
ip/mp-rest/url=https://api.ipify.org/
entry inapplication.properties
.On Quarkus 3.3.3, it works:
On Quarkus 3.4.2:
Exception stack trace:
Commenting out the
@CacheResult
lines makes the rest client work on 3.4.2 as well.Output of
uname -a
orver
No response
Output of
java -version
openjdk version "17.0.8" 2023-07-18 OpenJDK Runtime Environment Temurin-17.0.8+7 (build 17.0.8+7) OpenJDK 64-Bit Server VM Temurin-17.0.8+7 (build 17.0.8+7, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.4.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546)
Additional information
No response
The text was updated successfully, but these errors were encountered: