Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Process Manager (Stardust) » Camel Endpoint Application - Webservice giving error 500
Camel Endpoint Application - Webservice giving error 500 [message #1734768] Sat, 11 June 2016 17:27 Go to next message
Ajay KS is currently offline Ajay KSFriend
Messages: 21
Registered: September 2015
Junior Member
Hi,

My question is related to using Camel Endpoint application to call a POST RESt Service.

I am having one input SDT and passing this as a JSON to service. I have selected ConvertTo as JSON. Below is my Camel config.

<setHeader headerName="CamelHttpMethod"><constant>POST</constant></setHeader>
<setHeader headerName="Content-Type">
<constant>application/json</constant>
</setHeader>
<setHeader headerName="CamelHttpUri">
<constant>${myURL}</constant>
</setHeader>
<to uri="http://isoverwritten"/>
<convertBodyTo type="java.lang.String"/>
<onException>
<exception>java.lang.Exception</exception>
<handled>
<constant>true</constant>
</handled>
<setHeader headerName="Message">
<simple>$simple{property.CamelExceptionCaught.message}</simple>
</setHeader>
<simple>exception=null</simple>
<setProperty propertyName="CamelExceptionCaught">
<simple>null</simple>
</setProperty>
</onException>


However, I am always getting - HTTP operation failed invoking http://myURL with statusCode: 500.
Even though, this service perfectly fine when I call it using Postman or any REST service caller extensions.

org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http://myURL with statusCode: 500
at org.apache.camel.component.http.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:230)
at org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:156)
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:120)

Could you please suggest if I am missing something here.

Regards
Ajay
Re: Camel Endpoint Application - Webservice giving error 500 [message #1736946 is a reply to message #1734768] Mon, 04 July 2016 14:18 Go to previous message
Robert Emsbach is currently offline Robert EmsbachFriend
Messages: 186
Registered: October 2011
Location: Singapore
Senior Member

Some issue in this regard were fixed. Which Stardust version are you using?
Is a proxy involve?
Try to remove xercesImpl from classpath and see if it helps.


Previous Topic:M2eclipse error 401 unauthorized
Next Topic:Rest service call through camel
Goto Forum:
  


Current Time: Mon Nov 19 22:47:53 GMT 2018

Powered by FUDForum. Page generated in 0.01619 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top