Ok, maybe its relevant to mention at this point that I had to write my own
converter to transform the body of the org.apache.camel.Message into an
InputStream. I had an exception because camel wasn't able to make such a
transformation by itself.

This is my custom converter:

@Converter
        public static InputStream toInputStream(DefaultMessage dm) {
                try {
                        InputStream is = (InputStream) 
dm.getExchange().getIn().getBody();
                        LOG.info("Camel message transformed to InputStream: 
\n\n" 
                                        + 
SOAPRequestTransformProcessor.inputStreamAsString(is) );
                        return is;
                } catch (Throwable e) {
                        LOG.severe("Oops, this should not be happening...
");
                        return null;
                }
        }

Now, I just tried removing any log routes from camel. The results are the
same, it keeps throwing that org.xml.sax.SAXParseException: Premature end of
file..

In my next try I'll switch to a newer camel component version.

Thanks,
Angel



Gert Vanthienen wrote:
> 
> Good catch Willem!
> 
> So that probably only leaves the convertBodyTo(String.class) workaround...
> 
> Regards,
> 
> Gert Vanthienen
> ------------------------
> Open Source SOA: http://fusesource.com
> Blog: http://gertvanthienen.blogspot.com/
> 

-- 
View this message in context: 
http://www.nabble.com/Web-Services-Virtualization-using-ServiceMix-tp25514386p25613171.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to