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


     * Checks if the client is connected to the BPEL engine.
     *
     * @return true if the client is connected to the BPEL engine; false otherwise.
     */
    protected synchronized boolean isConnected() {
        throw new WorkflowRuntimeException("Critical Error: Called a unsupported API");
    }
View Full Code Here

     */
    public static Node findEndForEachFor(ForEachNode node) {

        Collection<Node> toNodes = node.getOutputPort(0).getToNodes();
        if (toNodes.size() != 1) {
            throw new WorkflowRuntimeException("ForEach output does not contain single out-edge");
        }
        Node middleNode = toNodes.iterator().next();
        List<DataPort> outputPorts = middleNode.getOutputPorts();
        for (DataPort dataPort : outputPorts) {
            if (dataPort.getToNodes().size() == 1) {
                Node possibleEndForEachNode = dataPort.getToNodes().get(0);
                if (possibleEndForEachNode instanceof EndForEachNode) {
                    return possibleEndForEachNode;
                }
            }
        }
        throw new WorkflowRuntimeException("EndForEachNode not found");
    }
View Full Code Here

                    } catch (WorkflowException e) {
                        logger.error(e.getMessage(), e);
                        // An appropriate message has been set in the exception.
                        GenericInvoker.this.notifier.invocationFailed(e.getMessage(), e);
                        GenericInvoker.this.failerSent = true;
                        throw new WorkflowRuntimeException(e);
                    } catch (RuntimeException e) {
                        logger.error(e.getMessage(), e);
                        String message = "Error in invoking a service: " + GenericInvoker.this.serviceInformation;
                        GenericInvoker.this.notifier.invocationFailed(message, e);
                        GenericInvoker.this.failerSent = true;
View Full Code Here

            public void actionPerformed(ActionEvent e) {
                try {
                    ExperimentMenu.this.registryAccesser.deleteOGCEWorkflow(ExperimentMenu.this.engine.getGUI().getWorkflow()
                            .getQname());
                } catch (RegistryException e1) {
                    throw new WorkflowRuntimeException(e1);
                }
            }
        });
    }
View Full Code Here

                    } catch (WorkflowException e) {
                        logger.error(e.getMessage(), e);
                        // An appropriate message has been set in the exception.
                        EmbeddedGFacInvoker.this.notifier.invocationFailed(e.getMessage(), e);
                        EmbeddedGFacInvoker.this.failerSent = true;
                        throw new WorkflowRuntimeException(e);
                    } catch (RuntimeException e) {
                        logger.error(e.getMessage(), e);
                        String message = "Error in invoking a service: " + EmbeddedGFacInvoker.this.serviceInformation;
                        EmbeddedGFacInvoker.this.notifier.invocationFailed(message, e);
                        EmbeddedGFacInvoker.this.failerSent = true;
View Full Code Here

        return true;
      } else {
//        writeProvenanceLater(node);
      }
    } catch (Exception e) {
      throw new WorkflowRuntimeException(e);
    }
    return false;

  }
View Full Code Here

  /**
     *
     */
  private void notifyPause() {
    if (this.getWorkflow().getExecutionState() != WorkflowExecutionState.RUNNING && this.getWorkflow().getExecutionState() != WorkflowExecutionState.STEP) {
      throw new WorkflowRuntimeException("Cannot pause when not running");
    }
    notifyViaInteractor(WorkflowExecutionMessage.EXECUTION_STATE_CHANGED, WorkflowExecutionState.PAUSED);
    // if (this.config.getMode() ==
    // WorkflowInterpreterConfiguration.GUI_MODE) {
    //
View Full Code Here

          // wsdlresolver.getInstance is static so once this is
          // done
          // rest of the loading should work.

        } catch (URISyntaxException e) {
          throw new WorkflowRuntimeException(e);
        }

        /*
         * Resource Mapping Header
         */
 
View Full Code Here

      // ((SubWorkflowNode) middleNode).getWorkflow();
      // this.config.getConfiguration();
      // TODO : Need to create a invoker!
      // new WorkflowInterpreter()
    } else {
      throw new WorkflowRuntimeException("Only Web services and subworkflows are supported for For-Each : Found : " + middleNode);
    }
    return invoker;
  }
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.