tags:

views:

64

answers:

0

HI, This is Rajesh, I have web application. Server is Tomcat. We are using the JMX for monitoring client activities. client is standalone application. In windows its working fine with out any issue. but in linux. its giving exceptions. like

service:jmx:rmi:///jndi/rmi://127.0.0.1:9998/server java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: server The CHAOS ip addr has exited and unregistered

code: String url = "service:jmx:rmi:///jndi /rmi://"+nodeBean.getIp()+":"+ nodeBean.getPort()+"/server";

 ***JMXServiceURL jmxServiceUrl = new JMXServiceURL(url);***

 nodeBean.setUrl(jmxServiceUrl);
 heartBeatListener = new ClientListener();
 JMXConnector jmxc = JMXConnectorFactory.connect(jmxServiceUrl);
 nodeBean.setCon(jmxc);
 MBeanServerConnection mbsc = jmxc.getMBeanServerConnection();
 nodeBean.setMbsc(mbsc);
ObjectName objName = new ObjectName(mbsc.getDefaultDomain()+":type=MCHAOS,IP=" +nodeBean.getIp());
 proxy = JMX.newMXBeanProxy(mbsc, objName,            com.hp.hpl.CHAOS.Component.MCHAOSMXBean.class, true);
 nodeBean.setMchaosProxy(proxy);
 ObjectName timerListenerName = new ObjectName(mbsc.getDefaultDomain() +":type=heartBeatTimer");

its not able to create the object for jmxServiceUrl...... any settings or properties have to change? please reply me as soon as possible...............

Thanks & Regards Rajesh