Package javax.management

Examples of javax.management.NotCompliantMBeanException


    }

    public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params,
            String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanException,
            NotCompliantMBeanException, InstanceNotFoundException {
        throw new NotCompliantMBeanException("You can't create mbeans under the reserved domain '" + Constants.DOMAIN + "'");
    }
View Full Code Here


        throw new NotCompliantMBeanException("You can't create mbeans under the reserved domain '" + Constants.DOMAIN + "'");
    }

    public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName) throws ReflectionException,
            InstanceAlreadyExistsException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException {
        throw new NotCompliantMBeanException("You can't create mbeans under the reserved domain '" + Constants.DOMAIN + "'");
    }
View Full Code Here

        throw new NotCompliantMBeanException("You can't create mbeans under the reserved domain '" + Constants.DOMAIN + "'");
    }

    public ObjectInstance createMBean(String className, ObjectName name) throws ReflectionException,
            InstanceAlreadyExistsException, MBeanException, NotCompliantMBeanException {
        throw new NotCompliantMBeanException("You can't create mbeans under the reserved domain '" + Constants.DOMAIN + "'");
    }
View Full Code Here

        Calculator calculatorMBean = new CalculatorImpl();
        ObjectName objectName = new ObjectName("hivemind:module=test");

        // Training
        server.registerMBean(calculatorMBean, objectName);
        serverControl.setThrowable(new NotCompliantMBeanException("Not compliant"));
        replayControls();

        // Registration must fail since the bean is not mbean compliant and a management
        // interface is not provided
        MBeanRegistry mbeanRegistry = new MBeanRegistryImpl(errorHandler, log, server,
View Full Code Here

        Calculator calculatorMBean = new CalculatorImpl();
        ObjectName objectName = new ObjectName("hivemind:module=test");

        // Training
        server.registerMBean(calculatorMBean, objectName);
        serverControl.setThrowable(new NotCompliantMBeanException("Not compliant"));

        server.registerMBean(null, objectName);
        // Matcher must match both method calls, it's not possible to
        // define multiple matchers
        serverControl.setMatcher(new ArgumentsMatcher()
View Full Code Here

      else if (StandardMetaData.findStandardInterface(mbeanClass) != null)
      {
         return new MBeanCapability(mbeanClass, new StandardMetaData(mbeanClass).build());
      }

      throw new NotCompliantMBeanException("Class does not expose a management interface: " + mbeanClass.getName());
   }
View Full Code Here

         return (MBeanInfo) info;
      }
      catch (JDOMException e)
      {
         e.printStackTrace();
         throw new NotCompliantMBeanException("Error parsing the XML file: " + ((e.getCause() == null) ? e.toString() : e.getCause().toString()));
      }
      catch (IOException e)
      {
         //e.printStackTrace();
         //jdk 1.4 throw new NotCompliantMBeanException("Error parsing the XML file: " + ((e.getCause() == null) ? e.toString() : e.getCause().toString()));
         throw new NotCompliantMBeanException("Error parsing the XML file: " +  e.toString());
      }
   }
View Full Code Here

         if (valid[i].equalsIgnoreCase(value))
         {
            return;
         } // end of if ()
      } // end of for ()
      throw new NotCompliantMBeanException("Unknown descriptor value: " + value);     
   }
View Full Code Here

         {
            typeClass = Class.forName(typeName);
         }
         catch (ClassNotFoundException e)
         {
            throw new NotCompliantMBeanException
               ("Class not found for type: " + typeName);
         }
      }
                    
      PropertyEditor editor = PropertyEditorManager.findEditor(typeClass);
View Full Code Here

            // defaults to the latest JBossMX XMBean schema
            return new JBossXMBean12(mmbClassName, resourceClassName, url, properties).build();
         }
         else
         {
            throw new NotCompliantMBeanException("Unknown xmbean type " + versionString);           
         } // end of else
        
      }
      catch (JDOMException e)
      {
         System.out.println("JDOM Exception: " + e);
         e.printStackTrace();
         throw new NotCompliantMBeanException("Error parsing the XML file, from XMLMetaData: " + ((e.getCause() == null) ? e.toString() : e.getCause().toString()));
      }
      catch (IOException e)
      {
         // FIXME: log the stack trace?
         //e.printStackTrace();
         //jdk1.4 throw new NotCompliantMBeanException("Error parsing the XML file: " + ((e.getCause() == null) ? e.toString() : e.getCause().toString()));
         throw new NotCompliantMBeanException("Error parsing the XML file: " +  e.toString());
      }
   }
View Full Code Here

TOP

Related Classes of javax.management.NotCompliantMBeanException

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.