Package org.apache.airavata.common.registry.api.exception

Examples of org.apache.airavata.common.registry.api.exception.RegistryException


      URL url = new URL(urlString);
      URLConnection conn = url.openConnection();
      conn.connect();
    } catch (MalformedURLException e) {
      // the URL is not in a valid form
      throw new RegistryException("Given Axis2 Service URL : "
          + urlString + " is Invalid", e);
    } catch (IOException e) {
      // the connection couldn't be established
      throw new RegistryException("Given Axis2 Service URL : "
          + urlString + " is Invalid", e);
    }
    return originalURL;
  }
View Full Code Here


      URL url = new URL(urlString);
      URLConnection conn = url.openConnection();
      conn.connect();
    } catch (MalformedURLException e) {
      // the URL is not in a valid form
      throw new RegistryException("Given URL: " + urlString
          + " is Invalid", e);
    } catch (IOException e) {
      // the connection couldn't be established
      throw new RegistryException("Given URL: " + urlString
          + " is Invalid", e);
    }
    return urlString;
  }
View Full Code Here

    String nodeName = EVENTING_INSTANCE_DATA;
    try {
      deleteServiceURL(gfacURL, nodeName);
        } catch (Exception e) {
            System.out.println(e);
            throw new RegistryException("Error while deleting Eventing Service URL from registry!!!",e);
    }
        return true;
  }
View Full Code Here

    public String saveDeploymentDescription(String serviceId, String hostId, String app)throws RegistryException{
        try {
            return registry.saveDeploymentDescription(serviceId, hostId, ApplicationDeploymentDescription.fromXML(app));
        } catch (XmlException e) {
            throw new RegistryException("Error saving ApplicationDescription Creation/Saving" , e)//To change body of catch statement use File | Settings | File Templates.
        }
    }
View Full Code Here

            eachLine.append(name.getNamespaceURI());
            Node workflow = workflows.get(name);
            try {
                xwf = XMLUtil.stringToXmlElement(workflow.getProperty("workflow").getString());
            } catch (RepositoryException e) {
                throw new RegistryException("Error while parsing workflow Content",e)//To change body of catch statement use File | Settings | File Templates.
            }
            eachLine.append(XMLUtil.xmlElementToString(xwf));
            list.add(eachLine.toString());
        }
        return list;
View Full Code Here

        Node workflow = registry.getWorkflow(templateID, userName);
        XmlElement xwf = null;
        try {
            xwf = XMLUtil.stringToXmlElement(workflow.getProperty("workflow").getString());
        } catch (RepositoryException e) {
            throw new RegistryException("Error while parsing workflow Content",e)//To change body of catch statement use File | Settings | File Templates.
        }
        return XMLUtil.xmlElementToString(xwf);
    }
View Full Code Here

            result = node.getIdentifier();
//            triggerObservers(this);
        } catch (Exception e) {
            System.out.println(e);
            throw new RegistryException("Error while saving host description!!!", e);
        } finally {
            closeSession(session);
        }
        return result;
    }
View Full Code Here

            result = node.getIdentifier();
//            triggerObservers(this);
        } catch (Exception e) {
            System.out.println(e);
            throw new RegistryException("Error while saving service description!!!", e);
        } finally {
            closeSession(session);
        }
        return result;
    }
View Full Code Here

            session.save();
            result = appName.getIdentifier();
//            triggerObservers(this);
        } catch (Exception e) {
            System.out.println(e);
            throw new RegistryException("Error while saving deployment description!!!", e);
        } finally {
            closeSession(session);
        }
        return result;
    }
View Full Code Here

            session.save();
            return true;
        } catch (Exception e) {
            System.out.println(e);
            throw new RegistryException("Error while saving service on host!!!", e);
        } finally {
            closeSession(session);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.common.registry.api.exception.RegistryException

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.