Package org.apache.airavata.common.exception

Examples of org.apache.airavata.common.exception.UtilsException


        try {
            XmlElement wsdlElement = XMLUtil.stringToXmlElement(wsdlString);
            WsdlDefinitions definitions = new WsdlDefinitions(wsdlElement);
            return definitions;
        } catch (RuntimeException e) {
            throw new UtilsException(e);
        }
    }
View Full Code Here


     */
    public static WsdlPortType getFirstPortType(WsdlDefinitions definitions) throws UtilsException {
        for (WsdlPortType portType : definitions.portTypes()) {
            return portType;
        }
        throw new UtilsException("No portType is defined in WSDL");
    }
View Full Code Here

    public static WsdlPortTypeOperation getFirstOperation(WsdlDefinitions definitions) throws UtilsException {
        for (WsdlPortTypeOperation operation : getFirstPortType(definitions).operations()) {
            return operation;
        }
        throw new UtilsException("No portType is defined in WSDL");
    }
View Full Code Here

        for (WsdlPortType portType : definitions.portTypes()) {
            String portTypeName = portType.getName();
            QName portTypeQName = new QName(targetNamespace, portTypeName);
            return portTypeQName;
        }
        throw new UtilsException("No portType is defined.");
    }
View Full Code Here

                continue;
            }

            return operationName;
        }
        throw new UtilsException("No operation is defined");
    }
View Full Code Here

                        if (isTypeDefinedInSchema(paramType, importedSchema)) {
                            // still return the parent schema
                            return schema;
                        }
                    } catch (MalformedURLException e) {
                        throw new UtilsException(e);
                    } catch (XmlBuilderException e) {
                        throw new UtilsException(e);
                    } catch (IOException e) {
                        throw new UtilsException(e);
                    }
                }
            }
        }
View Full Code Here

                        if (returnType != null) {
                            return importEle;
                        }

                    } catch (MalformedURLException e) {
                        throw new UtilsException(e);
                    } catch (XmlBuilderException e) {
                        throw new UtilsException(e);
                    } catch (IOException e) {
                        throw new UtilsException(e);
                    }
                }
            }
        }
        return null;
View Full Code Here

                        if (returnType != null) {
                            return returnType;
                        }

                    } catch (MalformedURLException e) {
                        throw new UtilsException(e);
                    } catch (XmlBuilderException e) {
                        throw new UtilsException(e);
                    } catch (IOException e) {
                        throw new UtilsException(e);
                    }
                }
            }
        }
        return null;
View Full Code Here

                String browser = null;
                for (int count = 0; count < browsers.length && browser == null; count++)
                    if (Runtime.getRuntime().exec(new String[] { "which", browsers[count] }).waitFor() == 0)
                        browser = browsers[count];
                if (browser == null) {
                    throw new UtilsException("Could not find web browser.");
                } else {
                    Runtime.getRuntime().exec(new String[] { browser, url });
                }
            }
        } catch (ClassNotFoundException e) {
            throw new UtilsException(ERROR_MESSAGE, e);
        } catch (NoSuchMethodException e) {
            throw new UtilsException(ERROR_MESSAGE, e);
        } catch (IllegalAccessException e) {
            throw new UtilsException(ERROR_MESSAGE, e);
        } catch (InvocationTargetException e) {
            throw new UtilsException(ERROR_MESSAGE, e);
        } catch (IOException e) {
            throw new UtilsException(ERROR_MESSAGE, e);
        } catch (InterruptedException e) {
            throw new UtilsException(ERROR_MESSAGE, e);
        } catch (RuntimeException e) {
            throw new UtilsException(ERROR_MESSAGE, e);
        }
    }
View Full Code Here

            XmlElement clonedElement = element.clone();
            clonedElement.setParent(null);
            return clonedElement;
        } catch (CloneNotSupportedException e) {
            // This should not happen because we don't put any special Objects.
            throw new UtilsException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.common.exception.UtilsException

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.