Open shenbinglife opened 8 months ago
/cc @geoand (kotlin)
You can add @Blocking
to TokenFilter
You can add
@Blocking
toTokenFilter
@Blocking
@PreMatching
@Priority(Priorities.HEADER_DECORATOR + 50)
@Provider
class TokenFilter : ContainerRequestFilter {}
But I Still get the error
Handling server request exception: io.quarkus.runtime.BlockingOperationNotAllowedException: You have attempted to perform a blocking operation on a IO thread. This is not allowed, as blocking the IO thread will cause major performance issues with your application. If you want to perform blocking EntityManager operations make sure you are doing it from a worker thread.
Have you tried annotating @Blocking your services as well?
Describe the bug
Failed call orm operation in ContainerRequestFilter, what's the best practice to validate token using orm before request handled?
source code
log
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
17
Quarkus version or git rev
3.6.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.5
Additional information
No response