Package org.apache.airavata.xbaya

Examples of org.apache.airavata.xbaya.XBayaRuntimeException


                    selectionPathHolder[0] = ComponentSelector.this.tree.getSelectionPath();
                }
            });
        } catch (InterruptedException e) {
            // Should not happen.
            throw new XBayaRuntimeException(e);
        } catch (InvocationTargetException e) {
            // Should not happen.
            throw new XBayaRuntimeException(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 XBayaRuntimeException(e);
            } catch (InvocationTargetException e) {
                // Should not happen.
                throw new XBayaRuntimeException(e);
            }
        }

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

            try {
                GraphUtil.propagateTypes(getGraph());
            } catch (GraphException e) {
                // this should not happen.
                throw new XBayaRuntimeException(e);
            }
        }
    }
View Full Code Here

        public String getID() {
             if (this.id == null) {
                 this.id = this.name;
                 // If its still null
                 if (null == this.id) {
                    throw new XBayaRuntimeException("The workflow ID is null");
                 }
             }
            return this.id;
        }
View Full Code Here

                // right away.
                removeEdge(fromEdge);
                return;
            }
        }
        throw new XBayaRuntimeException("No edge exist between two ports.");
    }
View Full Code Here

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

        }
        System.err.println("Input all set");

        XBayaConfiguration conf = null;
        try {
            conf = getConfiguration(configurations);
            conf.setTopic(topic);
            conf.setRunWithCrossProduct(true);
        } catch (URISyntaxException e1) {
            throw new XBayaRuntimeException(e1);
        }
        WorkflowInterpretorEventListener listener = null;
        WorkflowInterpreter interpreter = null;
        if (Boolean.parseBoolean(configurations.get(WITH_LISTENER))) {
            listener = new WorkflowInterpretorEventListener(workflow, conf);
View Full Code Here

    private void executeWorkflow(WorkflowInterpreter interpreter, WorkflowInterpretorEventListener listener,String experimentId) {
        try {
            interpreter.scheduleDynamically();
            System.err.println("Called the interpreter");
        } catch (XBayaException e) {
            throw new XBayaRuntimeException(e);
        } finally {
            /*
             * stop listener no matter what happens
             */
            try {
View Full Code Here

            src = classes;

        // create temp directory
        File tempdir = null;
        if (src == null || classes == null) {
            throw new XBayaRuntimeException("Code gen src directory or classes directory is null");
        }

        File jarfile = null;
        if (outputfilename == null && classes == null && !nojavac)
            outputfilename = "xmltypes.jar";
View Full Code Here

                    throw new GraphException("Cannot connect ports with different types.");
                }

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

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

TOP

Related Classes of org.apache.airavata.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.