0 Replies Latest reply on Apr 3, 2015 4:02 AM by Gaurav Katkamwar

    Getting error while loading cache for agent

    Gaurav Katkamwar Newbie

      I am getting following exception while loading cache for agent, due to this alerts are not populated on event detection

       

      02:24:59,204 DEBUG [org.rhq.enterprise.server.alert.engine.internal.AlertConditionCacheCoordinator] (EJB default - 2) Start reloading cache for agent[id=10011]

      02:24:59,204 DEBUG [org.rhq.enterprise.server.naming.AccessCheckingInitialContextFactoryBuilder] (EJB default - 2) No java.naming.factory.initial set. Using the default factory.

      02:24:59,204 DEBUG [org.rhq.enterprise.server.naming.AccessCheckingInitialContextFactoryBuilder] (EJB default - 2) No java.naming.factory.initial set. Using the default factory.

      02:24:59,205 DEBUG [org.rhq.enterprise.server.naming.AccessCheckingInitialContextFactoryBuilder] (EJB default - 2) No java.naming.factory.initial set. Using the default factory.

      02:24:59,205 DEBUG [org.rhq.enterprise.server.naming.AccessCheckingInitialContextFactoryBuilder] (EJB default - 2) No java.naming.factory.initial set. Using the default factory.

      02:24:59,205 DEBUG [org.rhq.enterprise.server.alert.engine.internal.AlertConditionCacheCoordinator] (EJB default - 2) Loading Alert Condition Caches for agent[id=10011]...

      02:24:59,206 DEBUG [org.rhq.enterprise.server.naming.AccessCheckingInitialContextFactoryBuilder] (EJB default - 2) No java.naming.factory.initial set. Using the default factory.

      02:24:59,206 DEBUG [org.rhq.enterprise.server.util.HibernatePerformanceMonitor] (EJB default - 2) HibernateStats[ queries=0, xactions=0, loads=0, connects=0, time=0 ] for SLSB:SubjectManagerBean.getOverlord

      02:24:59,207 DEBUG [org.rhq.enterprise.server.naming.AccessCheckingInitialContextFactoryBuilder] (EJB default - 2) No java.naming.factory.initial set. Using the default factory.

      02:24:59,207 DEBUG [org.rhq.enterprise.server.naming.AccessCheckingInitialContextFactoryBuilder] (EJB default - 2) No java.naming.factory.initial set. Using the default factory.

      02:24:59,226 DEBUG [org.rhq.enterprise.server.alert.AlertConditionManagerBean] (EJB default - 2) Found 32 elements of type 'Measurement Threshold', list was size 31

      02:24:59,226 DEBUG [org.rhq.enterprise.server.util.HibernatePerformanceMonitor] (EJB default - 2) HibernateStats[ queries=2, xactions=0, loads=31, connects=2, time=18 ] for SLSB:AlertConditionManagerBean.getAlertConditionComposites

      02:24:59,227 DEBUG [org.rhq.enterprise.server.naming.AccessCheckingInitialContextFactoryBuilder] (EJB default - 2) No java.naming.factory.initial set. Using the default factory.

      02:24:59,228 DEBUG [org.rhq.enterprise.server.naming.AccessCheckingInitialContextFactoryBuilder] (EJB default - 2) No java.naming.factory.initial set. Using the default factory.

      02:24:59,238 DEBUG [org.rhq.enterprise.server.alert.AlertConditionManagerBean] (EJB default - 2) Found 32 elements of type 'Measurement Threshold', list was size 0

      02:24:59,238 DEBUG [org.rhq.enterprise.server.util.HibernatePerformanceMonitor] (EJB default - 2) HibernateStats[ queries=2, xactions=0, loads=0, connects=2, time=10 ] for SLSB:AlertConditionManagerBean.getAlertConditionComposites

      02:24:59,239 ERROR [org.jboss.as.ejb3.invocation] (EJB default - 2) JBAS014134: EJB Invocation failed on component AlertConditionManagerBean for method public abstract org.rhq.core.domain.util.PageList org.rhq.enterprise.server.alert.AlertConditionManagerLocal.getAlertConditionComposites(org.rhq.core.domain.auth.Subject,java.lang.Integer,org.rhq.core.domain.alert.AlertConditionCategory,org.rhq.core.domain.util.PageControl): javax.ejb.EJBException: java.lang.IllegalArgumentException: PageList was passed an empty collection but 'totalSize' was 32, PageControl[page=1, size=250]

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:165) [jboss-as-ejb3-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:250) [jboss-as-ejb3-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:344) [jboss-as-ejb3-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:216) [jboss-as-ejb3-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [jboss-as-ejb3-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]