Example usage for javax.management InstanceNotFoundException toString

List of usage examples for javax.management InstanceNotFoundException toString

Introduction

In this page you can find the example usage for javax.management InstanceNotFoundException toString.

Prototype

public String toString() 

Source Link

Document

Returns a short description of this throwable.

Usage

From source file:org.openspaces.focalserver.FocalServer.java

private void listenForRegistration() {
    Logger logger = Logger.getLogger(FocalServer.class.getName());
    try {/*from   w  ww .  j a  v a2 s.co m*/
        ObjectName delegateName = ObjectName.getInstance("JMImplementation:type=MBeanServerDelegate");
        mbeanServer.addNotificationListener(delegateName, this, null, null);
    } catch (InstanceNotFoundException e1) {
        logger.log(Level.WARNING, e1.toString(), e1);
    } catch (MalformedObjectNameException e1) {
        logger.log(Level.WARNING, e1.toString(), e1);
    }
}

From source file:org.fluentd.jvmwatcher.proxy.JvmClientProxy.java

/**
 * //from   w  w w  .jav a 2s . c  o  m
 * Invokes an operation of a named MBean.
 * 
 * @param name
 * @param operationName
 * @param params
 * @param signature
 * @return
 * @throws IOException
 * @throws MBeanException
 */
public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature)
        throws IOException, MBeanException {
    Object result = null;
    try {
        result = this.server_.invoke(name, operationName, params, signature);
    } catch (InstanceNotFoundException ex) {
        System.err.println(ex.toString());
    } catch (ReflectionException ex) {
        System.err.println(ex.toString());
    }

    return result;
}