[jboss-jira] [JBoss JIRA] (WFLY-11832) Transaction for Hibernate Interceptor is null
Gail Badner (Jira)
issues at jboss.org
Fri Mar 15 19:55:00 EDT 2019
[ https://issues.jboss.org/browse/WFLY-11832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13709266#comment-13709266 ]
Gail Badner commented on WFLY-11832:
------------------------------------
[~smarlow], I've confirmed that making the following change seems to fix it:
diff --git a/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java b/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
index 9a5b59b601..5c62098e32 100644
--- a/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
+++ b/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
@@ -2506,7 +2506,7 @@ public final class SessionImpl
}
try {
- getInterceptor().afterTransactionCompletion( getCurrentTransaction() );
+ getInterceptor().afterTransactionCompletion( accessTransaction() );
}
catch (Throwable t) {
log.exceptionInAfterTransactionCompletionInterceptor( t );
I'm not sure if this is a proper fix though.
[~mchur], please do open a Hibernate issue.
> Transaction for Hibernate Interceptor is null
> ---------------------------------------------
>
> Key: WFLY-11832
> URL: https://issues.jboss.org/browse/WFLY-11832
> Project: WildFly
> Issue Type: Bug
> Components: JPA / Hibernate, Transactions
> Affects Versions: 14.0.0.Final, 15.0.1.Final, 16.0.0.Final
> Reporter: Markus Chur
> Assignee: Scott Marlow
> Priority: Major
> Attachments: hibernate-interceptor-reproducer-0.0.1-SNAPSHOT.jar, src -WFLY-11832.zip
>
>
> With Wildfly 13 - javaee7 transactions in hibernate interceptors were never null.
> Since Wildfly 14 - javaee8 transactions in hibernate interceptors are always null.
> Attached sources and a jar of a minimal reproducer for Wildfly 16. This is reproducible by using a fresh unchanged Wildfly 16 and unchanged standalone.xml. Extract Wildfly 16, drop in the jar in the deployments folder and start the server.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list