You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ContextNotActive Exceptions When Chaining Reactive Calls Across Stack
Expected behavior
User should be able to make a REST call to a reactive route, which in turn calls a reactive gRPC client, which interfaces with a reactive Hibernate panache repository.
Actual behavior
When not interfacing with the repository, user is able to make a REST call which calls a reactive gRPC client which gets picked up and processed by gRPC server implementation in separate module. When making the gRPC call then process a repository action, it throws a ContextNotActive Exception.
When calling the gRPC service directly and not via REST route, both the gRPC call and the repository action work successfully. Only when chaining this does the issue arise.
I have recreated a stripped down version of my project with the services causing the issue.
Steps to reproduce the behavior:
gradle user:buildNeeded
gradle api:buildNeeded
docker-compose up
gradle user:quarkusDev
gradle api:quarkusDev
Curl/hit either localhost:8080/user/test or localhost:8080/userReactive/test to recreate issue.
Should see ContextNotActive exception.
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
Development
Output of uname -a or ver
20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
Output of java -version
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment GraalVM CE 21.0.0 (build 11.0.10+8-jvmci-21.0-b06)
OpenJDK 64-Bit Server VM GraalVM CE 21.0.0 (build 11.0.10+8-jvmci-21.0-b06, mixed mode, sharing)
GraalVM version (if different from Java)
Quarkus version or git rev
1.13.2.Final
Build tool (ie. output of mvnw --version or gradlew --version)
Gradle 6.8.2
Additional context
Kotlin: 1.4.20
The text was updated successfully, but these errors were encountered:
Describe the bug
ContextNotActive Exceptions When Chaining Reactive Calls Across Stack
Expected behavior
User should be able to make a REST call to a reactive route, which in turn calls a reactive gRPC client, which interfaces with a reactive Hibernate panache repository.
Actual behavior
When not interfacing with the repository, user is able to make a REST call which calls a reactive gRPC client which gets picked up and processed by gRPC server implementation in separate module. When making the gRPC call then process a repository action, it throws a ContextNotActive Exception.
When calling the gRPC service directly and not via REST route, both the gRPC call and the repository action work successfully. Only when chaining this does the issue arise.
To Reproduce
https://github.com/toandeaf/backup
I have recreated a stripped down version of my project with the services causing the issue.
Steps to reproduce the behavior:
Should see ContextNotActive exception.
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
Development
Output of
uname -a
orver
20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
Output of
java -version
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment GraalVM CE 21.0.0 (build 11.0.10+8-jvmci-21.0-b06)
OpenJDK 64-Bit Server VM GraalVM CE 21.0.0 (build 11.0.10+8-jvmci-21.0-b06, mixed mode, sharing)
GraalVM version (if different from Java)
Quarkus version or git rev
1.13.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 6.8.2
Additional context
Kotlin: 1.4.20
The text was updated successfully, but these errors were encountered: