camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Malathi G <malathi...@gmail.com>
Subject Camel to Webservice call
Date Fri, 15 Nov 2013 07:40:37 GMT
Hi,

While routing soap based message to Webservice endpoint, i am getting the
following exception. Please help me to correct this exception.

*java.lang.InstantiationError: org.apache.cxf.transport.http.HTTPConduit*
 
*Camel code:*
public void configure() {
        
from("mina:tcp://localhost:6789?textline=true&sync=true").process(new
Processor(){
	    public void process(Exchange e)throws Exception{
                         InputStream in = (InputStream) e.getIn().getBody();
                         MessageFactory fac = MessageFactory.newInstance();
	            SOAPMessage soapmsg = fac.createMessage(null, in);
                         e.getOut().setHeader(CxfConstants.OPERATION_NAME,
"request");
	            e.getOut().setBody(soapmsg);
                 }	})
               
.to("cxf://http://localhost:9090/axis2/services/ServiceRequest.ServiceRequestHttpSoap11Endpoint/?wsdlURL=test3/WSSoap.wsdl&dataFormat=PAYLOAD&serviceClass=com.polaris.service.ServiceRequest&serviceName={http://service.polaris.com}ServiceRequest&portName={http://service.polaris.com}ServiceRequestHttpSoap11Endpoint&synchronous=true"
				
.process(new Processor(){
		public void process(Exchange res){
		         log.info("Response Message-->"+res.getIn());
		});
	}

*Exception:*

11:38:59.605 [Camel (camel-1) thread #3 - MinaThreadPool] ERROR
o.a.c.processor.DefaultErrorHandler - Failed delivery for (MessageId:
ID-N6322-50158-1384495614783-0-3 on ExchangeId:
ID-N6322-50158-1384495614783-0-2). Exhausted after delivery attempt: 1
caught: org.apache.camel.CamelExecutionException: Exception occurred during
execution on the exchange: Exchange[Message: [Body is null]]
org.apache.camel.CamelExecutionException: Exception occurred during
execution on the exchange: Exchange[Message: [Body is null]]
	at
org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1358)
~[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:272)
~[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:64)
~[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:122)
~[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:298)
~[camel-core-2.11.1.jar:2.11.1]
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:117)
~[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.interceptor.BacklogTracerInterceptor.process(BacklogTracerInterceptor.java:84)
~[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91)
~[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:391)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:273)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:335)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.11.1.jar:2.11.1]
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:117)
[camel-core-2.11.1.jar:2.11.1]
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)
[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.component.mina.MinaConsumer$ReceiveHandler.messageReceived(MinaConsumer.java:113)
[camel-mina-2.11.1.jar:2.11.1]
	at
org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:570)
[mina-core-1.1.7.jar:na]
	at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
[mina-core-1.1.7.jar:na]
	at
org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)
[mina-core-1.1.7.jar:na]
	at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
[mina-core-1.1.7.jar:na]
	at
org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:220)
[mina-core-1.1.7.jar:na]
	at
org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:264)
[mina-core-1.1.7.jar:na]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[na:1.6.0_14]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[na:1.6.0_14]
	at java.lang.Thread.run(Thread.java:619) [na:1.6.0_14]
Caused by: java.lang.InstantiationError:
org.apache.cxf.transport.http.HTTPConduit
	at
org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(AbstractHTTPTransportFactory.java:157)
~[cxf-bundle-2.2.9.jar:2.2.9]
	at
org.apache.cxf.transport.http.AbstractHTTPTransportFactory.getConduit(AbstractHTTPTransportFactory.java:144)
~[cxf-bundle-2.2.9.jar:2.2.9]
	at
org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:103)
~[cxf-api-2.7.5.jar:2.7.5]
	at
org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(UpfrontConduitSelector.java:63)
~[cxf-api-2.7.5.jar:2.7.5]
	at
org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(ClientImpl.java:850)
~[cxf-api-2.7.5.jar:2.7.5]
	at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:525)
~[cxf-api-2.7.5.jar:2.7.5]
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463)
~[cxf-api-2.7.5.jar:2.7.5]
	at org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:149)
~[camel-cxf-2.12.1.jar:2.12.1]
	at
org.apache.camel.impl.SynchronousDelegateProducer.process(SynchronousDelegateProducer.java:61)
~[camel-core-2.11.1.jar:2.11.1]
	at
org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
~[camel-core-2.11.1.jar:2.11.1]
	... 47 common frames omitted
11:38:59.605 [Camel (camel-1) thread #3 - MinaThreadPool] DEBUG
org.apache.camel.processor.Pipeline - Message exchange has failed: so
breaking out of pipeline for exchange: Exchange[Message: [Body is null]]
Exception: org.apache.camel.CamelExecutionException: Exception occurred
during execution on the exchange: Exchange[Message: [Body is null]]
11:38:59.605 [Camel (camel-1) thread #3 - MinaThreadPool] DEBUG
o.a.c.component.mina.MinaConsumer - Writing body:
org.apache.camel.CamelExecutionException: Exception occurred during
execution on the exchange: Exchange[Message: [Body is null]]



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-to-Webservice-call-tp5743325.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message