Examples of InstanceNotFoundException


Examples of es.udc.tfg.journals.model.exceptions.InstanceNotFoundException

        keyword = keywordDao.findByName(key);
        // If the keyword already exists is modified
        KeywordWeight kw = keywordWeightsMap
            .get(keyword.getKeywordId());
        if (kw == null) {
          throw new InstanceNotFoundException("", null);
        }

        if (kw.getUsers().contains(user)) {
          // TODO: Sumar siempre? (si aparece en domain y en subdomain
          // serian 50.000
View Full Code Here

Examples of javax.management.InstanceNotFoundException

           MBeanException,
           ReflectionException,
           RemoteException
   {
      Object lReturn = null;
      InstanceNotFoundException lException = null;
      log.info("invoke(), name: " + pName + ", operation: " + pOperationName +
              ", params: " + pParams + ", signature: " + pSignature);
      try
      {
         lReturn = server.invoke(pName, pOperationName, pParams, pSignature);
View Full Code Here

Examples of javax.management.InstanceNotFoundException

           InvalidAttributeValueException,
           MBeanException,
           ReflectionException,
           RemoteException
   {
      InstanceNotFoundException lException = null;
      try
      {
         server.setAttribute(pName, pAttribute);
      }
      catch (InstanceNotFoundException infe)
View Full Code Here

Examples of javax.management.InstanceNotFoundException

           InstanceNotFoundException,
           ReflectionException,
           RemoteException
   {
      Object lReturn = null;
      InstanceNotFoundException lException = null;
      try
      {
         lReturn = server.setAttributes(pName, pAttributes);
      }
      catch (InstanceNotFoundException infe)
View Full Code Here

Examples of javax.management.InstanceNotFoundException

   {
      ScheduleInstance lInstance = (ScheduleInstance) mSchedules.get(new Integer(pIdentification));
      try
      {
     if (lInstance == null)
      throw new InstanceNotFoundException();
         lInstance.stop();
      }
      catch (JMException e)
      {
         log.error("Could not stop " + lInstance, e);
View Full Code Here

Examples of javax.management.InstanceNotFoundException

         {
            return (ClassLoader)metadata.mbean;
         }
         else
         {
            throw new InstanceNotFoundException(name.getCanonicalName());
         }
      }
   }
View Full Code Here

Examples of javax.management.InstanceNotFoundException

            metadata = repository.get(objectName);
         }
      }
      if (metadata == null)
      {
         throw new InstanceNotFoundException("MBeanServer cannot find MBean with ObjectName " + objectName);
      }
      return metadata;
   }
View Full Code Here

Examples of javax.management.InstanceNotFoundException

                              "direct.used");
    }

    @Test
    public void ignoresGaugesForObjectsWhichCannotBeFound() throws Exception {
        when(mBeanServer.getMBeanInfo(mapped)).thenThrow(new InstanceNotFoundException());

        assertThat(buffers.getMetrics().keySet())
                .containsOnly("direct.count",
                              "direct.capacity",
                              "direct.used");
View Full Code Here

Examples of javax.management.InstanceNotFoundException

    }

    public AbstractName toAbstractName(ObjectName objectName) throws InstanceNotFoundException{
        AbstractName abstractName = getAbstractNameFor(objectName);
        if (abstractName == null) {
            throw new InstanceNotFoundException(objectName.getCanonicalName());
        }
        return abstractName;
    }
View Full Code Here

Examples of javax.management.InstanceNotFoundException

        try {
            return kernel.getAttribute(abstractName, attribute);
        } catch (NoSuchAttributeException e) {
            throw new AttributeNotFoundException(attribute);
        } catch (GBeanNotFoundException e) {
            throw new InstanceNotFoundException(name.getCanonicalName());
        } catch (InternalKernelException e) {
            throw new MBeanException(unwrapInternalKernelException(e));
        } catch (Exception e) {
            throw new MBeanException(e);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.