camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From miri eyni <miri.e...@sapiens.com>
Subject process failed
Date Wed, 25 May 2016 12:11:24 GMT
hi

 i am try in process method call to another API for get metadata that should
be part of the request for 
the target endpoint 
	public void process(Exchange exchange) throws Exception {
		ProducerTemplate template =
exchange.getContext().createProducerTemplate();
		 CxfComponent cxfComponent = new CxfComponent(exchange.getContext());	
		 CxfRsEndpoint endpoint = new
CxfRsEndpoint("http://localhost:8080/occupations" ,cxfComponent);
		 
		Exchange targetExchange =template.send(endpoint, exchange);
		String body = targetExchange.getIn().getBody(String.class);
		
		
	}

on the processing i got nullPointerException because the binding is null.





--
View this message in context: http://camel.465427.n5.nabble.com/process-failed-tp5783072.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message