L.S.,
The easiest way to avoid this is by using
MessageUtil.enableContentRereadability() on the NormalizedMessage
first. That will convert the message body to a rereadable XML source
type that can be read from as many times as you want.
Regards,
Gert
servicer-mixer wrote:
I've gotten the same error before. Not sure if it has to do with whether the
SourceTransofrmer is shared. When you convert the source to string, if the
source is a stream, you will not be able to use that source anymore (since
it was read by the transformer).