Package org.apache.airavata.client.api.exception

Examples of org.apache.airavata.client.api.exception.AiravataAPIInvocationException


    public ServiceDescription getServiceDescription() throws AiravataAPIInvocationException {
        ServiceDescription desc = getAiravataAPI().getApplicationManager().getServiceDescription(getService());
        if(desc!=null){
          return desc;
        }
        throw new AiravataAPIInvocationException(new Exception("Service Description not found in registry."));
    }
View Full Code Here


            documentCreator.createSlurmDocs();
            documentCreator.createSGEDocs();
            documentCreator.createEchoHostDocs();
        } catch (AiravataAPIInvocationException e) {
            logger.error("Unable to create airavata API", e.getMessage());
            throw new AiravataAPIInvocationException(e);
        } catch (ApplicationSettingsException e) {
            logger.error("Unable to create airavata API", e.getMessage());
            throw new ApplicationSettingsException(e.getMessage());
        }
    }
View Full Code Here

            String sysUser = ClientSettings.getSetting(DEFAULT_USER);
            String gateway = ClientSettings.getSetting(DEFAULT_GATEWAY);
            airavataAPI = AiravataAPIFactory.getAPI(gateway, sysUser);
        } catch (AiravataAPIInvocationException e) {
            logger.error("Unable to create airavata API", e.getMessage());
            throw new AiravataAPIInvocationException(e);
        } catch (ApplicationSettingsException e) {
            logger.error("Unable to create airavata API", e.getMessage());
            throw new ApplicationSettingsException(e.getMessage());
        }
        return airavataAPI;
View Full Code Here

        try {
          ServiceDescription disc = getRegistry().getApplicationManager().getServiceDescription(originalService);
          if(disc!=null){
            setServiceDescription(disc);
          }
          throw new AiravataAPIInvocationException(new Exception("Service Description not found in registry."));
      } catch (AiravataAPIInvocationException e) {
        e.printStackTrace();
      }
      }
    }
View Full Code Here

      apiObj.setRegitryURI(registryURL);
      apiObj.setGateway(gateway);
      apiObj.initialize();
      return apiObj;
    } catch (Exception e) {
      throw new AiravataAPIInvocationException(e);
    }
    }
View Full Code Here

      throws AiravataAPIInvocationException {
    try {
      return new WorkflowContextHeaderBuilder(null,
          null,null,null,null,null);
    } catch (Exception e) {
      throw new AiravataAPIInvocationException(e);
    }
  }
View Full Code Here

      // airavata
      // client is
      // logged in to the Airavata system
      setCurrentUser(getClientConfiguration().getJcrUsername());
    } catch (Exception e) {
      throw new AiravataAPIInvocationException(
          "Error while initializing the Airavata API", e);
    }
  }
View Full Code Here

                protocol = getRegitryURI().toURL().getProtocol();
            } catch (MalformedURLException e) {
                String msg = "Error retrieving protocol from registry URI - "
                        + getRegitryURI().toString();
                log.error(msg, e);
                throw new AiravataAPIInvocationException(msg, e);
            }

            StringBuilder registryServiceUrlString = new StringBuilder(protocol);
            registryServiceUrlString.append("://").append(hostName).append(":").append(port);
            registryServiceUrlString.append("/axis2/services/RegistryService?wsdl");
View Full Code Here

            if (!registryServiceStarted) {
                try {
                    if (iterations == WAIT_ITERATIONS) {
                        if (exception != null) {
                            throw new AiravataAPIInvocationException("Unable to connect to RegistryService. " +
                                    "RegistryService may not have started", exception);
                        } else {
                            throw new AiravataAPIInvocationException("Unable to connect to RegistryService. " +
                                    "RegistryService may not have started");
                        }

                    } else {
                        Thread.sleep(WAIT_TIME_PERIOD);
View Full Code Here

      if(desc!=null){
            return desc;
          }
//      throw new AiravataAPIInvocationException(new Exception("Service Description not found in registry."));
    } catch (Exception e) {
      throw new AiravataAPIInvocationException(e);
    }
        return null;
  }
View Full Code Here

TOP

Related Classes of org.apache.airavata.client.api.exception.AiravataAPIInvocationException

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.