You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Charles Moulliard <ch...@gmail.com> on 2013/09/25 20:56:25 UTC
LogProcessor & Simple UnaryExpression
Hi,
Is there a trick to avoid that Simple language uses unary expression when
the mog message contains '---' characters
<log message="--- SOAP Response received : ${body} ---">
.camel.TypeConversionException: Error during type conversion from type:
java.lang.String to the required type: java.lang.Number with value due
java.lang.NumberFormatException: For input string: " "
org.apache.camel.TypeConversionException: Error during type conversion from
type: java.lan
g.String to the required type: java.lang.Number with value due
java.lang.NumberFormatException: For input string: " "
at
org.apache.camel.impl.converter.BaseTypeConverterRegistry.convertTo(BaseTypeConverterRegistry.java:126)
at
org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:37)
at
org.apache.camel.language.simple.ast.UnaryExpression$2.evaluate(UnaryExpression.java:114)*
Regards,
--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
Re: LogProcessor & Simple UnaryExpression
Posted by Babak Vahdat <ba...@swissonline.ch>.
Am 25.09.13 20:56 schrieb "Charles Moulliard" unter <ch...@gmail.com>:
>Hi,
>
>Is there a trick to avoid that Simple language uses unary expression when
>the mog message contains '---' characters
Hi
This has been already fixed so maybe try to upgrade:
https://issues.apache.org/jira/browse/CAMEL-6414
Babak
>
>
> <log message="--- SOAP Response received : ${body} ---">
>
>.camel.TypeConversionException: Error during type conversion from type:
>java.lang.String to the required type: java.lang.Number with value due
>java.lang.NumberFormatException: For input string: " "
>org.apache.camel.TypeConversionException: Error during type conversion
>from
>type: java.lan
>g.String to the required type: java.lang.Number with value due
>java.lang.NumberFormatException: For input string: " "
>at
>org.apache.camel.impl.converter.BaseTypeConverterRegistry.convertTo(BaseTy
>peConverterRegistry.java:126)
>at
>org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java
>:37)
>at
>org.apache.camel.language.simple.ast.UnaryExpression$2.evaluate(UnaryExpre
>ssion.java:114)*
>
>Regards,
>
>--
>Charles Moulliard
>Apache Committer / Architect @RedHat
>Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com