-
Notifications
You must be signed in to change notification settings - Fork 42
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
Micronaut SQL Hibernate Maven fails with Could not obtain transaction-synchronized Session for current thread #1156
Comments
@dstepanov do you know what it is going on? |
In maven, context propagation does not have transactions stored.
fixes the issue. The difference between gradle and maven is that gradle automatically adds micronaut-data-processor (which causes issue in #1157). |
That's coming from the Gradle plugin, which adds the processor when there is any kind of |
I see, but since data-tx-hibernate apparently needs data-processor then it should be added as dependency there so this issue wouldn't appear in micronaut-sql? |
It only needs it to remap the Jakarta transactional annotation. I think the solution should be to not reference enums in the metadata. |
This is different issue. Transactions are not stored/found in context propagation if there is no data-processor dependency which is what we have with Maven. |
Ah right. Disregard the last sentence, but the issue is that we remap different TX annotations to an internal one |
Checked with 4.3.2 and this still fails... What's the solution here? We could add the data-processor to the annotation processor paths as specified here in starter? |
Than that will trigger this issue #1157 😞 |
Steps to reproduce:
clone https://github.com/grails-core-issues-forks/micronaut-sql-1156
You will get:
The same application works with Gradle.
The text was updated successfully, but these errors were encountered: