Closed kazik666 closed 2 years ago
Can you please attach a sample project?
Yes of course i'll create sample project.
Thanks.
In any case, https://github.com/quarkusio/quarkus/pull/21121 will remove the NPE
I created demo project: https://github.com/kazik666/quarkus-reactive-demo
But in this project I doesn't have error. I try to add rest dependencies a reproduce orginal error.
@geoand I reproduced this error. It occurred when I'am adding filters.
I found the problem :) In filter i used blocking IO: org.jboss.resteasy.reactive.common.core.BlockingNotAllowedException: Attempting a blocking read on io thread
I must re-implement my filters.
I found on StackOverFlow that kind of filter is impossible to implement: https://stackoverflow.com/questions/67565473/logging-entity-body-with-quarkus-resteasy-reactive
@geoand This is still true in the newest version of quarkus?
If you are trying to read the entire body of the request on the event loop thread, then yes, that is still not allowed
Ok I'am closing this issue.
If you are trying to read the entire body of the request on the event loop thread, then yes, that is still not allowed
Why it is not allowed yet? and is there any chance it is allowed?
Describe the bug
I decided to refactor one of my service written in quarkus from blocking io to reactive manner.
I have many mock controller which works perfectly before refactor but now some of them throws errors:
For example this controller doesn't work:
But this work's:
The one thing what I'am done in refactor is change the return type to new one with wrapper Uni.
I found on network similar error: https://github.com/quarkusio/quarkus/runs/3204982867
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
Linux 5.13.0-20-generic #20-Ubuntu SMP Fri Oct 15 14:21:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
16.0.2
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.4.0.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.6.2
Additional information
No response