camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deepak2307 <sharma.deepa...@yahoo.com>
Subject Not able to upload a file on https secured URL after successfully completing the handshake also
Date Sat, 08 Nov 2014 20:16:57 GMT
I want my xml file to be uploaded to a server.I am using http component for
this.It's a secured URL but i have written the logic to go through it.File
component successfully get the file.

Following is the my route definition and exception occurred:

 from("file:///Module/resources/xmlData?charset=utf-8").log("file
is=${body}").setHeader(Exchange.CONTENT_TYPE, constant("multipart/form-data
")).to("https://localhost:5002/chm/import?authUsername=master&authPassword=master&authMethod=Basic");

Stack trace:org.apache.camel.component.http.HttpOperationFailedException:
HTTP operation failed invoking https://localhost/chm/import with statusCode:
500
	at
org.apache.camel.component.http.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:228)
~[camel-http-2.11.0.jar:2.11.0]
	at
org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:156)
~[camel-http-2.11.0.jar:2.11.0]
	at
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
~[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:122)
~[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:298)
~[camel-core-2.11.0.jar:2.11.0]
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:117)
~[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.interceptor.BacklogTracerInterceptor.process(BacklogTracerInterceptor.java:84)
~[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91)
~[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:390)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:273)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:52)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:335)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.11.0.jar:2.11.0]
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:117)
[camel-core-2.11.0.jar:2.11.0]
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:350)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:197)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:163)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:141)
[camel-core-2.11.0.jar:2.11.0]
	at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:91)
[camel-core-2.11.0.jar:2.11.0]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[na:1.7.0_51]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
[na:1.7.0_51]
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
[na:1.7.0_51]
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
[na:1.7.0_51]
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[na:1.7.0_51]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[na:1.7.0_51]
	at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]




--
View this message in context: http://camel.465427.n5.nabble.com/Not-able-to-upload-a-file-on-https-secured-URL-after-successfully-completing-the-handshake-also-tp5758758.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message