camel-users mailing list archives

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

 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 =
		 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:
Sent from the Camel - Users mailing list archive at

View raw message