camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Simple expression replaceAll causes an error when the input string containing a "." (dot)
Date Tue, 22 Sep 2015 06:37:09 GMT
What version of Camel do you use? And have you tested with a newer release.

On Tue, Sep 22, 2015 at 7:09 AM, catshout <gerald.kallas@web.de> wrote:
> Dear all,
>
> I'm gonna to filter out the value of "clientId" from a string like
>
> {"timestamp":1442843609,"status":200,"request":{"mbean":"org.apache.activemq:brokerName=amq-broker,type=Broker","attribute":"DurableTopicSubscribers","type":"read"},"value":[{"objectName":"org.apache.activemq:brokerName=amq-broker,clientId=SIB0001,consumerId=Durable(SIB0001_SIB0001.article),destinationName=article,destinationType=Topic,endpoint=Consumer,type=Broker"},{"objectName":"org.apache.activemq:brokerName=amq-broker,clientId=SIB0001,consumerId=Durable(SIB0001_SIB0001.pdf),destinationName=pdf,destinationType=Topic,endpoint=Consumer,type=Broker"}]}
>
> I've created an expression like this
>
>
>
> It causes an error
>
> org.apache.camel.language.bean.RuntimeBeanExpressionException: Failed to
> invoke method: *", "$1") on null due to:
> org.apache.camel.component.bean.MethodNotFoundException: Method with name:
> *", "$1") not found on bean:
> org.apache.activemq:brokerName=amq-broker,clientId=SIB0001,consumerId=Durable(SIB0001_SIB0001.pdf),destinationName=pdf,destinationType=Topic,endpoint=Consumer,type=Broker
> of type: java.lang.String. Exchange[Message:
> org.apache.activemq:brokerName=amq-broker,clientId=SIB0001,consumerId=Durable(SIB0001_SIB0001.pdf),destinationName=pdf,destinationType=Topic,endpoint=Consumer,type=Broker]
>
> Does anyone have a hint how to use a "." (dot) in a Camel Simple regex
> without causing such an error?
>
> Many thanks in advance
> - Gerald
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Simple-expression-replaceAll-causes-an-error-when-the-input-string-containing-a-dot-tp5771743.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition: https://www.manning.com/books/ibsen2

Mime
View raw message