> Thank you for your response. > I've already seen that the stacktrace is available in the Http body. > I hoped that the exception would be raised as the spring http exporter does.
Please reply to the public mailing list and not directly to me. In terms of such a feature (to let camel be able to export remote exceptions) please create a ticket in JIRA http://issues.apache.org/activemq/browse/CAMEL On Mon, Oct 11, 2010 at 3:23 PM, Claus Ibsen <[email protected]> wrote: > Hi > > The remote server sends back the HTTP status 500. > And whatever it sends back is usually plain/text > > And hence there is no remote stacktrace serialized in the HTTP body. > > The Camel servlet/jetty component will by default send back the > exception message + stacktrace as String > which you can get from the HttpOperationFailedException. There is a > getBody method on it. > > On Mon, Oct 11, 2010 at 11:15 AM, anoordover <[email protected]> wrote: >> >> When I define a method in an interface that returns a checked exception and >> use camel:proxy via a http component I get a HttpOperationFailedException at >> the client and I cannot access the exception that was raised at the server. >> >> This is my servlet: >> <camelContext id="myCamelContext" >> xmlns="http://camel.apache.org/schema/spring"> >> <route> >> <from uri="servlet:///hello"></from> >> <to uri="bean:helloServiceImpl"></to> >> </route> >> </camelContext> >> >> <bean id="helloServiceImpl" class="bla.bla.HelloServiceImpl"> >> </bean> >> >> This is my client: >> <camel:camelContext> >> <camel:template id="camelTemplate" /> >> >> <camel:proxy id="httpService" >> serviceInterface="bla.bla.HelloService" >> serviceUrl="direct:hello" /> >> <camel:route> >> <camel:from uri="direct:hello" /> >> <camel:to uri="http:.../http_consumer/camel/hello" >> /> >> </camel:route> >> >> </camel:camelContext> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/proxy-using-camel-http-tp3207221p3207221.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> > > > > -- > Claus Ibsen > Apache Camel Committer > > Author of Camel in Action: http://www.manning.com/ibsen/ > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
