Examples of EvaluatorException


Examples of eu.scape_project.planning.evaluation.EvaluatorException

        workflowDescription.readMetadata();

        if (!workflowDescription.getProfile().equals("http://purl.org/DP/components#Characterisation")
            && !workflowDescription.getProfile().equals("http://purl.org/DP/components#QAObjectComparison")) {
            LOG.warn("The workflow {} is no CC or QA component.", service.getDescriptor());
            throw new EvaluatorException("The workflow " + service.getDescriptor() + " is no CC or QA component.");
        }

        // Input
        if (workflowDescription.getProfile().equals("http://purl.org/DP/components#Characterisation")) {
            setCCInputData(workflowDescription, result, tavernaExecutor);
        } else {
            setQAInputData(workflowDescription, sample, result, tavernaExecutor);
        }

        // Workflow
        tavernaExecutor.setWorkflow(service.getContentUri());

        // Output ports to receive
        List<Port> outputPorts = workflowDescription.getOutputPorts();
        Set<String> outputPortNames = new HashSet<String>(outputPorts.size());
        for (Port p : outputPorts) {
            outputPortNames.add(p.getName());
        }
        tavernaExecutor.setOutputPorts(outputPortNames);

        // Execute
        try {
            tavernaExecutor.execute();
        } catch (IOException e) {
            LOG.error("Error connecting to execution server", e);
            throw new EvaluatorException("Error connecting to execution server", e);
        } catch (TavernaExecutorException e) {
            LOG.error("Error executing taverna workflow", e);
            throw new EvaluatorException("Error executing taverna workflow", e);
        }

        Map<String, ?> outputData = tavernaExecutor.getOutputData();
        for (Port p : outputPorts) {
            String measure = p.getValue();
View Full Code Here

Examples of net.sourceforge.htmlunit.corejs.javascript.EvaluatorException

   public EvaluatorException runtimeError(String message, String sourceName,
                                          int line, String lineSource,
                                          int lineOffset)
   {
       error(message, sourceName, line, lineSource, lineOffset);
       return new EvaluatorException(message, sourceName, line,
                                     lineSource, lineOffset);
   }
View Full Code Here

Examples of org.apache.synapse.commons.evaluators.EvaluatorException

        return null;
    }

    private void handleException(String message) throws EvaluatorException {
        log.error(message);
        throw new EvaluatorException(message);
    }
View Full Code Here

Examples of org.apache.synapse.commons.evaluators.EvaluatorException

            serializer.serialize(conditionElement, condition.getEvaluator());
        } else {
            String msg = "Couldn't find the serializer for evaliator: " +
                    condition.getEvaluator().getName();
            log.error(msg);
            throw new EvaluatorException(msg);
        }

        if (parent != null) {
            parent.addChild(conditionElement);
        }
View Full Code Here

Examples of org.apache.synapse.commons.evaluators.EvaluatorException

        return textRetriever;
    }

    protected void handleException(String message) throws EvaluatorException {
        log.error(message);
        throw new EvaluatorException(message);
    }
View Full Code Here

Examples of org.apache.synapse.commons.evaluators.EvaluatorException

                    source));
        } else {
            String msg = "If type is not URL a source value should be specified for " +
                            "the evaluator";
            log.error(msg);
            throw new EvaluatorException(msg);
        }
    }
View Full Code Here

Examples of org.apache.synapse.commons.evaluators.EvaluatorException

        return r;
    }

    private void handleException(String message) throws EvaluatorException {
        log.error(message);
        throw new EvaluatorException(message);
    }
View Full Code Here

Examples of org.apache.synapse.commons.evaluators.EvaluatorException

            if (serializer != null) {
                serializer.serialize(parent, evaluator);
            } else {
                String msg = "Couldn't find the serializer for evaliator: " + name;
                log.error(msg);
                throw new EvaluatorException(msg);
            }
        }
    }
View Full Code Here

Examples of org.apache.synapse.commons.evaluators.EvaluatorException

        if (serializer != null) {
            serializer.serialize(parenet, child);
        } else {
            String msg = "Couldn't find the serializer for evaliator: " + child.getName();
            log.error(msg);
            throw new EvaluatorException(msg);
        }
    }
View Full Code Here

Examples of org.apache.synapse.commons.evaluators.EvaluatorException

        return o;
    }

    private void handleException(String message) throws EvaluatorException {
        log.error(message);
        throw new EvaluatorException(message);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.