Re: Http4 component throws useless NPE if request body is String (instead of InputStream)

2012-08-15 Thread Claus Ibsen
aybe, > somehow, notify people of this potential problem with HttpComponent 4.2. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Http4-component-throws-useless-NPE-if-request-body-is-String-instead-of-InputStream-tp5717268p5717449.html > Sent from the

Re: Http4 component throws useless NPE if request body is String (instead of InputStream)

2012-08-15 Thread pmcb55
View this message in context: http://camel.465427.n5.nabble.com/Http4-component-throws-useless-NPE-if-request-body-is-String-instead-of-InputStream-tp5717268p5717449.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Http4 component throws useless NPE if request body is String (instead of InputStream)

2012-08-15 Thread Claus Ibsen
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

Re: Http4 component throws useless NPE if request body is String (instead of InputStream)

2012-08-14 Thread pmcb55
ssage in context: http://camel.465427.n5.nabble.com/Http4-component-throws-useless-NPE-if-request-body-is-String-instead-of-InputStream-tp5717268p5717307.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Http4 component throws useless NPE if request body is String (instead of InputStream)

2012-08-14 Thread Willem jiang
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

Re: Http4 component throws useless NPE if request body is String (instead of InputStream)

2012-08-14 Thread pmcb55
s, 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.

Re: Http4 component throws useless NPE if request body is String (instead of InputStream)

2012-08-13 Thread Claus Ibsen
Assert.assertTrue(response.isFailed()); > Throwable exception = response.getException(); > System.out.println("Exception: " + exception.getLocalizedMessage() + > "\nCause: " + exception.getCause()); > } > } > > > > > -- >

Http4 component throws useless NPE if request body is String (instead of InputStream)

2012-08-13 Thread pmcb55
in context: http://camel.465427.n5.nabble.com/Http4-component-throws-useless-NPE-if-request-body-is-String-instead-of-InputStream-tp5717268.html Sent from the Camel - Users mailing list archive at Nabble.com.