Bug 603970 - Double-submitting produces NonUniqueObjectException
Summary: Double-submitting produces NonUniqueObjectException
Status: CLOSED WONTFIX
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 1.3.1
Hardware: All
OS: Linux
low
medium vote
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Corey Welton
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-15 03:13 UTC by Ondřej Žižka
Modified: 2010-09-24 13:07 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2010-09-24 13:07:51 UTC


Attachments (Terms of Use)
Screenshot (37.73 KB, image/png)
2010-06-15 03:15 UTC, Ondřej Žižka
no flags Details

Description Ondřej Žižka 2010-06-15 03:13:13 UTC
STR:

0) Install JON 2.3.1
1) Install some EAP & inventorize it
2) Unsubscribe the JBoss Patch Channel
3) Subscribe it back, but click the ADD SUBSCRIPTIONS button twice in succession.
4) You'll get this error message:

-----------------------------------
Failed to subscribe one or more channels to resource Cause: javax.ejb.EJBException:javax.persistence.PersistenceException: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [org.rhq.core.domain.content.ResourceChannel#ResourceChannelPK: resource=[Resource[id=10003, type=JBossAS Server, key=/home/brq/ozizka/work/dist-diff/jboss-eap-noauth-5.0.1/server/all, name=jawa27.mw.lab.eng.brq.redhat.com JBoss EAP 5.0.1 all (0.0.0.0:1099), parent=jawa27.mw.lab.eng.brq.redhat.com, version=5.0.1]]; channel=[Channel: id=[10001], name=[Stage CSP Channel]]] -> javax.persistence.PersistenceException:org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [org.rhq.core.domain.content.ResourceChannel#ResourceChannelPK: resource=[Resource[id=10003, type=JBossAS Server, key=/home/brq/ozizka/work/dist-diff/jboss-eap-noauth-5.0.1/server/all, name=jawa27.mw.lab.eng.brq.redhat.com JBoss EAP 5.0.1 all (0.0.0.0:1099), parent=jawa27.mw.lab.eng.brq.redhat.com, version=5.0.1]]; channel=[Channel: id=[10001], name=[Stage CSP Channel]]] -> org.hibernate.NonUniqueObjectException:a different object with the same identifier value was already associated with the session: [org.rhq.core.domain.content.ResourceChannel#ResourceChannelPK: resource=[Resource[id=10003, type=JBossAS Server, key=/home/brq/ozizka/work/dist-diff/jboss-eap-noauth-5.0.1/server/all, name=jawa27.mw.lab.eng.brq.redhat.com JBoss EAP 5.0.1 all (0.0.0.0:1099), parent=jawa27.mw.lab.eng.brq.redhat.com, version=5.0.1]]; channel=[Channel: id=[10001], name=[Stage CSP Channel]]]
-----------------------------------

Comment 1 Ondřej Žižka 2010-06-15 03:15:44 UTC
Created attachment 424023 [details]
Screenshot

Comment 2 Corey Welton 2010-09-24 13:07:39 UTC
closing per gwt effort


Note You need to log in before you can comment on or make changes to this bug.