Package javax.management

Examples of javax.management.JMRuntimeException


        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


            items.put(KEY, key);
            items.put(VALUE, value);
            try {
                result = new CompositeDataSupport(HEADER_TYPE, items);
            } catch (OpenDataException e) {
                throw new JMRuntimeException("Failed to create CompositeData for header [" + key + ":" + value + "] - "
                        + e.getMessage());
            }
            return result;
        }
View Full Code Here

      if (!x1.getMessage().equals(x2.getMessage())) throw new RuntimeException();
   }

   public void compareJMRuntimeException(Object o1, Object o2)
   {
      JMRuntimeException x1 = (JMRuntimeException)o1;
      JMRuntimeException x2 = (JMRuntimeException)o2;
      if (!x1.getMessage().equals(x2.getMessage())) throw new RuntimeException();
   }
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

                    "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

            items.put(KEY, key);
            items.put(VALUE, value);
            try {
                result = new CompositeDataSupport(HEADER_TYPE, items);
            } catch (OpenDataException e) {
                throw new JMRuntimeException("Failed to create CompositeData for header [" + key + ":" + value + "] - "
                        + e.getMessage());
            }
            return result;
        }
View Full Code Here

            items.put(KEY, key);
            items.put(VALUE, value);
            try {
                result = new CompositeDataSupport(HEADER_TYPE, items);
            } catch (OpenDataException e) {
                throw new JMRuntimeException("Failed to create CompositeData for header [" + key + ":" + value + "] - "
                        + e.getMessage());
            }
            return result;
        }
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.