0 Replies Latest reply on Jul 24, 2009 12:52 PM by asddsa dsasd

    java.lang.ClassCastException: javax.management.ObjectName

    asddsa dsasd Newbie

      Agent can not connect oto jboss instance

      Jopr 2.2.1
      JBossEAP 4.3.0.GA_CP04

      2009-07-24 18:44:57,256 INFO [MeasurementManager.sender-1] (rhq.core.pc.measurement.MeasurementCollectorRunner)- Measurement collection for [8] metrics took 3ms - sending report to Server...
      2009-07-24 18:45:50,118 INFO [ResourceContainer.invoker.daemon-1] (org.mc4j.ems.connection.ConnectionFactory)- Connection library dependancy [lib/xercesImpl.jar] not found in directory: /opt/jboss-4.3.0.GA_CP04
      2009-07-24 18:45:50,119 INFO [ResourceContainer.invoker.daemon-1] (org.mc4j.ems.connection.ConnectionFactory)- Connection library dependancy [lib/xml-apis.jar] not found in directory: /opt/jboss-4.3.0.GA_CP04
      2009-07-24 18:45:50,119 INFO [ResourceContainer.invoker.daemon-1] (org.mc4j.ems.connection.ConnectionFactory)- Connection library dependancy [lib/dom4j.jar] not found in directory: /opt/jboss-4.3.0.GA_CP04
      2009-07-24 18:45:50,119 INFO [ResourceContainer.invoker.daemon-1] (org.mc4j.ems.connection.ConnectionFactory)- Connection library dependancy [client/jmx-rmi-connector-client.jar] not found in directory: /opt/jboss-4.3.0.GA_CP04
      2009-07-24 18:45:50,124 INFO [ResourceContainer.invoker.daemon-1] (org.mc4j.ems.connection.ConnectionFactory)- Connection library dependancy [lib/endorsed/xml-apis.jar] not found in directory: /opt/jboss-4.3.0.GA_CP04
      2009-07-24 18:45:50,126 INFO [ResourceContainer.invoker.daemon-1] (org.mc4j.ems.connection.ConnectionFactory)- Discovered libraries in 14 ms
      2009-07-24 18:45:50,126 INFO [ResourceContainer.invoker.daemon-1] (org.rhq.plugins.jbossas.JBossASServerComponent)- Loading JBoss connection [jnp://10.0.0.1:1099] with install path [/opt/jboss-4.3.0.GA_CP04]...
      2009-07-24 18:45:50,132 INFO [ResourceContainer.invoker.daemon-1] (ems.impl.jmx.connection.DConnection)- Querying MBeanServer for all MBeans
      2009-07-24 18:45:50,146 INFO [ResourceContainer.invoker.daemon-1] (ems.impl.jmx.connection.DConnection)- Found 1194 MBeans, starting load
      2009-07-24 18:45:50,146 WARN [ResourceContainer.invoker.daemon-1] (org.rhq.plugins.jbossas.JBossASServerComponent)- Could not establish connection to the JBoss AS instance [91] times for resource [/opt/jboss-4.3.0.GA_CP04/server/production]
      java.lang.ClassCastException: javax.management.ObjectName
      at org.mc4j.ems.impl.jmx.connection.DConnection.loadSynchronous(DConnection.java:147)
      at org.rhq.plugins.jbossas.JBossASServerComponent.loadConnection(JBossASServerComponent.java:1024)
      at org.rhq.plugins.jbossas.JBossASServerComponent.getAvailability(JBossASServerComponent.java:268)
      at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:511)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:595)