Segui passo a passo conforme o exercicio porém ao executar o codigo aparece o erro abaixo.
final XStream xstream = new XStream();
from("timer://negociacoes?fixedRate=true&delay=1s&period=360s").
to("http4://argentumws-spring.herokuapp.com/negociacoes").
convertBodyTo(String.class).
unmarshal(new XStreamDataFormat(xstream)).
split(body()).
log("${body}").
setHeader(Exchange.FILE_NAME, constant("negociacoes.xml")).
end(); //só deixa explícito que é o fim da rota
Saida do console
Stacktrace
com.thoughtworks.xstream.converters.ConversionException: negociacao : negociacao
---- Debugging information ----
message : negociacao
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : negociacao
class : java.util.ArrayList
required-type : java.util.ArrayList
converter-type : com.thoughtworks.xstream.converters.collections.CollectionConverter
path : /list/negociacao
line number : 2
version : 1.4.8
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1206) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1178) ~[xstream-1.4.8.jar:1.4.8]
at org.apache.camel.dataformat.xstream.AbstractXStreamWrapper.unmarshal(AbstractXStreamWrapper.java:343) ~[camel-xstream-2.16.1.jar:2.16.1]
at org.apache.camel.processor.UnmarshalProcessor.process(UnmarshalProcessor.java:69) ~[camel-core-2.16.1.jar:2.16.1]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) ~[camel-core-2.16.1.jar:2.16.1]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.1.jar:2.16.1]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.1.jar:2.16.1]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.1.jar:2.16.1]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.1.jar:2.16.1]
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.1.jar:2.16.1]
at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:165) [camel-core-2.16.1.jar:2.16.1]
at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:73) [camel-core-2.16.1.jar:2.16.1]
at java.util.TimerThread.mainLoop(Unknown Source) [?:1.8.0_231]
at java.util.TimerThread.run(Unknown Source) [?:1.8.0_231]
Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: negociacao
at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.8.jar:1.4.8]
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) ~[xstream-1.4.8.jar:1.4.8]
at com