Examples of InstanceNotFoundException


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

      {
         if (!(loaderName instanceof ObjectName)) throw new IllegalArgumentException("Environment property " + JMXConnectorServerFactory.DEFAULT_CLASS_LOADER_NAME + " must be an ObjectName");
         ObjectName name = (ObjectName)loaderName;
         try
         {
            if (!server.isInstanceOf(name, ClassLoader.class.getName())) throw new InstanceNotFoundException();
            return server.getClassLoader((ObjectName)loader);
         }
         catch (InstanceNotFoundException x)
         {
            throw new IllegalArgumentException("ObjectName " + name + " defined by environment property " + JMXConnectorServerFactory.DEFAULT_CLASS_LOADER_NAME + " must name a ClassLoader");
View Full Code Here

Examples of org.apache.ode.bpel.pmapi.InstanceNotFoundException

        dbexec(new BpelDatabase.Callable<Object>() {
            public Object run(BpelDAOConnection conn) throws Exception {
                ProcessInstanceDAO instance = conn.getInstance(iid);

                if (instance == null)
                    throw new InstanceNotFoundException("" + iid);
                // TODO: deal with "ERROR" state information.
                fillInstanceInfo(ii, instance);
                return null;
            }
        });
View Full Code Here

Examples of org.libreplan.business.common.exceptions.InstanceNotFoundException

    }

    public Label getLabelByCode(String code) throws InstanceNotFoundException {

        if (StringUtils.isBlank(code)) {
            throw new InstanceNotFoundException(code, Label.class.getName());
        }

        for (Label l : labels) {
            if (l.getCode().equalsIgnoreCase(StringUtils.trim(code))) {
                return l;
            }
        }

        throw new InstanceNotFoundException(code, Label.class.getName());

    }
View Full Code Here

Examples of org.snippr.business.exceptions.InstanceNotFoundException

    @SuppressWarnings("unchecked")
    public E find(PK id) throws InstanceNotFoundException {
        E entity = (E) getSession().get(entityClass, id);
        if (entity == null) {
            throw new InstanceNotFoundException(id, entityClass.getName());
        }
        return entity;
    }
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.