You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by asd09 <ne...@mail.ru> on 2012/03/14 12:53:47 UTC

simple language in http endpoint?

how can i do something like this
 <to uri="https://somehost/index.php?$header.params222 />
i try many combinations, but i not found worked version.
any suggestions?

--
View this message in context: http://camel.465427.n5.nabble.com/simple-language-in-http-endpoint-tp5564380p5564380.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: simple language in http endpoint?

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

See this FAQ
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html



On Wed, Mar 14, 2012 at 12:53 PM, asd09 <ne...@mail.ru> wrote:
> how can i do something like this
>  <to uri="https://somehost/index.php?$header.params222 />
> i try many combinations, but i not found worked version.
> any suggestions?
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/simple-language-in-http-endpoint-tp5564380p5564380.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: simple language in http endpoint?

Posted by asd09 <ne...@mail.ru>.
thank, but i couldn't make what you said.
i solve my question by set CamelHttpQuery header

earlier I tried to set  HTTP_QUERY, but it didn't work.


--
View this message in context: http://camel.465427.n5.nabble.com/simple-language-in-http-endpoint-tp5564380p5564955.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: simple language in http endpoint?

Posted by asd09 <ne...@mail.ru>.
i started to find this because of update to
apache-servicemix-4.4.1-fuse-02-05 .
In older versions fuse this url worked fine
<to
uri="https://somehost/report.php?df_start_day=12&amp;df_start_month=3&amp;df_start_year=2012&amp;df_start_hour=0&amp;df_start_minute=0&amp;df_end_day=13&amp;df_end_month=3&amp;df_end_year=2012&amp;df_end_hour=23&amp;df_end_minute=59&amp;uf_orderby=id&amp;uf_order_dir=asc&amp;actreestr%5B%5D=0&amp;output=screen&amp;submit=%CF%EE%EA%E0%E7%E0%F2%FC?httpClientConfigurerRef=authClientConfigurer"/>

but in new version i get error:

16:14:08,405 | ERROR | locacancellTimer | DefaultErrorHandler              |
89 - org.apache.camel.camel-core - 2.8.0.fuse-02-05 | Failed delivery for
exchangeId: ID-linux-j8t8-40344-1331639234192-8-1. Exhausted after delivery
attempt: 1 caught: org.apache.commons.httpclient.URIException: Invalid query
org.apache.commons.httpclient.URIException: Invalid query
	at
org.apache.commons.httpclient.URI.parseUriReference(URI.java:2049)[176:org.apache.servicemix.bundles.commons-httpclient:3.1.0.5]
	at
org.apache.commons.httpclient.URI.<init>(URI.java:147)[176:org.apache.servicemix.bundles.commons-httpclient:3.1.0.5]
	at
org.apache.commons.httpclient.HttpMethodBase.getURI(HttpMethodBase.java:265)[176:org.apache.servicemix.bundles.commons-httpclient:3.1.0.5]
	at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:383)[176:org.apache.servicemix.bundles.commons-httpclient:3.1.0.5]
	at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)[176:org.apache.servicemix.bundles.commons-httpclient:3.1.0.5]
	at
org.apache.camel.component.http.HttpProducer.executeMethod(HttpProducer.java:244)[218:org.apache.camel.camel-http:2.8.0.fuse-02-05]
	at
org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:146)[218:org.apache.camel.camel-http:2.8.0.fuse-02-05]
	at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:114)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:284)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:109)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:59)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:306)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.Pipeline.process(Pipeline.java:116)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.Pipeline.process(Pipeline.java:79)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:61)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.spring.spi.TransactionErrorHandler.processByErrorHandler(TransactionErrorHandler.java:206)[91:org.apache.camel.camel-spring:2.8.0.fuse-02-05]
	at
org.apache.camel.spring.spi.TransactionErrorHandler$1.doInTransactionWithoutResult(TransactionErrorHandler.java:166)[91:org.apache.camel.camel-spring:2.8.0.fuse-02-05]
	at
org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)[92:org.springframework.transaction:3.0.5.RELEASE]
	at
org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)[92:org.springframework.transaction:3.0.5.RELEASE]
	at
org.apache.camel.spring.spi.TransactionErrorHandler.doInTransactionTemplate(TransactionErrorHandler.java:159)[91:org.apache.camel.camel-spring:2.8.0.fuse-02-05]
	at
org.apache.camel.spring.spi.TransactionErrorHandler.processInTransaction(TransactionErrorHandler.java:120)[91:org.apache.camel.camel-spring:2.8.0.fuse-02-05]
	at
org.apache.camel.spring.spi.TransactionErrorHandler.process(TransactionErrorHandler.java:94)[91:org.apache.camel.camel-spring:2.8.0.fuse-02-05]
	at
org.apache.camel.spring.spi.TransactionErrorHandler.process(TransactionErrorHandler.java:103)[91:org.apache.camel.camel-spring:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:59)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:306)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:139)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:106)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:121)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at
org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:58)[89:org.apache.camel.camel-core:2.8.0.fuse-02-05]
	at java.util.TimerThread.mainLoop(Timer.java:512)[:1.6.0_30]
	at java.util.TimerThread.run(Timer.java:462)[:1.6.0_30]

Then i try apache-servicemix-4.4.1-fuse-03-06, but i get same error


--
View this message in context: http://camel.465427.n5.nabble.com/simple-language-in-http-endpoint-tp5564380p5564393.html
Sent from the Camel - Users mailing list archive at Nabble.com.