Replies: 4 comments 5 replies
-
Also tried rewriting it so it uses an injected UserTransaction and transaction.begin()/commit() but I get:
|
Beta Was this translation helpful? Give feedback.
-
Using transaction manager in the endpoint Uni call gives an interesting different call stack:
|
Beta Was this translation helpful? Give feedback.
-
Tried taking out the Uni code and using the endpoint as non-reactive but still get the same error:
|
Beta Was this translation helpful? Give feedback.
-
sorry..forgot to respond. My mistake was trying to return Hibernate classes from an endpoint. |
Beta Was this translation helpful? Give feedback.
-
Seeing this in production but not when running locally.
The endpoint doesn't have the @transactional marker:
but the service class does.
e.g.
and the error doesn't point to much more than the method and the error msg:
I dd a search and there are some mentions of @transactional only working with an @ApplicationScoped class' method and also not to do this on an async task (has to block until the response is sent or the transaction will be cancelled by sending the response).
Beta Was this translation helpful? Give feedback.
All reactions