【发布时间】:2013-02-01 02:41:23
【问题描述】:
我在调用托管在 Tomcat 上的 REST Web 服务时收到 NullPointerException。路线看起来像:
<route>
<from uri="rabbitmq:exchange:queue"/>
<to uri="http://localhost:8080/rest-webservice/service/execute?message=${body}" /></route>
我编写了一个自定义类型转换器,它将我从 rabbitMQ 读取的对象转换为 String XML。我需要将此作为参数发送到 Web 服务。
我从rabbitMQ读取后使用&lt;log message="message: ${body}" /&gt;,类型转换器成功将对象转换为字符串。
Caused by: org.apache.camel.TypeConversionException: Error during type conversion from type: java.lang.String to the required type: org.apache.commons.httpclient.methods.RequestEntity with value
【问题讨论】:
标签: http apache-camel endpoint fuseesb