You should get the response code from the exception message if the server send the status code back.
-- Willem Jiang FuseSource Web: http://www.fusesource.com (http://www.fusesource.com/) Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: willemjiang On Tuesday, August 14, 2012 at 4:46 PM, pmcb55 wrote: > Hi Claus - we're using the latest version 2.10.0. > > Simply running the JUnit test I provided should illustrate the problem - the > 'System.out.println()' displays 'null' for both the exception description, > and the exception cause - not particularly helpful, obviously! > > Cheers, > > Pat. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Http4-component-throws-useless-NPE-if-request-body-is-String-instead-of-InputStream-tp5717268p5717303.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).
