camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OrackBahama <>
Subject Problem with Smooks/TypeConverter since camel 2.9.0
Date Tue, 07 Feb 2012 09:55:43 GMT

since the migration to camel version 2.9.0, I'm experiencing the following
problem (in pseudocode for clarity ;-)). ( Was working in versions 2.7.x ...

from( "file://inbox-with-flatfiles-in-textformat-no-xml...")
  .to( "smooks://smooks-config.xml" )

causes the following exception: 

Caused by: java.lang.IllegalArgumentException:
Source types not yet supported by the SAX Filter. Only supports StreamSource
and JavaSource at present.
	at org.milyn.Smooks._filter(

The following workaround works well - but since I don't know anything about
the maximum filesize to be
expected - I feel uncomfortable by converting the file content to String

from( "file://inbox-with-flatfiles-in-textformat-no-xml...")
  .convertBodyTo( String.class )
  .to( "smooks://smooks-config.xml" )

The file passed to smooks is not really a SAXSource since it is a flat
textfile. It is only parsed in a SAX compatible manner by smooks ...

How to use a different TypeConverter (which ?) correctly to even handle huge
files ?
Advice very much appreciated - thanks in advance !

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message