Am trying to declare a bean and call its method. I have added this in my route now,
<bean ref="org.apache.camel.component.http4.HttpComponent" method="createConfiguration" > </bean> I get the following error, Exhausted after delivery attempt: 1 caught: org.apache.camel.InvalidPayloadException: No body available of type: java.io.InputStream but has value: org.apache.camel.impl.MappedEndpointConfiguration@44931409 of type: org.apache.camel.impl.MappedEndpointConfiguration on: Message: org.apache.camel.impl.MappedEndpointConfiguration@44931409. Caused by: No type converter available to convert from type: org.apache.camel.impl.MappedEndpointConfiguration to the required type: java.io.InputStream with value org.apache.camel.impl.MappedEndpointConfiguration@44931409. Exchange[Message: org.apache.camel.impl.MappedEndpointConfiguration@44931409]. Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type converter available to convert from type: org.apache.camel.impl.MappedEndpointConfiguration to the required type: java.io.InputStream with value org.apache.camel.impl.MappedEndpointConfiguration@44931409]: org.apache.camel.InvalidPayloadException: No body available of type: java.io.InputStream but has value: org.apache.camel.impl.MappedEndpointConfiguration@44931409 of type: org.apache.camel.impl.MappedEndpointConfiguration on: Message: org.apache.camel.impl.MappedEndpointConfiguration@44931409. Caused by: No type converter available to convert from type: org.apache.camel.impl.MappedEndpointConfiguration to the required type: Can you please let me know which method should i use in the bean and how to pass parameters to it from my route? Thanks, Anish -- View this message in context: http://camel.465427.n5.nabble.com/PEM-File-for-Authentication-in-route-tp5771084p5771359.html Sent from the Camel - Users mailing list archive at Nabble.com.