Examples of EvaluatorException


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

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

                default: return context.getUrl();
            }
        } catch (URISyntaxException e) {
            String message = "Error parsing URL: " + context.getUrl();
            log.error(message);
            throw new EvaluatorException(message);
        }
    }
View Full Code Here

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

        return not;
    }

    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

        try {
            return context.getParam(source);
        } catch (UnsupportedEncodingException e) {
            String message = "Error retrieving paramter: " + source;
            log.error(message);
            throw new EvaluatorException(message);
        }
    }
View Full Code Here

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

            if (compiledXPath == null) {
                compiledXPath = new AXIOMXPath(source);
            }
            result = compiledXPath.evaluate(envelope);
        } catch (JaxenException e) {
            throw new EvaluatorException("Error while parsing the XPath expression: " + source, e);
        }

        if (result instanceof List) {
            List list = (List) result;
            if (list.size() == 1 && list.get(0) == null) {
View Full Code Here

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

            if (compiledXPath == null) {
                compiledXPath = new AXIOMXPath(source);
            }
            result = compiledXPath.evaluate(envelope);
        } catch (JaxenException e) {
            throw new EvaluatorException("Error while parsing the XPath expression: " + source, e);
        }

        if (result instanceof List) {
            List list = (List) result;
            if (list.size() == 1 && list.get(0) == null) {
View Full Code Here

Examples of org.mozilla.javascript.EvaluatorException

     * if it is valid, i.e. there were no errors when compiling it. If
     * invalid, a ScriptingException is thrown.
     */
    public Scriptable getValidPrototype(String protoName) {
        if (globalError != null) {
            throw new EvaluatorException(globalError);
        }
        TypeInfo type = getPrototypeInfo(protoName);
        if (type != null) {
            if (type.hasError()) {
                throw new EvaluatorException(type.getError());
            }
            return type.objProto;
        }
        return null;
    }
View Full Code Here

Examples of org.mozilla.javascript.EvaluatorException

                        result = eng.invoke(handler, hrefFunction,
                                               new Object[] {href},
                                               ScriptingEngine.ARGS_WRAP_DEFAULT,
                                               false);
                    } catch (ScriptingException x) {
                        throw new EvaluatorException("Error in hrefFunction: " + x);
                    }

                    if (result == null) {
                        throw new EvaluatorException("hrefFunction " + hrefFunction +
                                                       " returned null");
                    }

                    href = result.toString();
                    break;
View Full Code Here

Examples of org.mozilla.javascript.EvaluatorException

         * additional subclasses.
         */
        protected void observeInstructionCount(Context cx, int instructionCount) {
            RhinoEngine engine = RhinoEngine.getRhinoEngine();
            if (engine != null && engine.thread != Thread.currentThread()) {
                throw new EvaluatorException("Request timed out");
            }
        }
View Full Code Here

Examples of org.mozilla.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);
                                }
                            });

                            // Close the input stream first, and then open the output stream,
                            // in case the output file should override the input file.
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.