Package javax.management

Examples of javax.management.JMRuntimeException


      }

      if (defaultDomain == null) defaultDomain = "";
      this.defaultDomain = defaultDomain;

      if (delegate==null) throw new JMRuntimeException("Delegate can't be null");
      this.delegate = delegate;

      if (logger.isEnabledFor(Logger.TRACE)) logger.trace("MBeanServer default domain is: '" + this.defaultDomain + "'");

      mbeanRepository = createMBeanRepository();
View Full Code Here


      {
         throw new RuntimeOperationsException(new IllegalArgumentException("ObjectName cannot be null or a pattern ObjectName"));
      }
      if (objectName.getDomain().equals("JMImplementation") && !privileged)
      {
    throw new JMRuntimeException("Domain 'JMImplementation' is reserved for the JMX Agent");
      }

      MBeanRepository repository = getMBeanRepository();
      synchronized (repository)
      {
View Full Code Here

      objectName = secureObjectName(objectName);

      MBeanMetaData metadata = findMBeanMetaData(objectName);

      MBeanInfo info = getHeadInterceptor().getMBeanInfo(metadata);
      if (info == null) throw new JMRuntimeException("MBeanInfo returned for MBean " + objectName + " is null");
      return info;
   }
View Full Code Here

      }

      if (defaultDomain == null) defaultDomain = "DefaultDomain";
      this.defaultDomain = defaultDomain;

      if (delegate == null) throw new JMRuntimeException("Delegate can't be null");
      this.delegate = delegate;

      if (logger.isEnabledFor(Logger.TRACE)) logger.trace("MBeanServer default domain is: '" + this.defaultDomain + "'");

      mbeanRepository = createMBeanRepository();
View Full Code Here

      {
         throw new RuntimeOperationsException(new IllegalArgumentException("ObjectName cannot be null or a pattern ObjectName"));
      }
      if (objectName.getDomain().equals("JMImplementation") && !privileged)
      {
         throw new JMRuntimeException("Domain 'JMImplementation' is reserved for the JMX Agent");
      }

      MBeanRepository repository = getMBeanRepository();
      synchronized (repository)
      {
View Full Code Here

      objectName = secureObjectName(objectName);

      MBeanMetaData metadata = findMBeanMetaData(objectName);

      MBeanInfo info = getHeadInterceptor().getMBeanInfo(metadata);
      if (info == null) throw new JMRuntimeException("MBeanInfo returned for MBean " + objectName + " is null");
      return info;
   }
View Full Code Here

      return new JMException("JMException");
   }

   public JMRuntimeException createJMRuntimeException()
   {
      return new JMRuntimeException("JMRuntimeException");
   }
View Full Code Here

                    "getMBeanInfo threw RuntimeException");
        } catch (Error e) {
            throw new RuntimeErrorException(e, "getMBeanInfo threw Error");
        }
        if (mbi == null)
            throw new JMRuntimeException("MBean " + name +
                                         "has no MBeanInfo");

        checkMBeanPermission(mbi.getClassName(), null, name, "getMBeanInfo");

        return mbi;
View Full Code Here

        throw e;
      } catch (JMException e) {
        _log.error("Could not create management beans locally. The error returned was: " + e.getMessage(), e);
        // Helpfully, there is no JMRuntimeException(String, Throwable) constructor that is visible. So we won't call
        // it for the moment. We could do it via introspection, but this is nasty and a poor way of overcoming a JMX limitation
        JMRuntimeException ex = new JMRuntimeException("Error creating management beans locally");
        ex.setStackTrace(e.getStackTrace());
        throw ex;
      }
      }
    }
View Full Code Here

        throw e;
      } catch (JMException e) {
        _log.error("Could not create management beans locally. The error returned was: " + e.getMessage(), e);
        // Helpfully, there is no JMRuntimeException(String, Throwable) constructor that is visible. So we won't call
        // it for the moment. We could do it via introspection, but this is nasty and a poor way of overcoming a JMX limitation
        JMRuntimeException ex = new JMRuntimeException("Error creating management beans locally");
        ex.setStackTrace(e.getStackTrace());
        throw ex;
      }
      }
    }
View Full Code Here

TOP

Related Classes of javax.management.JMRuntimeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.