Bug 809962

Summary: [gui] Resource Inventory>Children subtab: attempting to sort by category-icon column (the leftmost column) causes server-side exception
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: Core UIAssignee: RHQ Project Maintainer <rhq-maint>
Status: NEW --- QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: medium    
Version: 4.3CC: hbrock, hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Ian Springer 2012-04-04 14:36:20 EDT
Here's the stack trace:

java.lang.RuntimeException:[1333564640129] javax.ejb.EJBException:java.lang.IllegalArgumentException: org.hibernate.QueryException: could not resolve property: icon of: org.rhq.core.domain.resource.Resource [SELECT new org.rhq.core.domain.resource.composite.ResourceComposite(   resource,    resource.currentAvailability.availabilityType ) 
FROM org.rhq.core.domain.resource.Resource resource
WHERE ( resource.inventoryStatus = :inventoryStatus 
AND resource.parentResource.id = :parentResourceId )
ORDER BY resource.icon ASC
] -> java.lang.IllegalArgumentException:org.hibernate.QueryException: could not resolve property: icon of: org.rhq.core.domain.resource.Resource [SELECT new org.rhq.core.domain.resource.composite.ResourceComposite(   resource,    resource.currentAvailability.availabilityType ) 
FROM org.rhq.core.domain.resource.Resource resource
WHERE ( resource.inventoryStatus = :inventoryStatus 
AND resource.parentResource.id = :parentResourceId )
ORDER BY resource.icon ASC
] -> org.hibernate.QueryException:could not resolve property: icon of: org.rhq.core.domain.resource.Resource [SELECT new org.rhq.core.domain.resource.composite.ResourceComposite(   resource,    resource.currentAvailability.availabilityType ) 
FROM org.rhq.core.domain.resource.Resource resource
WHERE ( resource.inventoryStatus = :inventoryStatus 
AND resource.parentResource.id = :parentResourceId )
ORDER BY resource.icon ASC
]
--- STACK TRACE FOLLOWS ---
[1333564640129] javax.ejb.EJBException:java.lang.IllegalArgumentException: org.hibernate.QueryException: could not resolve property: icon of: org.rhq.core.domain.resource.Resource [SELECT new org.rhq.core.domain.resource.composite.ResourceComposite(   resource,    resource.currentAvailability.availabilityType ) 
FROM org.rhq.core.domain.resource.Resource resource
WHERE ( resource.inventoryStatus = :inventoryStatus 
AND resource.parentResource.id = :parentResourceId )
ORDER BY resource.icon ASC
] -> java.lang.IllegalArgumentException:org.hibernate.QueryException: could not resolve property: icon of: org.rhq.core.domain.resource.Resource [SELECT new org.rhq.core.domain.resource.composite.ResourceComposite(   resource,    resource.currentAvailability.availabilityType ) 
FROM org.rhq.core.domain.resource.Resource resource
WHERE ( resource.inventoryStatus = :inventoryStatus 
AND resource.parentResource.id = :parentResourceId )
ORDER BY resource.icon ASC
] -> org.hibernate.QueryException:could not resolve property: icon of: org.rhq.core.domain.resource.Resource [SELECT new org.rhq.core.domain.resource.composite.ResourceComposite(   resource,    resource.currentAvailability.availabilityType ) 
FROM org.rhq.core.domain.resource.Resource resource
WHERE ( resource.inventoryStatus = :inventoryStatus 
AND resource.parentResource.id = :parentResourceId )
ORDER BY resource.icon ASC
]
   at Unknown.dg(Unknown Source)
   at Unknown.$yb(Unknown Source)
   at Unknown.UDb(Unknown Source)
   at Unknown.PDb(Unknown Source)
   at Unknown.rBb(Unknown Source)
   at Unknown.oCb(Unknown Source)
   at Unknown.gQh(Unknown Source)
   at Unknown.xo(Unknown Source)
   at Unknown.$o(Unknown Source)
   at Unknown.anonymous(Unknown Source)
   at Unknown.nh(Unknown Source)
   at Unknown.qh(Unknown Source)
   at Unknown.anonymous(Unknown Source)
   at Unknown.anonymous(Unknown Source)