Skip to content
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

Vertx Context is broken when calling HR after the KC client #33

Open
acasanova99 opened this issue Sep 9, 2022 · 0 comments
Open

Vertx Context is broken when calling HR after the KC client #33

acasanova99 opened this issue Sep 9, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@acasanova99
Copy link
Collaborator

For some reason the context of quarkus is not propagated correctly among the application and the client.

After calling this client, if we access a state-full context method, as the HR#withSession(), it will cause the following failure:

ERROR while persisting the user The current operation requires a safe (isolated) Vert.x sub-context, but the current context hasn't been flagged as such. You can still use Hibernate Reactive, you just need to avoid using the methods which implicitly require accessing the stateful context, such as MutinySessionFactory#withTransaction and #withSession.

Possible causes:

  • Version between the main app and this client are different. (Will be solved in the next update of the client)
  • This client is a dependency but not a quarkus extension. (We will covert this client into a quarkus extension in a near future)
@acasanova99 acasanova99 self-assigned this Sep 9, 2022
@acasanova99 acasanova99 added the bug Something isn't working label Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant