Bug 961861 - Resource configuration not loading due to duplicate times in update history
Summary: Resource configuration not loading due to duplicate times in update history
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Configuration
Version: 4.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-10 15:13 UTC by Steve Bicker
Modified: 2022-03-31 04:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Steve Bicker 2013-05-10 15:13:23 UTC
Description of problem:
Navigated to the page to display the current configuration for a resource. The content did not load and instead a red error banner displayed with the following information:

Message: Failed to load configuration.
Detail:
java.lang.RuntimeException:[1368198050579] javax.ejb.EJBException:javax.persistence.NonUniqueResultException: result returns 2 elements -> javax.persistence.NonUniqueResultException:result returns 2 elements
--- STACK TRACE FOLLOWS ---
[1368198050579] javax.ejb.EJBException:javax.persistence.NonUniqueResultException: result returns 2 elements -> javax.persistence.NonUniqueResultException:result returns 2 elements


Then discovered that it was being caused by two items in the configuration history having the exact same creation and modified times in the database. Was able to resolve by loading the configuration history page and deleting one of the duplicate entries, but it is unknown as to why they got created like that in the first place. (Also, neither update was directly created by a user; they were automatically generated by RHQ).


Version-Release number of selected component (if applicable):
Version: 4.2.0
Build Number: 6746535


How reproducible:
Have not been able to reproduce.

  
Actual results:
Error banner displays; configuration page does not load.


Expected results:
Configuration page loads without error.


Additional info:


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