-
1. Re: HttpOperationFailedException whith file consumer and jetty producer.
ffang Jan 31, 2013 8:11 PM (in response to stephane_stephane.pain)Hi,
Return code 500 generally means the server encountered an unexpected condition which prevented it from fulfilling the request[1].
You may need dump your request to check if it's valid for your server
http://www.w3.org/Protocols/HTTP/HTRESP.html
Freeman
-
2. Re: HttpOperationFailedException whith file consumer and jetty producer.
stephane_stephane.pain Feb 1, 2013 2:39 AM (in response to ffang)For more precision i used apache-servicemix-4.4.1-fuse-08-15
Freeman, my http adress is correct and reachable but jetty delete the character : in the request and i don't know why.
-
3. Re: HttpOperationFailedException whith file consumer and jetty producer.
davsclaus Feb 1, 2013 3:08 AM (in response to stephane_stephane.pain)You can try converting the payload to a String before calling Jetty
<route> <from uri="file:C:/TEMP/camel/import?include=.*\.xml&move=C:/TEMP/camel/import/archive"></from> <convertBodyTo type="String"></convertBodyTo> <to uri="jetty://http://localhost:8080/myContext"></to> </route>
-
4. Re: HttpOperationFailedException whith file consumer and jetty producer.
stephane_stephane.pain Feb 1, 2013 4:55 AM (in response to davsclaus)davsclaus, I test with a convertbodyTo but i have the same error.
-
5. Re: HttpOperationFailedException whith file consumer and jetty producer.
davsclaus Feb 1, 2013 7:10 AM (in response to stephane_stephane.pain)You should look on the server side, as its reporting error 500.
Is that also a Camel application or something else? Anyhow check its logs to see if you can drill down what happens.
-
6. Re: HttpOperationFailedException whith file consumer and jetty producer.
stephane_stephane.pain Feb 4, 2013 2:21 AM (in response to davsclaus)Ok thanks all, i found my problem.
There was a problem on the xml file i read who generate an error on server. The log message disturbe me but it was a false trail.
Thanks