[hibernate-issues] [JIRA] (HHH-14143) Detect illegal concurrent usage of LogicalConnectionManagedImpl

Sanne Grinovero (JIRA) jira at hibernate.atlassian.net
Mon Aug 10 09:39:19 EDT 2020


Sanne Grinovero ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A99e61e65-956b-4a21-b29c-06057642e9ea ) *updated* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMDFkNGVjZGFhNzAyNGNmZGEzMjE3NGY5MTMxYmUwMmUiLCJwIjoiaiJ9 ) / Task ( https://hibernate.atlassian.net/browse/HHH-14143?atlOrigin=eyJpIjoiMDFkNGVjZGFhNzAyNGNmZGEzMjE3NGY5MTMxYmUwMmUiLCJwIjoiaiJ9 ) HHH-14143 ( https://hibernate.atlassian.net/browse/HHH-14143?atlOrigin=eyJpIjoiMDFkNGVjZGFhNzAyNGNmZGEzMjE3NGY5MTMxYmUwMmUiLCJwIjoiaiJ9 ) Detect illegal concurrent usage of LogicalConnectionManagedImpl ( https://hibernate.atlassian.net/browse/HHH-14143?atlOrigin=eyJpIjoiMDFkNGVjZGFhNzAyNGNmZGEzMjE3NGY5MTMxYmUwMmUiLCJwIjoiaiJ9 )

Change By: Sanne Grinovero ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A99e61e65-956b-4a21-b29c-06057642e9ea )

Apparently some applications or containers have integration code which could attempt to release the resources managed by a {{LogicalConnectionManagedImpl}} concurrently.
While this is IMO a bug in either the integration code or the user's code, it triggers an NPE in ORM which makes it a bit obscure. We can avoid the NPE with slightly more defensive code, which I plan to introduce with this patch.

I still plan to throw an exception, just possibly hinting about the real cause.

( https://hibernate.atlassian.net/browse/HHH-14143#add-comment?atlOrigin=eyJpIjoiMDFkNGVjZGFhNzAyNGNmZGEzMjE3NGY5MTMxYmUwMmUiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14143#add-comment?atlOrigin=eyJpIjoiMDFkNGVjZGFhNzAyNGNmZGEzMjE3NGY5MTMxYmUwMmUiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100142- sha1:4ee995f )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200810/79cba373/attachment.html 


More information about the hibernate-issues mailing list