Bug 969535

Summary: Failure applying alert template to newly imported resource
Product: [Other] RHQ Project Reporter: Jay Shaughnessy <jshaughn>
Component: Core ServerAssignee: Jay Shaughnessy <jshaughn>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.7CC: hrupp
Target Milestone: ---   
Target Release: RHQ 4.8   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-11 09:53:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jay Shaughnessy 2013-05-31 18:04:47 UTC
This is hard to reproduce but I was able to reproduce consistently in a dev installation.  When applying the alert template to the newly imported resource we generated:

  org.hibernate.HibernateException:illegally attempted to associate a proxy with two open Sessions

Which is an issue that can happen when passing an attached Hibernate proxy into a new Tx context.

Comment 1 Jay Shaughnessy 2013-05-31 18:08:05 UTC
master commit 160a6fabeea18fd7410560a8f00206736997adb9
    Fix an issue with alert template application to discovered resources. The
    root cause has to do with sending attached entities across Tx boundaries:

Comment 2 Heiko W. Rupp 2013-09-11 09:53:18 UTC
Bulk closing of old issues now that HRQ 4.9 is in front of the door.

If you think the issue has not been solved, then please open a new bug and mention this one in the description.