Package org.apache.airavata.workflow.model.exceptions

Examples of org.apache.airavata.workflow.model.exceptions.WorkflowRuntimeException


                    init();
                }
            });
        } catch (InterruptedException e) {
            // Shouldn't happen.
            throw new WorkflowRuntimeException(e);
        } catch (InvocationTargetException e) {
            // Shouldn't happen.
          //It happened
          /* exception occurs when xbaya is opened twice from the jvm
           * org.apache.airavata.xbaya.XBayaRuntimeException: java.lang.reflect.InvocationTargetException
        at org.apache.airavata.xbaya.gui.XBayaGUI.<init>(XBayaGUI.java:148)
        at org.apache.airavata.xbaya.XBayaEngine.<init>(XBayaEngine.java:106)
        at org.apache.airavata.xbaya.XBaya.<init>(XBaya.java:51)
        at org.ogce.paramchem.XBayaLauncher.run(XBayaLauncher.java:44)
        at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.reflect.InvocationTargetException
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1042)
        at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1326)
        at org.apache.airavata.xbaya.gui.XBayaGUI.<init>(XBayaGUI.java:138)
        ... 4 more
           */
            throw new WorkflowRuntimeException(e);
        }
       
        // Following suppsed to jump in the middle to save unsaved workflows when exiting xbaya
        // but its not working because the UI is already disposed it seems :(
//        Runtime.getRuntime().addShutdownHook(new Thread(){
View Full Code Here


                    inputNode.setDefaultValue(input.getValue());
                    break;
                }
            }
            if (inputNode.getDefaultValue() == null) {
                throw new WorkflowRuntimeException("Could not find a input value for component with name :" + inputNode.getName());
            }

        }
        log.debug("Input all set");

        XBayaConfiguration conf = null;
        try {
            conf = getConfiguration(configurations);
            conf.setTopic(topic);
            conf.setRunWithCrossProduct(true);
        } catch (URISyntaxException e1) {
            throw new WorkflowRuntimeException(e1);
        }
        WorkflowInterpretorEventListener listener = null;
        WorkflowInterpreter interpreter = null;
        AiravataAPI airavataAPI = AiravataAPIFactory.getAPI(gatewayId, username);
    WorkflowInterpreterConfiguration workflowInterpreterConfiguration = new WorkflowInterpreterConfiguration(workflow,topic,conf.getMessageBoxURL(), conf.getBrokerURL(), airavataAPI, conf, null, null);
View Full Code Here

    private void executeWorkflow(WorkflowInterpreter interpreter, WorkflowInterpretorEventListener listener,String experimentId) {
        try {
            interpreter.scheduleDynamically();
            log.debug("Interpreter invoked...");
        } catch (Exception e) {
            throw new WorkflowRuntimeException(e);
        } finally {
            /*
             * stop listener no matter what happens
             */
//            try {
View Full Code Here

                    selectionPathHolder[0] = ComponentSelector.this.tree.getSelectionPath();
                }
            });
        } catch (InterruptedException e) {
            // Should not happen.
            throw new WorkflowRuntimeException(e);
        } catch (InvocationTargetException e) {
            // Should not happen.
            throw new WorkflowRuntimeException(e);
        }

        TreePath selectionPath = selectionPathHolder[0];
        if (selectionPath == null) {
            // TODO this case should be handled in the menu before comming here.
View Full Code Here

                        getRegistries(registries);
                    }
                });
            } catch (InterruptedException e) {
                // Should not happen.
                throw new WorkflowRuntimeException(e);
            } catch (InvocationTargetException e) {
                // Should not happen.
                throw new WorkflowRuntimeException(e);
            }
        }

        final List<ComponentTreeNode> newSubTrees = new ArrayList<ComponentTreeNode>();
        for (ComponentRegistry registry : registries) {
View Full Code Here

                        } catch (InterruptedException e) {
                            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
                        }
                        count++;
                        if(count > 20){
                            throw new WorkflowRuntimeException("Error stopping previous workflow Execution");
                        }
                    }
                   
                }
                this.window = new DynamicWorkflowRunnerWindow(engine);
View Full Code Here

            }
            inputs = workflow.getInputs();
            return inputs;
        } catch (GraphException e) {
            throw new WorkflowRuntimeException(e);
        } catch (ComponentException e) {
            throw new WorkflowRuntimeException(e);
        }

    }
View Full Code Here

                            break;
                        }
                    }

                    if (null == inputPartName) {
                        throw new WorkflowRuntimeException("Could not find a partname in message :" + inputMessage
                                + " for binding :" + wsdlBindingOperation);
                    }

                    body.setAttributeValue(PARTS, inputPartName);
View Full Code Here

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

    public URI getUniqueWorkflowName() {

        try {
            return new URI(WorkflowConstants.LEAD_NS + "/" + this.getName());
        } catch (URISyntaxException e) {
            throw new WorkflowRuntimeException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.workflow.model.exceptions.WorkflowRuntimeException

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.