Package org.globus.wsrf

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


            // 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

            // 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

            // 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

TOP

Related Classes of org.globus.wsrf.NoSuchResourceException

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.