<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<base href="https://hibernate.atlassian.net">
<title>Message Title</title>
</head>
<body class="jira" style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.429">
<table id="background-table" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; background-color: #f5f5f5; border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0" bgcolor="#f5f5f5">
<!-- header here -->
<tbody>
<tr>
<td id="header-pattern-container" style="padding: 0; border-collapse: collapse; padding: 10px 20px">
<table id="header-pattern" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<td id="header-avatar-image-container" valign="top" style="padding: 0; border-collapse: collapse; vertical-align: top; width: 32px; padding-right: 8px" width="32"> <img id="header-avatar-image" class="image_fix" src="https://avatar-cdn.atlassian.com/0808c63f988075fb1955ccc03ecedd90?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F0808c63f988075fb1955ccc03ecedd90%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" height="32" width="32" border="0" style="border-radius: 3px; vertical-align: top"> </td>
<td id="header-text-container" valign="middle" style="padding: 0; border-collapse: collapse; vertical-align: middle; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px"> <a class="user-hover" rel="nikowitt" id="email_nikowitt" href="https://hibernate.atlassian.net/secure/ViewProfile.jspa?name=nikowitt" style="color:#6c797f;; color: #3b73af; text-decoration: none">Niko Wittenbeck</a> <strong>updated</strong> an issue </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td id="email-content-container" style="padding: 0; border-collapse: collapse; padding: 0 20px">
<table id="email-content-table" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; border-spacing: 0; border-collapse: separate">
<tbody>
<tr>
<!-- there needs to be content in the cell for it to render in some clients -->
<td class="email-content-rounded-top mobile-expand" style="padding: 0; border-collapse: collapse; color: #ffffff; padding: 0 15px 0 16px; height: 15px; background-color: #ffffff; border-left: 1px solid #cccccc; border-top: 1px solid #cccccc; border-right: 1px solid #cccccc; border-bottom: 0; border-top-right-radius: 5px; border-top-left-radius: 5px; height: 10px; line-height: 10px; padding: 0 15px 0 16px; mso-line-height-rule: exactly" height="10" bgcolor="#ffffff"> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand " style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff" bgcolor="#ffffff">
<table class="page-title-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<td class="page-title-pattern-first-line " style="padding: 0; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; padding-top: 10px"> <a href="https://hibernate.atlassian.net/browse/HHH" style="color: #3b73af; text-decoration: none">Hibernate ORM</a> / <a href="https://hibernate.atlassian.net/browse/HHH-12425" style="color: #3b73af; text-decoration: none"><img src="cid:jira-generated-image-avatar-d37a57f7-0f83-42f8-8f7c-dd20c473da6e" height="16" width="16" border="0" align="absmiddle" alt="Bug" style="vertical-align: text-bottom"></a> <a href="https://hibernate.atlassian.net/browse/HHH-12425" style="color: #3b73af; text-decoration: none">HHH-12425</a> </td>
</tr>
<tr>
<td style="vertical-align: top;; padding: 0; border-collapse: collapse; padding-right: 5px; font-size: 20px; line-height: 30px; mso-line-height-rule: exactly" class="page-title-pattern-header-container"> <span class="page-title-pattern-header" style="font-family: Arial, sans-serif; padding: 0; font-size: 20px; line-height: 30px; mso-text-raise: 2px; mso-line-height-rule: exactly; vertical-align: middle"> <a href="https://hibernate.atlassian.net/browse/HHH-12425" style="color: #3b73af; text-decoration: none">LazyInitializationIssue when enhancement enableDirtyTracking is enabled after session is committed</a> </span> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand wrapper-special-margin" style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff; padding-top: 10px; padding-bottom: 5px" bgcolor="#ffffff">
<table class="keyvalue-table" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Change By:</th>
<td style="padding: 0; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <a class="user-hover" rel="nikowitt" id="email_nikowitt" href="https://hibernate.atlassian.net/secure/ViewProfile.jspa?name=nikowitt" style="color:#6c797f;; color: #3b73af; text-decoration: none">Niko Wittenbeck</a> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand issue-description-container" style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff; padding-top: 5px; padding-bottom: 10px" bgcolor="#ffffff">
<table class="text-paragraph-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 2px">
<tbody>
<tr>
<td class="text-paragraph-pattern-container mobile-resize-text " style="padding: 0; border-collapse: collapse; padding: 0 0 10px"> <span class="diffcontext">Hi there,<br><br>using bytecode enhancement with enableDirtyTracking=true and enabled second level cache, I'm encountering lazy init exceptions when the enhanced codes tries to clear the dirty attributes:<br><br>{noformat}<br>org.hibernate.LazyInitializationException: failed to lazily initialize a collection, no session or session was closed<br><br> at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">582</span> <span class="diffaddedchars" style="background-color:#ddfade;">589</span> <span class="diffcontext">)<br> at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">574</span> <span class="diffaddedchars" style="background-color:#ddfade;">581</span> <span class="diffcontext">)<br> at org.hibernate.collection.internal.AbstractPersistentCollection.access$200(AbstractPersistentCollection.java:55)<br> at org.hibernate.collection.internal.AbstractPersistentCollection$1.doWork(AbstractPersistentCollection.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">165</span> <span class="diffaddedchars" style="background-color:#ddfade;">172</span> <span class="diffcontext">)<br> at org.hibernate.collection.internal.AbstractPersistentCollection$1.doWork(AbstractPersistentCollection.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">146</span> <span class="diffaddedchars" style="background-color:#ddfade;">153</span> <span class="diffcontext">)<br> at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">247</span> <span class="diffaddedchars" style="background-color:#ddfade;">254</span> <span class="diffcontext">)<br> at org.hibernate.collection.internal.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">145</span> <span class="diffaddedchars" style="background-color:#ddfade;">152</span> <span class="diffcontext">)<br> at org.hibernate.collection.internal.PersistentSet.size(PersistentSet.java:143)<br> at</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> com</span> <span class="diffaddedchars" style="background-color:#ddfade;"> models</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">sobis</span> <span class="diffaddedchars" style="background-color:#ddfade;">common</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">jaf</span> <span class="diffaddedchars" style="background-color:#ddfade;">security</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">model</span> <span class="diffaddedchars" style="background-color:#ddfade;">JafSid</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">security</span> <span class="diffaddedchars" style="background-color:#ddfade;">$$_hibernate_removeDirtyFields(JafSid</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">sid</span> <span class="diffaddedchars" style="background-color:#ddfade;">java)<br> at models</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">common.security.</span> <span class="diffcontext">JafSid.$$_hibernate_clearDirtyCollectionNames(JafSid.java)<br> at</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> com</span> <span class="diffaddedchars" style="background-color:#ddfade;"> models</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">sobis</span> <span class="diffaddedchars" style="background-color:#ddfade;">common</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">jaf.model.</span> <span class="diffcontext">security.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">sid.</span> <span class="diffcontext">JafSid.$$_hibernate_clearDirtyAttributes(JafSid.java)<br> at org.hibernate.tuple.entity.PojoEntityTuplizer.afterInitialize(PojoEntityTuplizer.java:297)<br> at org.hibernate.persister.entity.AbstractEntityPersister.afterInitialize(AbstractEntityPersister.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">4659</span> <span class="diffaddedchars" style="background-color:#ddfade;">4788</span> <span class="diffcontext">)<br> at org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">284</span> <span class="diffaddedchars" style="background-color:#ddfade;">287</span> <span class="diffcontext">)<br> at org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">128</span> <span class="diffaddedchars" style="background-color:#ddfade;">129</span> <span class="diffcontext">)<br> at org.hibernate.loader.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">plan</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">initializeEntitiesAndCollections</span> <span class="diffaddedchars" style="background-color:#ddfade;">exec.process.internal.AbstractRowReader.performTwoPhaseLoad</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">AbstractRowReader</span> <span class="diffcontext">.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">1152</span> <span class="diffaddedchars" style="background-color:#ddfade;">238</span> <span class="diffcontext">)<br> at org.hibernate.loader.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">plan</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">processResultSet</span> <span class="diffaddedchars" style="background-color:#ddfade;">exec.process.internal.AbstractRowReader.finishUp</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">AbstractRowReader</span> <span class="diffcontext">.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">1011</span> <span class="diffaddedchars" style="background-color:#ddfade;">209</span> <span class="diffcontext">)<br> at org.hibernate.loader.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">plan</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">doQuery</span> <span class="diffaddedchars" style="background-color:#ddfade;">exec.process.internal.ResultSetProcessorImpl.extractResults</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">ResultSetProcessorImpl</span> <span class="diffcontext">.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">949</span> <span class="diffaddedchars" style="background-color:#ddfade;">133</span> <span class="diffcontext">)<br> at org.hibernate.loader.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">plan</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">doQueryAndInitializeNonLazyCollections</span> <span class="diffaddedchars" style="background-color:#ddfade;">exec.internal.AbstractLoadPlanBasedLoader.executeLoad</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">AbstractLoadPlanBasedLoader</span> <span class="diffcontext">.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">341</span> <span class="diffaddedchars" style="background-color:#ddfade;">122</span> <span class="diffcontext">)<br> at org.hibernate.loader.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">plan</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">doList</span> <span class="diffaddedchars" style="background-color:#ddfade;">exec.internal.AbstractLoadPlanBasedLoader.executeLoad</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">AbstractLoadPlanBasedLoader</span> <span class="diffcontext">.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">2692</span> <span class="diffaddedchars" style="background-color:#ddfade;">86</span> <span class="diffcontext">)<br> at org.hibernate.loader.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">entity</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">doList</span> <span class="diffaddedchars" style="background-color:#ddfade;">plan.AbstractLoadPlanBasedEntityLoader.load</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">AbstractLoadPlanBasedEntityLoader</span> <span class="diffcontext">.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">2675</span> <span class="diffaddedchars" style="background-color:#ddfade;">185</span> <span class="diffcontext">)<br> at org.hibernate.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">persister</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">entity</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">listIgnoreQueryCache</span> <span class="diffaddedchars" style="background-color:#ddfade;">AbstractEntityPersister.load</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">AbstractEntityPersister</span> <span class="diffcontext">.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">2507</span> <span class="diffaddedchars" style="background-color:#ddfade;">4226</span> <span class="diffcontext">)<br> at org.hibernate.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">event</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">internal</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">list</span> <span class="diffaddedchars" style="background-color:#ddfade;">DefaultLoadEventListener.loadFromDatasource</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">Loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">DefaultLoadEventListener</span> <span class="diffcontext">.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">2502</span> <span class="diffaddedchars" style="background-color:#ddfade;">509</span> <span class="diffcontext">)<br> at org.hibernate.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">loader</span> <span class="diffaddedchars" style="background-color:#ddfade;">event</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">criteria</span> <span class="diffaddedchars" style="background-color:#ddfade;">internal</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">CriteriaLoader</span> <span class="diffaddedchars" style="background-color:#ddfade;">DefaultLoadEventListener</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">list</span> <span class="diffaddedchars" style="background-color:#ddfade;">doLoad</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">CriteriaLoader</span> <span class="diffaddedchars" style="background-color:#ddfade;">DefaultLoadEventListener</span> <span class="diffcontext">.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">109</span> <span class="diffaddedchars" style="background-color:#ddfade;">479</span> <span class="diffcontext">)<br> at org.hibernate.</span> <span class="diffaddedchars" style="background-color:#ddfade;">event.</span> <span class="diffcontext">internal.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">SessionImpl</span> <span class="diffaddedchars" style="background-color:#ddfade;">DefaultLoadEventListener</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">list</span> <span class="diffaddedchars" style="background-color:#ddfade;">load</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">SessionImpl</span> <span class="diffaddedchars" style="background-color:#ddfade;">DefaultLoadEventListener</span> <span class="diffcontext">.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">1897</span> <span class="diffaddedchars" style="background-color:#ddfade;">220</span> <span class="diffcontext">)<br> at org.hibernate.</span> <span class="diffaddedchars" style="background-color:#ddfade;">event.</span> <span class="diffcontext">internal.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">CriteriaImpl</span> <span class="diffaddedchars" style="background-color:#ddfade;">DefaultLoadEventListener</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">list</span> <span class="diffaddedchars" style="background-color:#ddfade;">proxyOrLoad</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">CriteriaImpl</span> <span class="diffaddedchars" style="background-color:#ddfade;">DefaultLoadEventListener</span> <span class="diffcontext">.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">370</span> <span class="diffaddedchars" style="background-color:#ddfade;">263</span> <span class="diffcontext">)<br> at</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> com</span> <span class="diffaddedchars" style="background-color:#ddfade;"> org</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">sobis</span> <span class="diffaddedchars" style="background-color:#ddfade;">hibernate</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">jaf</span> <span class="diffaddedchars" style="background-color:#ddfade;">event</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">tests</span> <span class="diffaddedchars" style="background-color:#ddfade;">internal</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">setup</span> <span class="diffaddedchars" style="background-color:#ddfade;">DefaultLoadEventListener</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">DatabasePopulation.startBasicSetup</span> <span class="diffaddedchars" style="background-color:#ddfade;">doOnLoad</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">DatabasePopulation</span> <span class="diffaddedchars" style="background-color:#ddfade;">DefaultLoadEventListener</span> <span class="diffcontext">.java:122)</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">{noformat}</span> <span class="diffcontext"><br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"><br>This error always happens after clearing the persistence context</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org.hibernate.event.internal.DefaultLoadEventListener.onLoad</span> <span class="diffcontext"> (</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">either manually or when doing a commit) when the authority is reloaded:<br>{code:</span> <span class="diffaddedchars" style="background-color:#ddfade;">DefaultLoadEventListener.</span> <span class="diffcontext">java</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">}<br> Authority a = new Authority(</span> <span class="diffaddedchars" style="background-color:#ddfade;">:90</span> <span class="diffcontext">)</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">;</span> <span class="diffcontext"><br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> JafSid sid = new JafSid()</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">setSid("sid!");<br> sid</span> <span class="diffaddedchars" style="background-color:#ddfade;">hibernate</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">setRelatedEntity(a);<br> sid</span> <span class="diffaddedchars" style="background-color:#ddfade;">internal</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">setClassType("type!");<br> a</span> <span class="diffaddedchars" style="background-color:#ddfade;">SessionImpl</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">setClassType</span> <span class="diffaddedchars" style="background-color:#ddfade;">fireLoad</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">"type");<br> a</span> <span class="diffaddedchars" style="background-color:#ddfade;">SessionImpl</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">setSid(sid</span> <span class="diffaddedchars" style="background-color:#ddfade;">java:1255</span> <span class="diffcontext">)</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">;</span> <span class="diffcontext"><br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> a</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">setAuthority("name");<br></span> <span class="diffaddedchars" style="background-color:#ddfade;">hibernate.internal.SessionImpl.access</span> <span class="diffcontext"> $</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">session</span> <span class="diffaddedchars" style="background-color:#ddfade;">1900</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">)</span> <span class="diffaddedchars" style="background-color:#ddfade;">SessionImpl</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">save(a</span> <span class="diffaddedchars" style="background-color:#ddfade;">java:207</span> <span class="diffcontext">)</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">;</span> <span class="diffcontext"><br></span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org.hibernate.internal.SessionImpl</span> <span class="diffcontext"> $</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">session()</span> <span class="diffaddedchars" style="background-color:#ddfade;">IdentifierLoadAccessImpl</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">flush</span> <span class="diffaddedchars" style="background-color:#ddfade;">doLoad</span> <span class="diffcontext">(</span> <span class="diffaddedchars" style="background-color:#ddfade;">SessionImpl.java:2867</span> <span class="diffcontext">)</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">;</span> <span class="diffcontext"><br></span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org.hibernate.internal.SessionImpl</span> <span class="diffcontext"> $</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">session()</span> <span class="diffaddedchars" style="background-color:#ddfade;">IdentifierLoadAccessImpl</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">clear</span> <span class="diffaddedchars" style="background-color:#ddfade;">load</span> <span class="diffcontext">(</span> <span class="diffaddedchars" style="background-color:#ddfade;">SessionImpl.java:2841</span> <span class="diffcontext">)</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">;</span> <span class="diffcontext"><br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">//throws exception in next line!<br> LOGGER</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">error</span> <span class="diffaddedchars" style="background-color:#ddfade;">hibernate.internal.SessionImpl.get</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">"auth</span> <span class="diffaddedchars" style="background-color:#ddfade;">SessionImpl.java</span> <span class="diffcontext">:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> {}", $session(</span> <span class="diffaddedchars" style="background-color:#ddfade;">1091</span> <span class="diffcontext">)</span> <span class="diffaddedchars" style="background-color:#ddfade;"><br> at org</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">get(Authority</span> <span class="diffaddedchars" style="background-color:#ddfade;">hibernate</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">class, a</span> <span class="diffaddedchars" style="background-color:#ddfade;">bugs</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">getId</span> <span class="diffaddedchars" style="background-color:#ddfade;">TestCase.lambda$hhh12425$0</span> <span class="diffcontext">(</span> <span class="diffaddedchars" style="background-color:#ddfade;">TestCase.java:26</span> <span class="diffcontext">)</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">));</span> <span class="diffcontext"><br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">{code}<br><br>where <br>{code:java}<br>@Entity<br>public class Authority extends SidEntity<BOUser> {<br><br>(</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">hibernate</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">bugs</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">)<br>}<br>{code}<br>where SidEntity is<br>{code:java}<br>@Entity<br>@Table</span> <span class="diffaddedchars" style="background-color:#ddfade;">AbstractTestCase.doInOpenTransaction</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">name = SidEntity</span> <span class="diffaddedchars" style="background-color:#ddfade;">AbstractTestCase</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">TABLE</span> <span class="diffaddedchars" style="background-color:#ddfade;">java:51</span> <span class="diffcontext">)<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">public abstract class SidEntity<BO extends BOSidEntity<? extends SidEntity<BO>>> extends Base<BO> {<br>(</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">hibernate</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">bugs</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">TestCase.hhh12425(TestCase.java:17</span> <span class="diffcontext">)<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">private JafSid sid;<br>(</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at sun</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">reflect</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">NativeMethodAccessorImpl</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">invoke0(Native Method</span> <span class="diffcontext">)<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> @OneToOne(mappedBy = JafSid</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at sun</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">RELATED_ENTITY, optional = false, fetch = FetchType</span> <span class="diffaddedchars" style="background-color:#ddfade;">reflect</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">EAGER, orphanRemoval = true)<br> @IndexedEmbedded</span> <span class="diffaddedchars" style="background-color:#ddfade;">NativeMethodAccessorImpl.invoke</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">depth = 1, prefix = SID + JSONFieldDefinition</span> <span class="diffaddedchars" style="background-color:#ddfade;">NativeMethodAccessorImpl</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">MODEL_SUFFIX</span> <span class="diffaddedchars" style="background-color:#ddfade;">java:62</span> <span class="diffcontext">)<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> @Cascade</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at sun.reflect.DelegatingMethodAccessorImpl.invoke</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">CascadeType</span> <span class="diffaddedchars" style="background-color:#ddfade;">DelegatingMethodAccessorImpl</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">ALL</span> <span class="diffaddedchars" style="background-color:#ddfade;">java:43</span> <span class="diffcontext">)<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> public JafSid getSid</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at java.lang.reflect.Method.invoke</span> <span class="diffcontext">(</span> <span class="diffaddedchars" style="background-color:#ddfade;">Method.java:498</span> <span class="diffcontext">)</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> {</span> <span class="diffcontext"><br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> return sid;<br> }<br>(</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">junit</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">runners</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">)<br>}<br>{code}<br>where JafSid is<br><br>{code:java}<br>public class JafSid extends Base<BOJafSid> implements Sid {<br>(</span> <span class="diffaddedchars" style="background-color:#ddfade;">model</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">FrameworkMethod$1</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">runReflectiveCall(FrameworkMethod</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">java:50</span> <span class="diffcontext">)<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">private Set<UserGroup> groups = new LinkedHashSet<></span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org.junit.internal.runners.model.ReflectiveCallable.run</span> <span class="diffcontext">(</span> <span class="diffaddedchars" style="background-color:#ddfade;">ReflectiveCallable.java:12</span> <span class="diffcontext">)</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">;</span> <span class="diffcontext"><br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"><br>(</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">junit</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">runners</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">)<br><br>@IndexedEmbedded</span> <span class="diffaddedchars" style="background-color:#ddfade;">model.FrameworkMethod.invokeExplosively</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">depth = 1, prefix = GROUPS + JSONFieldDefinition</span> <span class="diffaddedchars" style="background-color:#ddfade;">FrameworkMethod</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">MODEL_SUFFIX</span> <span class="diffaddedchars" style="background-color:#ddfade;">java:47</span> <span class="diffcontext">)<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> @ManyToMany</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">mappedBy = UserGroup</span> <span class="diffaddedchars" style="background-color:#ddfade;">ExtendedFrameworkMethod</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">MEMBERS</span> <span class="diffaddedchars" style="background-color:#ddfade;">java:45</span> <span class="diffcontext">)<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> @Cache</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org.junit.internal.runners.statements.InvokeMethod.evaluate</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">usage = CacheConcurrencyStrategy</span> <span class="diffaddedchars" style="background-color:#ddfade;">InvokeMethod</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">READ_WRITE</span> <span class="diffaddedchars" style="background-color:#ddfade;">java:17</span> <span class="diffcontext">)<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> public Set<UserGroup> getGroups</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org.junit.internal.runners.statements.RunBefores.evaluate</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">) {<br> return groups;<br> }<br>{code}<br>where Base is<br>{code:java}<br>@Entity<br>@Polymorphism(type = PolymorphismType</span> <span class="diffaddedchars" style="background-color:#ddfade;">RunBefores</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">EXPLICIT</span> <span class="diffaddedchars" style="background-color:#ddfade;">java:26</span> <span class="diffcontext">)<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">@Inheritance</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org.junit.internal.runners.statements.RunAfters.evaluate</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">strategy = InheritanceType</span> <span class="diffaddedchars" style="background-color:#ddfade;">RunAfters</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">JOINED</span> <span class="diffaddedchars" style="background-color:#ddfade;">java:27</span> <span class="diffcontext">)<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">@Cache</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">usage = CacheConcurrencyStrategy</span> <span class="diffaddedchars" style="background-color:#ddfade;">FailOnTimeout</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">READ_WRITE, include = "non-lazy"</span> <span class="diffaddedchars" style="background-color:#ddfade;">java:298</span> <span class="diffcontext">)<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">public abstract class Base<BO extends BOBase<? extends Base<BO>>> extends DatabaseEntity<BO> implements IBase {<br>(</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at org</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">junit</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">internal</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292</span> <span class="diffcontext">)<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">}<br>{code}<br>where DatabaseEntity is<br>{code:</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at</span> <span class="diffcontext">java</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">}<br>@MappedSuperclass<br>@BusinessLogic</span> <span class="diffaddedchars" style="background-color:#ddfade;">.util.concurrent.FutureTask.run</span> <span class="diffcontext">(</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">relevantSecurityFields = {}</span> <span class="diffaddedchars" style="background-color:#ddfade;">FutureTask.java:266</span> <span class="diffcontext">)<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">public abstract class DatabaseEntity<BO extends BODatabaseEntity<? extends DatabaseEntity<BO>>><br> implements IDatabaseEntity, Comparable<DatabaseEntity<BO>> {<br>(</span> <span class="diffaddedchars" style="background-color:#ddfade;"> at java</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">lang</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">Thread</span> <span class="diffcontext">.</span> <span class="diffaddedchars" style="background-color:#ddfade;">run(Thread.java:748</span> <span class="diffcontext">)<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">}<br></span> <span class="diffcontext">{</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">code</span> <span class="diffaddedchars" style="background-color:#ddfade;">noformat</span> <span class="diffcontext">}<br></span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">The issue</span> <span class="diffaddedchars" style="background-color:#ddfade;"><br>This error</span> <span class="diffcontext"> happens</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> in TwoPhaseLoad.doInitializeEntity,</span> <span class="diffcontext"> when</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> the hydrated state of JafSid</span> <span class="diffaddedchars" style="background-color:#ddfade;"> ExtendedSelfDirtinessTracker is applied during enhancement</span> <span class="diffcontext">.</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">getGroups</span> <span class="diffaddedchars" style="background-color:#ddfade;"> Accessing size</span> <span class="diffcontext">()</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> is resolved.<br><br> !image-2018-03-22-16-47-49-937.png|thumbnail! <br><br>The collection that needs to be taken from this.xrefLoadingCollectionEntries throws the LazyInitializationException.<br><br>Maybe this already gives enough clues. As the inheritance structure</span> <span class="diffcontext"> of</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> the entities is quite difficult, I wasn't able to prepare</span> <span class="diffcontext"> an</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> isolated test case yet, but maybe this already helps to fix</span> <span class="diffaddedchars" style="background-color:#ddfade;"> uninitialized collection triggers</span> <span class="diffcontext"> the</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> issue</span> <span class="diffaddedchars" style="background-color:#ddfade;"> exception</span> <span class="diffcontext">.</span> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand " style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff" bgcolor="#ffffff"> <script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"description": "View Issue",
"potentialAction": {
"@type": "ViewAction",
"target": "https://hibernate.atlassian.net/browse/HHH-12425?inbox=true&",
"name": "View Issue"
},
"publisher": {
"@type": "Organization",
"name": "Atlassian",
"url": "https://www.atlassian.com"
}
}
</script>
<table id="actions-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px">
<tbody>
<tr>
<td id="actions-pattern-container" valign="middle" style="padding: 0; border-collapse: collapse; padding: 10px 0 10px 24px; vertical-align: middle; padding-left: 0">
<table align="left" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<td class="actions-pattern-action-icon-container" style="padding: 0; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 0; vertical-align: middle"> <a href="https://hibernate.atlassian.net/browse/HHH-12425#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none"> <img class="actions-pattern-action-icon-image" src="cid:jira-generated-image-static-comment-icon-74a37cdb-0325-4dbc-9dfc-f724bf044448" alt="Add Comment" title="Add Comment" height="16" width="16" border="0" style="vertical-align: middle"> </a> </td>
<td class="actions-pattern-action-text-container" style="padding: 0; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 4px; padding-left: 5px"> <a href="https://hibernate.atlassian.net/browse/HHH-12425#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none">Add Comment</a> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table> </td>
</tr>
<!-- there needs to be content in the cell for it to render in some clients -->
<tr>
<td class="email-content-rounded-bottom mobile-expand" style="padding: 0; border-collapse: collapse; color: #ffffff; padding: 0 15px 0 16px; height: 5px; line-height: 5px; background-color: #ffffff; border-top: 0; border-left: 1px solid #cccccc; border-bottom: 1px solid #cccccc; border-right: 1px solid #cccccc; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; mso-line-height-rule: exactly" height="5" bgcolor="#ffffff"> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td id="footer-pattern" style="padding: 0; border-collapse: collapse; padding: 12px 20px">
<table id="footer-pattern-container" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<td id="footer-pattern-mobile-separated-links" class="mobile-resize-text" width="100%" colspan="2" style="padding: 0; border-collapse: collapse; color: #999999; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px"> Get Jira notifications on your phone! Download the Jira Cloud app for <a href="https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail" style="color: #3b73af; text-decoration: none">Android</a> or <a href="https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8" style="color: #3b73af; text-decoration: none">iOS</a>
<hr> </td>
</tr>
<tr>
<td id="footer-pattern-text" class="mobile-resize-text" width="100%" style="padding: 0; border-collapse: collapse; color: #999999; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px"> This message was sent by Atlassian Jira <span id="footer-build-information">(v1001.0.0-SNAPSHOT#100085-<span title="e85239e38b43232850c11e1ce703412eb3111098" data-commit-id="e85239e38b43232850c11e1ce703412eb3111098}">sha1:e85239e</span>)</span> </td>
<td id="footer-pattern-logo-desktop-container" valign="top" style="padding: 0; border-collapse: collapse; padding-left: 20px; vertical-align: top">
<table style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0">
<tbody>
<tr>
<td id="footer-pattern-logo-desktop-padding" style="padding: 0; border-collapse: collapse; padding-top: 3px; opacity: 0.150"> <img id="footer-pattern-logo-desktop" src="cid:jira-generated-image-static-footer-desktop-logo-f9fdc0e3-d4f8-4f3d-a1f4-9555fd4b3251" alt="Atlassian logo" title="Atlassian logo" width="192" height="24" class="image_fix"> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table>
<img src="https://u4043402.ct.sendgrid.net/wf/open?upn=YNXLe5Uzuivj8jGpuXra04BSJ-2BS7raa1puTAtyVUP-2F0UG25sB-2BHToWWBMcbXwnNUV-2B-2BXju4JhdxVHxc8suXty3EqcJFxWf7t9Xn3Aiu5wbuvugC2B3xQaQNoSzRnvMlLoeJolBo7RpyJ-2FV-2FDkPC0jB7-2FV01B0zARHijf0us3e86XUcpuv2q5dbYMjbfTw4-2FFaD0TzdDb7m-2FlnaVmWVwpZGiGR9zQYNlsjv202rXcVY-2FYMSIrl9AyShqXV7ZfFUH3aSE-2FlVV7tVE1bzhmD-2FhNXlbP2l8YJEgvX-2Fj8MSh79ayHMY8sIJhDbTrnfY8u-2FnNVkfoXaibHLz6-2Fqnn2gIX4-2BsGOczSoiCrGlj2H3hOSYvTIGQ89YcHSPUa5FJv86M-2B6f-2BMYIW3OGaCPU-2FaWO0ZCy4WLnBKIevng66BAuC2zdOfRfXYzIefgZYm3QltVg8F8glm6e-2BecHJJXZyCtchmP3w-3D-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body>
</html>