Package edu.indiana.extreme.xbaya

Examples of edu.indiana.extreme.xbaya.XBayaRuntimeException


    }

  }

  private void throwException(Exception e) {
    throw new XBayaRuntimeException(e);
  }
View Full Code Here


    leadContext.setTimeStep("1");
    try {
      leadContext.setXRegistryUrl(new URI(
          XBayaConstants.DEFAULT_XREGISTRY_URL.toString() + "?wsdl"));
    } catch (URISyntaxException e) {
      throw new XBayaRuntimeException(e);
    }

    if (resourceMapping != null) {
      leadContext.setResourceMapping(resourceMapping);
    }
View Full Code Here

                    "UTF-8");
            URI epr = dscURI.resolve("/" + encodedPortType);
            return epr;
        } catch (UnsupportedEncodingException e) {
            // Should not happen
            throw new XBayaRuntimeException(e);
        }
    }
View Full Code Here

                    fromPort.copyType(this);
                } else if (kind == Kind.DATA_OUT) {
                    DataPort toPort = edge.getToPort();
                    toPort.copyType(this);
                } else {
                    new XBayaRuntimeException();
                }
            }
        }
    }
View Full Code Here

                    workflow.setGPELTemplateID(templateID);
                    workflowTemplate = this.client.retrieveTemplate(templateID);
                    break;
                default:
                    // This doesn't happen
                    throw new XBayaRuntimeException();
            }
        } catch (GcResourceNotFoundException e) {
            // The workflow was not found in the engine.
            throw new WorkflowEngineException(
                    ErrorMessages.GPEL_WORKFLOW_NOT_FOUND_ERROR, e);
View Full Code Here

                case TEMPLATE:
                    results = this.client.findTemplates(maxNum,
                            GcSearchRequest.SearchType.GPEL_TEMPLATE);
                    break;
                default:
                    throw new XBayaRuntimeException();
            }

            return results;
        } catch (RuntimeException e) {
            throw new WorkflowEngineException(e);
View Full Code Here

                            "Cannot connect ports with different types.");
                }

            } else {
                // Should not happen.
                throw new XBayaRuntimeException("edges.size(): " + edges.size());
            }
        }
    }
View Full Code Here

            X509Certificate certificate;
            try {
                certificate = CertUtil.readCertificate(bufferedReader);
            } catch (IOException e) {
                String message = "Failed to read certificates";
                throw new XBayaRuntimeException(message, e);
            } catch (GeneralSecurityException e) {
                String message = "Certificates are invalid";
                throw new XBayaRuntimeException(message, e);
            }
            if (certificate == null) {
                break;
            }
            certificates.add(certificate);
View Full Code Here

        if ("http".equalsIgnoreCase(scheme)) {
            return false;
        } else if ("https".equalsIgnoreCase(scheme)) {
            return true;
        } else {
            throw new XBayaRuntimeException("Protocol, " + scheme
                    + ", is not supported");
        }
    }
View Full Code Here

        XBayaConstants.DEFAULT_MYPROXY_PORT, userName, password,
        XBayaConstants.DEFAULT_MYPROXY_LIFTTIME);
    try {
      myProxyClient.load();
    } catch (MyProxyException e) {
      throw new XBayaRuntimeException("Failed loading the myproxy", e);
    }
    GSSCredential gssCredential = myProxyClient.getProxy();
    return gssCredential;
  }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.XBayaRuntimeException

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.