Examples of ExpressionEvaluationException


Examples of com.github.overengineer.scope.conversation.expression.exceptions.ExpressionEvaluationException

            context.registerFunction("cBeg", CONVERSATION_INITIATOR);
            context.registerFunction("cEnd", CONVERSATION_TERMINATOR);
            context.registerFunction("cCon", CONVERSATION_CONTINUATOR);
            return parsedExpression.getValue(context);
        } catch (Exception e) {
            throw new ExpressionEvaluationException(expression, e);
        }
    }
View Full Code Here

Examples of com.github.overengineer.scope.conversation.expression.exceptions.ExpressionEvaluationException

     */
    public Object evaluate(String expression) throws ExpressionEvaluationException {
        try {
            return this.evaluate(expression, ConversationAdapter.getAdapter().getActionContext(), ConversationAdapter.getAdapter().getAction());
        } catch (Exception e) {
            throw new ExpressionEvaluationException(expression, e);
        }
    }
View Full Code Here

Examples of com.github.overengineer.scope.conversation.expression.exceptions.ExpressionEvaluationException

                    LOG.error("Failed to evaluate expression [" + expression + "].  Message:  " + e.getMessage());
                }
            }
        } catch (OgnlException e) {
            LOG.error("Failed to obtain compiled object graph for [" + expression + "].  Message:  " + e.getMessage() + "  Details:  " + e.getReason());
            throw new ExpressionEvaluationException(expression, e);
        } catch (Exception e) {
            throw new ExpressionEvaluationException(expression, e);
        }

        return result;
    }
View Full Code Here

Examples of org.apache.beehive.netui.script.ExpressionEvaluationException

                contextStr + ". Root cause: " + ParseUtils.getRootCause(act).toString();

            if(LOGGER.isErrorEnabled())
                LOGGER.error(msg, act);

            throw new ExpressionEvaluationException(msg, expression, act);
        }
    }
View Full Code Here

Examples of org.apache.camel.ExpressionEvaluationException

        oglContext.setClassResolver(new CamelClassResolver(exchange.getContext().getClassResolver()));
        try {
            Object value = Ognl.getValue(expression, oglContext, new RootObject(exchange));
            return exchange.getContext().getTypeConverter().convertTo(tClass, value);
        } catch (OgnlException e) {
            throw new ExpressionEvaluationException(this, exchange, e);
        }
    }
View Full Code Here

Examples of org.apache.camel.ExpressionEvaluationException

                        // use "null" to indicate the expression returned a null value which is a valid response we need to honor
                        if (parameterValue == null) {
                            parameterValue = "null";
                        }
                    } catch (Exception e) {
                        throw new ExpressionEvaluationException(expression, "Cannot create/evaluate simple expression: " + exp
                                + " to be bound to parameter at index: " + index + " on method: " + getMethod(), exchange, e);
                    }

                    // special for explicit null parameter values (as end users can explicit indicate they want null as parameter)
                    // see method javadoc for details
View Full Code Here

Examples of org.apache.camel.ExpressionEvaluationException

                        // use "null" to indicate the expression returned a null value which is a valid response we need to honor
                        if (parameterValue == null) {
                            parameterValue = "null";
                        }
                    } catch (Exception e) {
                        throw new ExpressionEvaluationException(expression, "Cannot create/evaluate simple expression: " + exp
                                + " to be bound to parameter at index: " + index + " on method: " + getMethod(), exchange, e);
                    }

                    // special for explicit null parameter values (as end users can explicit indicate they want null as parameter)
                    // see method javadoc for details
View Full Code Here

Examples of org.apache.camel.ExpressionEvaluationException

                    Expression expression = null;
                    try {
                        expression = exchange.getContext().resolveLanguage("simple").createExpression(exp);
                        parameterValue = expression.evaluate(exchange, Object.class);
                    } catch (Exception e) {
                        throw new ExpressionEvaluationException(expression, "Cannot create/evaluate simple expression: " + exp
                                + " to be bound to parameter at index: " + index + " on method: " + getMethod(), exchange, e);
                    }

                    if (parameterValue != null) {
View Full Code Here

Examples of org.apache.camel.ExpressionEvaluationException

        try {
            template.sendBody("direct:d", "World");
            fail("Should have thrown exception");
        } catch (CamelExecutionException e) {
            ExpressionEvaluationException cause = assertIsInstanceOf(ExpressionEvaluationException.class, e.getCause());
            assertTrue(cause.getCause().getMessage().startsWith("Unknown function: xxx at location 0"));
        }

        assertMockEndpointsSatisfied();
    }
View Full Code Here

Examples of org.apache.camel.ExpressionEvaluationException

                        // use "null" to indicate the expression returned a null value which is a valid response we need to honor
                        if (parameterValue == null) {
                            parameterValue = "null";
                        }
                    } catch (Exception e) {
                        throw new ExpressionEvaluationException(expression, "Cannot create/evaluate simple expression: " + exp
                                + " to be bound to parameter at index: " + index + " on method: " + getMethod(), exchange, e);
                    }

                    // special for explicit null parameter values (as end users can explicit indicate they want null as parameter)
                    // see method javadoc for details
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.