camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunjara <mgunjara.gal...@gmail.com>
Subject nullpointerException coming while doing JSON to Java POJO
Date Fri, 25 Nov 2016 02:25:42 GMT
HI can any body help me on this.
    from("direct:restClient").toD("url")
	        .unmarshal().json(JsonLibrary.Jackson, Product[].class
).log("STARTED!")
	   
		    .process(new 
		    		Processor() { 
		    	@Override 
		    	public void process(Exchange exchange) throws Exception { 
		    	Product body = exchange.getIn().getBody(Product.class); 
		    	exchange.getIn().setBody(body);
		    	}})
		 .end(); 



	



--
View this message in context: http://camel.465427.n5.nabble.com/nullpointerException-coming-while-doing-JSON-to-Java-POJO-tp5790508.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message