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
Methods returning TemplateInstance reported as not blocking #36592
Comments
Looking closer at this it seems that this is intentional. ResteasyReactiveQuteProcessor has @BuildStep
NonBlockingReturnTypeBuildItem nonBlockingTemplateInstance() {
return new NonBlockingReturnTypeBuildItem(TEMPLATE_INSTANCE);
} Adding @geoand Should this behavior be documented in the Qute documentation, perhaps a better error message on build failure? |
/cc @FroMage (resteasy-reactive), @stuartwdouglas (resteasy-reactive) |
@computerlove I think we should do both. cc @mkouba |
Well, the error message from the description is not about Qute and Anyway, I'm not so sure it was a good idea to produce the |
It at least looks like I was in a confused state when creating the sample. The original exception is not the correct one. The core exception is
Yeah, I had to look at ResteasyReactiveProcessor and ResteasyReactiveQuteProcessor for a long time before realizing why public TemplateInstance get() { ... } is considered blocking. |
- resource methods returing TemplateInstance are considered non-blocking - fixes quarkusio#36592
- resource methods returing TemplateInstance are considered non-blocking - fixes quarkusio#36592
Describe the bug
When adding @RunOnVirtualThread on a method returning
TemplateInstance
the application does not build, with exception:Expected behavior
The application builds, and invokation is done on virtual thread.
Actual behavior
Application does not build
How to Reproduce?
Use the app generator, generate a app with quarkus-resteasy-reactive-qute. Add @RunOnVirtualThread in
SomePage
on class or method level.Output of
uname -a
orver
linux
Output of
java -version
21
Quarkus version or git rev
2.4.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.3
Additional information
The text was updated successfully, but these errors were encountered: