Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Using camel cxf proxy & MTOM got exception:Body is instance of java.io.InputStream

$
0
0
Hi, everyone :)
I followed the instructions on
http://camel.apache.org/cxf-proxy-example.html
<http://camel.apache.org/cxf-proxy-example.html> and
http://cxf.apache.org/docs/mtom-attachments-with-jaxb.html
<http://cxf.apache.org/docs/mtom-attachments-with-jaxb.html> , in order to
use camel cxf to proxy a webservice (using apache servicemix 5.0.0 as the
ESB).
If I seperate those two, everything worked fine. But when I want to enable
MTOM on the proxied webservice and the client, I got the following
exception:
16:14:28,076 | ERROR | qtp5339974-97 | DefaultErrorHandler |
110 - org.apache.camel.camel-core - 2.12.3 | Failed delivery for (MessageId:
ID-BUPT-RongrongFu-57509-1400314391613-0-1 on ExchangeId:
ID-BUPT-RongrongFu-57509-1400314391613-0-2). Exhausted after delivery
attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception
occurred during execution on the exchange: Exchange[Message: [Body is
instance of java.io.InputStream]]

Message History

Viewing all articles
Browse latest Browse all 5648

Trending Articles