Error while adding JMX server
mihir8979 Aug 2, 2011 10:15 AM
All , I am getting below error while adding JMX server manually from RHQ server. Any one has idea how to recover from this error gracefully. I am able to connect to JMX server from JCONSOLE. at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:173) Caused by: java.lang.NullPointerException: [Warning] null ... 25 more 2011-08-02 19:39:16,791 INFO [org.rhq.enterprise.server.core.AgentManagerBean] Have not heard from agent [225Box] since [Tue Aug 02 19:00:28 IST 2011]. Will be backfilled since we suspect it is down 2011-08-02 19:40:16,718 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 2292, SQLState: 23000 2011-08-02 19:40:16,719 ERROR [org.hibernate.util.JDBCExceptionReporter] ORA-02292: integrity constraint (RHQ.SYS_C008511) violated - child record found 2011-08-02 19:40:16,719 ERROR [org.rhq.enterprise.server.resource.ResourceManagerBean] Bulk named query delete error for 'AlertCondition.deleteByResources' for [10861]: org.hibernate.exception.ConstraintViolationException: could not execute update query 2011-08-02 19:40:16,747 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 2292, SQLState: 23000 2011-08-02 19:40:16,747 ERROR [org.hibernate.util.JDBCExceptionReporter] ORA-02292: integrity constraint (RHQ.SYS_C008494) violated - child record found 2011-08-02 19:40:16,747 ERROR [org.rhq.enterprise.server.resource.ResourceManagerBean] Bulk named query delete error for 'AlertDefinition.deleteByResources' for [10861]: org.hibernate.exception.ConstraintViolationException: could not execute update query 2011-08-02 19:40:16,749 INFO [org.rhq.enterprise.server.scheduler.jobs.AsyncResourceDeleteJob] Async resource deletion - 1 successful, 0 failed, took [270] ms 2011-08-02 19:40:33,591 WARN [org.hibernate.hql.ast.QueryTranslatorImpl] firstResult/maxResults specified with collection fetch; applying in memory! 2011-08-02 19:40:55,362 WARN [gwt-log] Sending exception to client: [1312294255362] org.rhq.core.clientapi.agent.PluginContainerException: Failed to add resource with type [JMX Server] and parent resource id [10981] at org.rhq.core.pc.inventory.InventoryManager.manuallyAddResource(InventoryManager.java:826) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.rhq.enterprise.communications.command.impl.remotepojo.server.RemotePojoInvocationCommandService.execute(RemotePojoInvocationCommandService.java:184) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93) at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27) at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208) at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120) at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:288) at $Proxy0.execute(Unknown Source) at org.rhq.enterprise.communications.command.server.CommandProcessor.handleIncomingInvocationRequest(CommandProcessor.java:290) at org.rhq.enterprise.communications.command.server.CommandProcessor.invoke(CommandProcessor.java:184) at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:809) at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:608) at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:406) at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:173) Caused by: java.lang.NullPointerException: [Warning] null
... 25 more