Bug 1078785 - Enabling of metric schedules may not be reflected in monitoring tab
Summary: Enabling of metric schedules may not be reflected in monitoring tab
Keywords:
Status: CLOSED DUPLICATE of bug 1081554
Alias: None
Product: RHQ Project
Classification: Other
Component: Core Server, Core UI, Monitoring
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: RHQ 4.11
Assignee: Jirka Kremser
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-20 10:24 UTC by Heiko W. Rupp
Modified: 2014-04-15 11:12 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-04-15 11:12:45 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1081554 0 unspecified CLOSED Cannot load metrics error on a resource with no enabled metrics 2021-02-22 00:41:40 UTC

Internal Links: 1081554

Description Heiko W. Rupp 2014-03-20 10:24:53 UTC
I have a user with mostly view-only rights, but who is able to modify schedules.

Now when I go to a resource with no enabled schedules, enable a schedule and then go back to the metrics display no charts do not show up for this user.
The server log shows the below.

Now when I reload the UI, the metrics show up.

Looks like there are no definition ids passed to the query. Apparently the enabled definitions are not updated in the UI.


10:03:37,527 WARN  [org.rhq.coregui.server.gwt.MeasurementDataGWTServiceImpl] (http-/0.0.0.0:7443-1) Sending exception to client:
[1395309817527] : javax.ejb.EJBException: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException:
 unexpected end of subtree [SELECT ms   FROM org.rhq.core.domain.measurement.MeasurementSchedule ms  WHERE ms.definition.id IN ()
   AND ms.resource.id IN (:resourceIds)]
        at org.rhq.enterprise.server.measurement.MeasurementDataManagerLocal$$$view124.findLiveData(Unknown Source) [rhq-server.ja
r:4.10.0]
        at org.rhq.coregui.server.gwt.MeasurementDataGWTServiceImpl.findLiveData(MeasurementDataGWTServiceImpl.java:85) [classes:]

[..]   

Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected end of subtree [SEL
ECT ms   FROM org.rhq.core.domain.measurement.MeasurementSchedule ms  WHERE ms.definition.id IN ()    AND ms.resource.id IN (:reso
urceIds)]
        at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1374) [hibernate-entitymanager-4.2.0
.CR1.jar:4.2.0.CR1]
        at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1310) [hibernate-entitymanager-4.2.0
.CR1.jar:4.2.0.CR1]
        at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:273) [hibernate-entitymanager-4.2.0.CR1.jar:4.2.0.CR1]
        at org.rhq.enterprise.server.measurement.MeasurementDataManagerBean.findLiveData(MeasurementDataManagerBean.java:897) [rhq
-server.jar:4.10.0]
        at org.rhq.enterprise.server.measurement.MeasurementDataManagerBean.findLiveData(MeasurementDataManagerBean.java:873) [rhq
-server.jar:4.10.0]

Comment 2 Jirka Kremser 2014-04-15 11:12:45 UTC
I've already fixed this bug

*** This bug has been marked as a duplicate of bug 1081554 ***


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