Examples of NoSuchResourceException


Examples of org.apache.ambari.view.NoSuchResourceException

      throws SystemException, NoSuchResourceException,
      UnsupportedPropertyException {
      SliderAppType sliderAppType = sliderController.getSliderAppType(appTypeId,
          properties);
      if (sliderAppType == null)
        throw new NoSuchResourceException(appTypeId);
      return sliderAppType;
  }
View Full Code Here

Examples of org.apache.ambari.view.NoSuchResourceException

      UnsupportedPropertyException {
    try {
      SliderApp sliderApp = sliderController.getSliderApp(resourceId,
          properties);
      if (sliderApp == null)
        throw new NoSuchResourceException(resourceId);
      return sliderApp;
    } catch (YarnException e) {
      logger.warn("Unable to determine Slider app with id " + resourceId, e);
      throw new SystemException(e.getMessage(), e);
    } catch (IOException e) {
View Full Code Here

Examples of org.apache.ws.resource.NoSuchResourceException

            resource = createNewInstanceAndLoad( key );
            addResource( key, resource );
            if ( ResourceSweeper.isExpired( resource ) )
            {
               remove( key );
               throw new NoSuchResourceException(  );
            }
         }
         else
         {
            throw new NoSuchResourceException(  );
         }
      }

      return resource;
   }
View Full Code Here

Examples of org.globus.wsrf.NoSuchResourceException

        final Caller caller = this.baseTranslate.getCaller(callerDN);

        try {
            this.manager.trash(this.id, this.type, caller);
        } catch (DoesNotExistException e) {
            throw new NoSuchResourceException(e.getMessage(), e);
        } catch (ManageException e) {
            if (logger.isDebugEnabled()) {
                logger.error(e.getMessage(), e);
            } else {
                logger.error(e.getMessage());
View Full Code Here

Examples of org.globus.wsrf.NoSuchResourceException

            // There can be a race between this exists() check and the next
            // access of the manager+id (which is typically coming in a few
            // nanoseconds).  That is OK, the layer below is authoritative.
            if (!this.manager.exists(groupid, Manager.GROUP)) {
                throw new NoSuchResourceException(
                        "unknown group: '" + groupid + "'");
            }

            final Element el = this.cache.get(groupid);
            final GroupResource resource;
            if (el == null) {
                resource = new GroupResource(groupid,
                                             this.manager,
                                             this.secDescPath,
                                             this.translate);
                resource.load(rkey);
                this.cache.put(new Element(groupid, resource));
            } else {
                resource = (GroupResource) el.getObjectValue();
            }

            return resource;
           
        } catch (ConfigException e) {
            throw new ResourceException(e.getMessage(), e);
        } catch (ManageException e) {
            throw new ResourceException(e.getMessage(), e);
        } catch (DoesNotExistException e) {
            throw new NoSuchResourceException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.globus.wsrf.NoSuchResourceException

            // There can be a race between this exists() check and the next
            // access of the manager+id (which is typically coming in a few
            // nanoseconds).  That is OK, the layer below is authoritative.
           
            if (!this.manager.exists(instanceid, Manager.INSTANCE)) {
                throw new NoSuchResourceException(
                        "unknown workspace: '" + instanceid + "'");
            }

            final Element el = this.cache.get(instanceid);
            final InstanceResource resource;
            if (el == null) {
                resource = new InstanceResource(instanceid,
                                                this.manager,
                                                this.secDescPath,
                                                this.translate,
                                                this,
                                                this.timerManager);
                resource.load(rkey);
                this.manager.registerDestructionListener(instanceid,
                                                         Manager.INSTANCE,
                                                         resource);
                this.cache.put(new Element(instanceid, resource));
            } else {
                resource = (InstanceResource) el.getObjectValue();
            }

            return resource;
           
        } catch (ConfigException e) {
            logger.error(e.getMessage(), e);
            throw new ResourceException(e.getMessage(), e);
        } catch (ManageException e) {
            logger.error(e.getMessage(), e);
            throw new ResourceException(e.getMessage(), e);
        } catch (DoesNotExistException e) {
            throw new NoSuchResourceException(e.getMessage(), e);
        } catch (NoSuchResourceException e) {
            throw e;
        } catch (Throwable t) {
            logger.error(t.getMessage(), t);
            throw new ResourceException(t.getMessage(), t);
View Full Code Here

Examples of org.globus.wsrf.NoSuchResourceException

            // There can be a race between this exists() check and the next
            // access of the manager+id (which is typically coming in a few
            // nanoseconds).  That is OK, the layer below is authoritative.
            if (!this.manager.exists(coschedid, Manager.COSCHEDULED)) {
                throw new NoSuchResourceException(
                        "unknown ensemble: '" + coschedid + "'");
            }

            final Element el = this.cache.get(coschedid);
            final EnsembleResource resource;
            if (el == null) {
                resource = new EnsembleResource(coschedid,
                                                this.manager,
                                                this.secDescPath,
                                                this.translate);
                resource.load(rkey);
                this.cache.put(new Element(coschedid, resource));
            } else {
                resource = (EnsembleResource) el.getObjectValue();
            }

            return resource;

        } catch (ConfigException e) {
            throw new ResourceException(e.getMessage(), e);
        } catch (ManageException e) {
            throw new ResourceException(e.getMessage(), e);
        } catch (DoesNotExistException e) {
            throw new NoSuchResourceException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of se.jbee.inject.DIRuntimeException.NoSuchResourceException

      }
      return null;
    }

    private <T> NoSuchResourceException noInjectronFor( Dependency<T> dependency ) {
      return new NoSuchResourceException( dependency, typeInjectrons( dependency.getType() ) );
    }
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.