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]
I've already fixed this bug *** This bug has been marked as a duplicate of bug 1081554 ***