Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Erro ao executar a classe

Prezados estou executando a classe abaixo:

package br.com.caelum.camel;

import org.apache.camel.CamelContext;
import org.apache.camel.Exchange;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.impl.DefaultCamelContext;

public class RotaPedidos2 {
    public static void main(String[] args) throws Exception {
        CamelContext context = new DefaultCamelContext();
        context.addRoutes(new RouteBuilder() {

            @Override
            public void configure() throws Exception {
                from("file:pedidos?delay=5s&noop=true").
                    routeId("rota-pedidos").
                    multicast().
                        to("direct:http").
                        to("direct:soap");

                from("direct:soap").
                    routeId("rota-soap").
                    log("Chamando serviço SOAP ${body}").
                    to("mock:soap");

                from("direct:http").
                    routeId("rota-http").
                    setProperty("pedidoId", xpath("/pedido/id/text()")).
                    setProperty("clienteId", xpath("/pedido/pagamento/email-titular/text()")).
                    split().
                        xpath("/pedido/itens/item").
                    filter().
                        xpath("/item/formato[text()='EBOOK']").
                    setProperty("ebookId", xpath("/item/livro/codigo/text()")).
                    log("${id} \n ${body}").
                    marshal().
                        xmljson().
                    setHeader(Exchange.HTTP_QUERY, 
                            simple("clienteId=${property.clienteId}&pedidoId=${property.pedidoId}&ebookId=${property.ebookId}")).
                to("http4://localhost:8080/ebook/item");

            }
        });

        context.start();
        Thread.sleep(2000);
        context.stop();
    }
}

E me apresenta o erro:

INFO 00:57:17.152 - ID-IBM878-PE016V7B-49756-1487908634468-0-5 
 <item>
            <formato>EBOOK</formato>
            <quantidade>1</quantidade>
            <livro>
                <codigo>ARQ</codigo>
                <titulo>Introdução à Arquitetura e Design de Software</titulo>
                <tituloCurto>Arquitetura Java</tituloCurto>
                <nomeAutor>Sergio Lopes, Paulo Silveira, Guilherme Silveira, Nico Steppat, outros</nomeAutor>
                <valorEbook>29.90</valorEbook>
                <valorImpresso>79.90</valorImpresso>
            </livro>
        </item>
fev 24, 2017 12:57:17 AM net.sf.json.xml.XMLSerializer getType
INFO: Using default type string
ERROR 00:57:17.459 - Failed delivery for (MessageId: ID-IBM878-PE016V7B-49756-1487908634468-0-5 on ExchangeId: ID-IBM878-PE016V7B-49756-1487908634468-0-6). Exhausted after delivery attempt: 1 caught: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=edgar.b@abc.com&pedidoId=2451256&ebookId=ARQ with statusCode: 404

Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
[rota-pedidos      ] [rota-pedidos      ] [file://pedidos?delay=5s&noop=true                                             ] [       481]
[rota-http         ] [filter1           ] [filter[xpath{XPath: /item/formato[text()='EBOOK']}]                           ] [       371]
[rota-http         ] [setProperty3      ] [setProperty[ebookId]                                                          ] [         3]
[rota-http         ] [log2              ] [log                                                                           ] [        55]
[rota-http         ] [marshal1          ] [marshal[org.apache.camel.model.dataformat.XmlJsonDataFormat@15c066d9]         ] [       201]
[rota-http         ] [setHeader1        ] [setHeader[CamelHttpQuery]                                                     ] [        12]
[rota-http         ] [to4               ] [http4://localhost:8080/ebook/item                                             ] [        91]

Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
    Id                  ID-IBM878-PE016V7B-49756-1487908634468-0-6
    ExchangePattern     InOnly
    Headers             {breadcrumbId=ID-IBM878-PE016V7B-49756-1487908634468-0-1, CamelFileAbsolute=false, CamelFileAbsolutePath=C:\Users\IBM_ADMIN\Desktop\GitHub\ProjetosAlura\camel-alura\pedidos\1_pedido.xml, CamelFileContentType=text/xml, CamelFileLastModified=1487908266019, CamelFileLength=912, CamelFileName=1_pedido.xml, CamelFileNameConsumed=1_pedido.xml, CamelFileNameOnly=1_pedido.xml, CamelFileParent=pedidos, CamelFilePath=pedidos\1_pedido.xml, CamelFileRelativePath=1_pedido.xml, CamelHttpQuery=clienteId=edgar.b@abc.com&pedidoId=2451256&ebookId=ARQ, CamelRedelivered=false, CamelRedeliveryCounter=0}
    BodyType            byte[]
    Body                {"formato":"EBOOK","quantidade":"1","livro":{"codigo":"ARQ","titulo":"Introdução à Arquitetura e Design de Software","tituloCurto":"Arquitetura Java","nomeAutor":"Sergio Lopes, Paulo Silveira, Guilherme Silveira, Nico Steppat, outros","valorEbook":"29.90","valorImpresso":"79.90"}}
]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=edgar.b@abc.com&pedidoId=2451256&ebookId=ARQ with statusCode: 404
    at org.apache.camel.component.http4.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:256) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:178) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.FilterProcessor.process(FilterProcessor.java:57) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Splitter.process(Splitter.java:104) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:442) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:214) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:178) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) [camel-core-2.16.0.jar:2.16.0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_111]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
ERROR 00:57:17.459 - Failed delivery for (MessageId: ID-IBM878-PE016V7B-49756-1487908634468-0-5 on ExchangeId: ID-IBM878-PE016V7B-49756-1487908634468-0-6). Exhausted after delivery attempt: 1 caught: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=edgar.b@abc.com&pedidoId=2451256&ebookId=ARQ with statusCode: 404

Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
[rota-pedidos      ] [rota-pedidos      ] [file://pedidos?delay=5s&noop=true                                             ] [       481]
[rota-http         ] [filter1           ] [filter[xpath{XPath: /item/formato[text()='EBOOK']}]                           ] [       371]
[rota-http         ] [setProperty3      ] [setProperty[ebookId]                                                          ] [         3]
[rota-http         ] [log2              ] [log                                                                           ] [        55]
[rota-http         ] [marshal1          ] [marshal[org.apache.camel.model.dataformat.XmlJsonDataFormat@15c066d9]         ] [       201]
[rota-http         ] [setHeader1        ] [setHeader[CamelHttpQuery]                                                     ] [        12]
[rota-http         ] [to4               ] [http4://localhost:8080/ebook/item                                             ] [        91]

Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
    Id                  ID-IBM878-PE016V7B-49756-1487908634468-0-6
    ExchangePattern     InOnly
    Headers             {breadcrumbId=ID-IBM878-PE016V7B-49756-1487908634468-0-1, CamelFileAbsolute=false, CamelFileAbsolutePath=C:\Users\IBM_ADMIN\Desktop\GitHub\ProjetosAlura\camel-alura\pedidos\1_pedido.xml, CamelFileContentType=text/xml, CamelFileLastModified=1487908266019, CamelFileLength=912, CamelFileName=1_pedido.xml, CamelFileNameConsumed=1_pedido.xml, CamelFileNameOnly=1_pedido.xml, CamelFileParent=pedidos, CamelFilePath=pedidos\1_pedido.xml, CamelFileRelativePath=1_pedido.xml, CamelHttpQuery=clienteId=edgar.b@abc.com&pedidoId=2451256&ebookId=ARQ, CamelRedelivered=false, CamelRedeliveryCounter=0}
    BodyType            byte[]
    Body                {"formato":"EBOOK","quantidade":"1","livro":{"codigo":"ARQ","titulo":"Introdução à Arquitetura e Design de Software","tituloCurto":"Arquitetura Java","nomeAutor":"Sergio Lopes, Paulo Silveira, Guilherme Silveira, Nico Steppat, outros","valorEbook":"29.90","valorImpresso":"79.90"}}
]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=edgar.b@abc.com&pedidoId=2451256&ebookId=ARQ with statusCode: 404
    at org.apache.camel.component.http4.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:256) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:178) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.FilterProcessor.process(FilterProcessor.java:57) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Splitter.process(Splitter.java:104) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:442) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:214) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:178) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) [camel-core-2.16.0.jar:2.16.0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_111]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
INFO 00:57:17.471 - Chamando serviço SOAP <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<pedido>
    <id>2451256</id>
    <dataCompra>2013-12-05T18:21:07.529-02:00</dataCompra>
    <itens>
         <item>
            <formato>EBOOK</formato>
            <quantidade>1</quantidade>
            <livro>
                <codigo>ARQ</codigo>
                <titulo>Introdução à Arquitetura e Design de Software</titulo>
                <tituloCurto>Arquitetura Java</tituloCurto>
                <nomeAutor>Sergio Lopes, Paulo Silveira, Guilherme Silveira, Nico Steppat, outros</nomeAutor>
                <valorEbook>29.90</valorEbook>
                <valorImpresso>79.90</valorImpresso>
            </livro>
        </item>
    </itens>
    <pagamento>
        <status>CONFIRMADO</status>
        <valor>29.90</valor>
        <titular>Edgar  Brião</titular>
        <email-titular>edgar.b@abc.com</email-titular>
    </pagamento>
</pedido>

WARN 00:57:17.472 - Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy@45722c0d for file: GenericFile[1_pedido.xml]
WARN 00:57:17.472 - Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy@45722c0d for file: GenericFile[1_pedido.xml]
fev 24, 2017 12:57:17 AM net.sf.json.xml.XMLSerializer getType
INFO: Using default type string
INFO 00:57:17.566 - ID-IBM878-PE016V7B-49756-1487908634468-0-15 
 <item>
            <formato>EBOOK</formato>
            <quantidade>1</quantidade>
            <livro>
                <codigo>ARQ</codigo>
                <titulo>Introdução à Arquitetura e Design de Software</titulo>
                <tituloCurto>Arquitetura Java</tituloCurto>
                <nomeAutor>Sergio Lopes, Paulo Silveira, Guilherme Silveira, Nico Steppat, outros</nomeAutor>
                <valorEbook>29.90</valorEbook>
                <valorImpresso>79.90</valorImpresso>
            </livro>
        </item>
ERROR 00:57:17.581 - Failed delivery for (MessageId: ID-IBM878-PE016V7B-49756-1487908634468-0-15 on ExchangeId: ID-IBM878-PE016V7B-49756-1487908634468-0-16). Exhausted after delivery attempt: 1 caught: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=jgal@efg.com&pedidoId=6532463&ebookId=ARQ with statusCode: 404

Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
[rota-pedidos      ] [rota-pedidos      ] [file://pedidos?delay=5s&noop=true                                             ] [       103]
[rota-http         ] [filter1           ] [filter[xpath{XPath: /item/formato[text()='EBOOK']}]                           ] [        19]
[rota-http         ] [setProperty3      ] [setProperty[ebookId]                                                          ] [         2]
[rota-http         ] [log2              ] [log                                                                           ] [         1]
[rota-http         ] [marshal1          ] [marshal[org.apache.camel.model.dataformat.XmlJsonDataFormat@15c066d9]         ] [         4]
[rota-http         ] [setHeader1        ] [setHeader[CamelHttpQuery]                                                     ] [         0]
[rota-http         ] [to4               ] [http4://localhost:8080/ebook/item                                             ] [        10]

Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
    Id                  ID-IBM878-PE016V7B-49756-1487908634468-0-16
    ExchangePattern     InOnly
    Headers             {breadcrumbId=ID-IBM878-PE016V7B-49756-1487908634468-0-9, CamelFileAbsolute=false, CamelFileAbsolutePath=C:\Users\IBM_ADMIN\Desktop\GitHub\ProjetosAlura\camel-alura\pedidos\2_pedido.xml, CamelFileContentType=text/xml, CamelFileLastModified=1487908273802, CamelFileLength=1408, CamelFileName=2_pedido.xml, CamelFileNameConsumed=2_pedido.xml, CamelFileNameOnly=2_pedido.xml, CamelFileParent=pedidos, CamelFilePath=pedidos\2_pedido.xml, CamelFileRelativePath=2_pedido.xml, CamelHttpQuery=clienteId=jgal@efg.com&pedidoId=6532463&ebookId=ARQ, CamelRedelivered=false, CamelRedeliveryCounter=0}
    BodyType            byte[]
    Body                {"formato":"EBOOK","quantidade":"1","livro":{"codigo":"ARQ","titulo":"Introdução à Arquitetura e Design de Software","tituloCurto":"Arquitetura Java","nomeAutor":"Sergio Lopes, Paulo Silveira, Guilherme Silveira, Nico Steppat, outros","valorEbook":"29.90","valorImpresso":"79.90"}}
]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=jgal@efg.com&pedidoId=6532463&ebookId=ARQ with statusCode: 404
    at org.apache.camel.component.http4.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:256) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:178) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.FilterProcessor.process(FilterProcessor.java:57) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Splitter.process(Splitter.java:104) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:442) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:214) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:178) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) [camel-core-2.16.0.jar:2.16.0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_111]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
ERROR 00:57:17.581 - Failed delivery for (MessageId: ID-IBM878-PE016V7B-49756-1487908634468-0-15 on ExchangeId: ID-IBM878-PE016V7B-49756-1487908634468-0-16). Exhausted after delivery attempt: 1 caught: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=jgal@efg.com&pedidoId=6532463&ebookId=ARQ with statusCode: 404

Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
[rota-pedidos      ] [rota-pedidos      ] [file://pedidos?delay=5s&noop=true                                             ] [       103]
[rota-http         ] [filter1           ] [filter[xpath{XPath: /item/formato[text()='EBOOK']}]                           ] [        19]
[rota-http         ] [setProperty3      ] [setProperty[ebookId]                                                          ] [         2]
[rota-http         ] [log2              ] [log                                                                           ] [         1]
[rota-http         ] [marshal1          ] [marshal[org.apache.camel.model.dataformat.XmlJsonDataFormat@15c066d9]         ] [         4]
[rota-http         ] [setHeader1        ] [setHeader[CamelHttpQuery]                                                     ] [         0]
[rota-http         ] [to4               ] [http4://localhost:8080/ebook/item                                             ] [        10]

Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
    Id                  ID-IBM878-PE016V7B-49756-1487908634468-0-16
    ExchangePattern     InOnly
    Headers             {breadcrumbId=ID-IBM878-PE016V7B-49756-1487908634468-0-9, CamelFileAbsolute=false, CamelFileAbsolutePath=C:\Users\IBM_ADMIN\Desktop\GitHub\ProjetosAlura\camel-alura\pedidos\2_pedido.xml, CamelFileContentType=text/xml, CamelFileLastModified=1487908273802, CamelFileLength=1408, CamelFileName=2_pedido.xml, CamelFileNameConsumed=2_pedido.xml, CamelFileNameOnly=2_pedido.xml, CamelFileParent=pedidos, CamelFilePath=pedidos\2_pedido.xml, CamelFileRelativePath=2_pedido.xml, CamelHttpQuery=clienteId=jgal@efg.com&pedidoId=6532463&ebookId=ARQ, CamelRedelivered=false, CamelRedeliveryCounter=0}
    BodyType            byte[]
    Body                {"formato":"EBOOK","quantidade":"1","livro":{"codigo":"ARQ","titulo":"Introdução à Arquitetura e Design de Software","tituloCurto":"Arquitetura Java","nomeAutor":"Sergio Lopes, Paulo Silveira, Guilherme Silveira, Nico Steppat, outros","valorEbook":"29.90","valorImpresso":"79.90"}}
]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=jgal@efg.com&pedidoId=6532463&ebookId=ARQ with statusCode: 404
    at org.apache.camel.component.http4.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:256) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:178) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.FilterProcessor.process(FilterProcessor.java:57) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Splitter.process(Splitter.java:104) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:442) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:214) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:178) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) [camel-core-2.16.0.jar:2.16.0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_111]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
INFO 00:57:17.603 - Chamando serviço SOAP <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<pedido>
    <id>6532463</id>
    <dataCompra>2013-12-05T18:10:07.963-02:00</dataCompra>
    <itens>
        <item>
            <formato>IMPRESSO</formato>
            <quantidade>1</quantidade>
            <livro>
                <codigo>mean</codigo>
                <titulo>Full stack JavaScript para aplicações web com MongoDB, Express, Angular e Node</titulo>
                <tituloCurto>MEAN</tituloCurto>
                <nomeAutor>Flávio Almeida</nomeAutor>
                <valorEbook>39.90</valorEbook>
                <valorImpresso>69.90</valorImpresso>
            </livro>
        </item>
        <item>
            <formato>EBOOK</formato>
            <quantidade>1</quantidade>
            <livro>
                <codigo>ARQ</codigo>
                <titulo>Introdução à Arquitetura e Design de Software</titulo>
                <tituloCurto>Arquitetura Java</tituloCurto>
                <nomeAutor>Sergio Lopes, Paulo Silveira, Guilherme Silveira, Nico Steppat, outros</nomeAutor>
                <valorEbook>29.90</valorEbook>
                <valorImpresso>79.90</valorImpresso>
            </livro>
        </item>
    </itens>
    <pagamento>
        <status>CONFIRMADO</status>
        <valor>99.80</valor>
        <titular>Joana Galindo</titular>
        <email-titular>jgal@efg.com</email-titular>
    </pagamento>
</pedido>

WARN 00:57:17.604 - Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy@45722c0d for file: GenericFile[2_pedido.xml]
WARN 00:57:17.604 - Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy@45722c0d for file: GenericFile[2_pedido.xml]
INFO 00:57:17.649 - ID-IBM878-PE016V7B-49756-1487908634468-0-23 
 <item>
            <formato>EBOOK</formato>
            <quantidade>1</quantidade>
            <livro>
                <codigo>TDD</codigo>
                <titulo>Test-Driven Development: Teste e Design no Mundo Real</titulo>
                <tituloCurto>TDD</tituloCurto>
                <nomeAutor>Mauricio Aniche</nomeAutor>
                <valorEbook>29.90</valorEbook>
                <valorImpresso>59.90</valorImpresso>
            </livro>
        </item>
fev 24, 2017 12:57:17 AM net.sf.json.xml.XMLSerializer getType
INFO: Using default type string
ERROR 00:57:17.657 - Failed delivery for (MessageId: ID-IBM878-PE016V7B-49756-1487908634468-0-23 on ExchangeId: ID-IBM878-PE016V7B-49756-1487908634468-0-24). Exhausted after delivery attempt: 1 caught: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=tatgran@zxc.com&pedidoId=4298608&ebookId=TDD with statusCode: 404

Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
[rota-pedidos      ] [rota-pedidos      ] [file://pedidos?delay=5s&noop=true                                             ] [        48]
[rota-http         ] [filter1           ] [filter[xpath{XPath: /item/formato[text()='EBOOK']}]                           ] [        11]
[rota-http         ] [setProperty3      ] [setProperty[ebookId]                                                          ] [         1]
[rota-http         ] [log2              ] [log                                                                           ] [         1]
[rota-http         ] [marshal1          ] [marshal[org.apache.camel.model.dataformat.XmlJsonDataFormat@15c066d9]         ] [         3]
[rota-http         ] [setHeader1        ] [setHeader[CamelHttpQuery]                                                     ] [         0]
[rota-http         ] [to4               ] [http4://localhost:8080/ebook/item                                             ] [         4]

Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
    Id                  ID-IBM878-PE016V7B-49756-1487908634468-0-24
    ExchangePattern     InOnly
    Headers             {breadcrumbId=ID-IBM878-PE016V7B-49756-1487908634468-0-19, CamelFileAbsolute=false, CamelFileAbsolutePath=C:\Users\IBM_ADMIN\Desktop\GitHub\ProjetosAlura\camel-alura\pedidos\3_pedido.xml, CamelFileContentType=text/xml, CamelFileLastModified=1487908281406, CamelFileLength=1400, CamelFileName=3_pedido.xml, CamelFileNameConsumed=3_pedido.xml, CamelFileNameOnly=3_pedido.xml, CamelFileParent=pedidos, CamelFilePath=pedidos\3_pedido.xml, CamelFileRelativePath=3_pedido.xml, CamelHttpQuery=clienteId=tatgran@zxc.com&pedidoId=4298608&ebookId=TDD, CamelRedelivered=false, CamelRedeliveryCounter=0}
    BodyType            byte[]
    Body                {"formato":"EBOOK","quantidade":"1","livro":{"codigo":"TDD","titulo":"Test-Driven Development: Teste e Design no Mundo Real","tituloCurto":"TDD","nomeAutor":"Mauricio Aniche","valorEbook":"29.90","valorImpresso":"59.90"}}
]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=tatgran@zxc.com&pedidoId=4298608&ebookId=TDD with statusCode: 404
    at org.apache.camel.component.http4.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:256) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:178) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.FilterProcessor.process(FilterProcessor.java:57) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Splitter.process(Splitter.java:104) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:442) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:214) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:178) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) [camel-core-2.16.0.jar:2.16.0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_111]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
ERROR 00:57:17.657 - Failed delivery for (MessageId: ID-IBM878-PE016V7B-49756-1487908634468-0-23 on ExchangeId: ID-IBM878-PE016V7B-49756-1487908634468-0-24). Exhausted after delivery attempt: 1 caught: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=tatgran@zxc.com&pedidoId=4298608&ebookId=TDD with statusCode: 404

Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
[rota-pedidos      ] [rota-pedidos      ] [file://pedidos?delay=5s&noop=true                                             ] [        48]
[rota-http         ] [filter1           ] [filter[xpath{XPath: /item/formato[text()='EBOOK']}]                           ] [        11]
[rota-http         ] [setProperty3      ] [setProperty[ebookId]                                                          ] [         1]
[rota-http         ] [log2              ] [log                                                                           ] [         1]
[rota-http         ] [marshal1          ] [marshal[org.apache.camel.model.dataformat.XmlJsonDataFormat@15c066d9]         ] [         3]
[rota-http         ] [setHeader1        ] [setHeader[CamelHttpQuery]                                                     ] [         0]
[rota-http         ] [to4               ] [http4://localhost:8080/ebook/item                                             ] [         4]

Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
    Id                  ID-IBM878-PE016V7B-49756-1487908634468-0-24
    ExchangePattern     InOnly
    Headers             {breadcrumbId=ID-IBM878-PE016V7B-49756-1487908634468-0-19, CamelFileAbsolute=false, CamelFileAbsolutePath=C:\Users\IBM_ADMIN\Desktop\GitHub\ProjetosAlura\camel-alura\pedidos\3_pedido.xml, CamelFileContentType=text/xml, CamelFileLastModified=1487908281406, CamelFileLength=1400, CamelFileName=3_pedido.xml, CamelFileNameConsumed=3_pedido.xml, CamelFileNameOnly=3_pedido.xml, CamelFileParent=pedidos, CamelFilePath=pedidos\3_pedido.xml, CamelFileRelativePath=3_pedido.xml, CamelHttpQuery=clienteId=tatgran@zxc.com&pedidoId=4298608&ebookId=TDD, CamelRedelivered=false, CamelRedeliveryCounter=0}
    BodyType            byte[]
    Body                {"formato":"EBOOK","quantidade":"1","livro":{"codigo":"TDD","titulo":"Test-Driven Development: Teste e Design no Mundo Real","tituloCurto":"TDD","nomeAutor":"Mauricio Aniche","valorEbook":"29.90","valorImpresso":"59.90"}}
]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=tatgran@zxc.com&pedidoId=4298608&ebookId=TDD with statusCode: 404
    at org.apache.camel.component.http4.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:256) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:178) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.FilterProcessor.process(FilterProcessor.java:57) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Splitter.process(Splitter.java:104) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:442) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:214) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:178) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) [camel-core-2.16.0.jar:2.16.0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_111]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
INFO 00:57:17.662 - ID-IBM878-PE016V7B-49756-1487908634468-0-25 
 <item>
            <formato>EBOOK</formato>
            <quantidade>1</quantidade>
            <livro>
                <codigo>ARQ</codigo>
                <titulo>Introdução à Arquitetura e Design de Software</titulo>
                <tituloCurto>Arquitetura Java</tituloCurto>
                <nomeAutor>Sergio Lopes, Paulo Silveira, Guilherme Silveira, Nico Steppat, outros</nomeAutor>
                <valorEbook>29.90</valorEbook>
                <valorImpresso>79.90</valorImpresso>
            </livro>
        </item>
fev 24, 2017 12:57:17 AM net.sf.json.xml.XMLSerializer getType
INFO: Using default type string
ERROR 00:57:17.670 - Failed delivery for (MessageId: ID-IBM878-PE016V7B-49756-1487908634468-0-25 on ExchangeId: ID-IBM878-PE016V7B-49756-1487908634468-0-26). Exhausted after delivery attempt: 1 caught: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=tatgran@zxc.com&pedidoId=4298608&ebookId=ARQ with statusCode: 404

Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
[rota-pedidos      ] [rota-pedidos      ] [file://pedidos?delay=5s&noop=true                                             ] [        61]
[rota-http         ] [filter1           ] [filter[xpath{XPath: /item/formato[text()='EBOOK']}]                           ] [        11]
[rota-http         ] [setProperty3      ] [setProperty[ebookId]                                                          ] [         1]
[rota-http         ] [log2              ] [log                                                                           ] [         1]
[rota-http         ] [marshal1          ] [marshal[org.apache.camel.model.dataformat.XmlJsonDataFormat@15c066d9]         ] [         3]
[rota-http         ] [setHeader1        ] [setHeader[CamelHttpQuery]                                                     ] [         0]
[rota-http         ] [to4               ] [http4://localhost:8080/ebook/item                                             ] [         4]

Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
    Id                  ID-IBM878-PE016V7B-49756-1487908634468-0-26
    ExchangePattern     InOnly
    Headers             {breadcrumbId=ID-IBM878-PE016V7B-49756-1487908634468-0-19, CamelFileAbsolute=false, CamelFileAbsolutePath=C:\Users\IBM_ADMIN\Desktop\GitHub\ProjetosAlura\camel-alura\pedidos\3_pedido.xml, CamelFileContentType=text/xml, CamelFileLastModified=1487908281406, CamelFileLength=1400, CamelFileName=3_pedido.xml, CamelFileNameConsumed=3_pedido.xml, CamelFileNameOnly=3_pedido.xml, CamelFileParent=pedidos, CamelFilePath=pedidos\3_pedido.xml, CamelFileRelativePath=3_pedido.xml, CamelHttpQuery=clienteId=tatgran@zxc.com&pedidoId=4298608&ebookId=ARQ, CamelRedelivered=false, CamelRedeliveryCounter=0}
    BodyType            byte[]
    Body                {"formato":"EBOOK","quantidade":"1","livro":{"codigo":"ARQ","titulo":"Introdução à Arquitetura e Design de Software","tituloCurto":"Arquitetura Java","nomeAutor":"Sergio Lopes, Paulo Silveira, Guilherme Silveira, Nico Steppat, outros","valorEbook":"29.90","valorImpresso":"79.90"}}
]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=tatgran@zxc.com&pedidoId=4298608&ebookId=ARQ with statusCode: 404
    at org.apache.camel.component.http4.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:256) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:178) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.FilterProcessor.process(FilterProcessor.java:57) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Splitter.process(Splitter.java:104) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:442) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:214) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:178) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) [camel-core-2.16.0.jar:2.16.0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_111]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
ERROR 00:57:17.670 - Failed delivery for (MessageId: ID-IBM878-PE016V7B-49756-1487908634468-0-25 on ExchangeId: ID-IBM878-PE016V7B-49756-1487908634468-0-26). Exhausted after delivery attempt: 1 caught: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=tatgran@zxc.com&pedidoId=4298608&ebookId=ARQ with statusCode: 404

Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
[rota-pedidos      ] [rota-pedidos      ] [file://pedidos?delay=5s&noop=true                                             ] [        61]
[rota-http         ] [filter1           ] [filter[xpath{XPath: /item/formato[text()='EBOOK']}]                           ] [        11]
[rota-http         ] [setProperty3      ] [setProperty[ebookId]                                                          ] [         1]
[rota-http         ] [log2              ] [log                                                                           ] [         1]
[rota-http         ] [marshal1          ] [marshal[org.apache.camel.model.dataformat.XmlJsonDataFormat@15c066d9]         ] [         3]
[rota-http         ] [setHeader1        ] [setHeader[CamelHttpQuery]                                                     ] [         0]
[rota-http         ] [to4               ] [http4://localhost:8080/ebook/item                                             ] [         4]

Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
    Id                  ID-IBM878-PE016V7B-49756-1487908634468-0-26
    ExchangePattern     InOnly
    Headers             {breadcrumbId=ID-IBM878-PE016V7B-49756-1487908634468-0-19, CamelFileAbsolute=false, CamelFileAbsolutePath=C:\Users\IBM_ADMIN\Desktop\GitHub\ProjetosAlura\camel-alura\pedidos\3_pedido.xml, CamelFileContentType=text/xml, CamelFileLastModified=1487908281406, CamelFileLength=1400, CamelFileName=3_pedido.xml, CamelFileNameConsumed=3_pedido.xml, CamelFileNameOnly=3_pedido.xml, CamelFileParent=pedidos, CamelFilePath=pedidos\3_pedido.xml, CamelFileRelativePath=3_pedido.xml, CamelHttpQuery=clienteId=tatgran@zxc.com&pedidoId=4298608&ebookId=ARQ, CamelRedelivered=false, CamelRedeliveryCounter=0}
    BodyType            byte[]
    Body                {"formato":"EBOOK","quantidade":"1","livro":{"codigo":"ARQ","titulo":"Introdução à Arquitetura e Design de Software","tituloCurto":"Arquitetura Java","nomeAutor":"Sergio Lopes, Paulo Silveira, Guilherme Silveira, Nico Steppat, outros","valorEbook":"29.90","valorImpresso":"79.90"}}
]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=tatgran@zxc.com&pedidoId=4298608&ebookId=ARQ with statusCode: 404
    at org.apache.camel.component.http4.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:256) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:178) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.FilterProcessor.process(FilterProcessor.java:57) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Splitter.process(Splitter.java:104) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:442) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:214) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:178) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) [camel-core-2.16.0.jar:2.16.0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_111]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
INFO 00:57:17.673 - Chamando serviço SOAP <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<pedido>
    <id>4298608</id>
    <dataCompra>2013-12-05T18:10:07.963-02:00</dataCompra>
    <itens>
         <item>
            <formato>EBOOK</formato>
            <quantidade>1</quantidade>
            <livro>
                <codigo>TDD</codigo>
                <titulo>Test-Driven Development: Teste e Design no Mundo Real</titulo>
                <tituloCurto>TDD</tituloCurto>
                <nomeAutor>Mauricio Aniche</nomeAutor>
                <valorEbook>29.90</valorEbook>
                <valorImpresso>59.90</valorImpresso>
            </livro>
        </item>
        <item>
            <formato>EBOOK</formato>
            <quantidade>1</quantidade>
            <livro>
                <codigo>ARQ</codigo>
                <titulo>Introdução à Arquitetura e Design de Software</titulo>
                <tituloCurto>Arquitetura Java</tituloCurto>
                <nomeAutor>Sergio Lopes, Paulo Silveira, Guilherme Silveira, Nico Steppat, outros</nomeAutor>
                <valorEbook>29.90</valorEbook>
                <valorImpresso>79.90</valorImpresso>
            </livro>
        </item>
    </itens>
    <pagamento>
        <status>CONFIRMADO</status>
        <valor>89.80</valor>
        <titular>Tatiana Geraldina Granjeiro</titular>
        <email-titular>tatgran@zxc.com</email-titular>
    </pagamento>
</pedido>

WARN 00:57:17.673 - Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy@45722c0d for file: GenericFile[3_pedido.xml]
WARN 00:57:17.673 - Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy@45722c0d for file: GenericFile[3_pedido.xml]
fev 24, 2017 12:57:17 AM net.sf.json.xml.XMLSerializer getType
INFO: Using default type string
INFO 00:57:17.693 - ID-IBM878-PE016V7B-49756-1487908634468-0-33 
 <item>
            <formato>EBOOK</formato>
            <quantidade>1</quantidade>
            <livro>
                <codigo>SOA</codigo>
                <titulo>SOA aplicado: Integrando com web services e além</titulo>
                <tituloCurto>SOA</tituloCurto>
                <nomeAutor>Alexandre Saudate</nomeAutor>
                <valorEbook>29.90</valorEbook>
                <valorImpresso>59.90</valorImpresso>
            </livro>
        </item>
ERROR 00:57:17.702 - Failed delivery for (MessageId: ID-IBM878-PE016V7B-49756-1487908634468-0-33 on ExchangeId: ID-IBM878-PE016V7B-49756-1487908634468-0-34). Exhausted after delivery attempt: 1 caught: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=milhol@mnb.com&pedidoId=2451256&ebookId=SOA with statusCode: 404

Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
[rota-pedidos      ] [rota-pedidos      ] [file://pedidos?delay=5s&noop=true                                             ] [        25]
[rota-http         ] [filter1           ] [filter[xpath{XPath: /item/formato[text()='EBOOK']}]                           ] [        12]
[rota-http         ] [setProperty3      ] [setProperty[ebookId]                                                          ] [         2]
[rota-http         ] [log2              ] [log                                                                           ] [         0]
[rota-http         ] [marshal1          ] [marshal[org.apache.camel.model.dataformat.XmlJsonDataFormat@15c066d9]         ] [         3]
[rota-http         ] [setHeader1        ] [setHeader[CamelHttpQuery]                                                     ] [         0]
[rota-http         ] [to4               ] [http4://localhost:8080/ebook/item                                             ] [         5]

Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
    Id                  ID-IBM878-PE016V7B-49756-1487908634468-0-34
    ExchangePattern     InOnly
    Headers             {breadcrumbId=ID-IBM878-PE016V7B-49756-1487908634468-0-29, CamelFileAbsolute=false, CamelFileAbsolutePath=C:\Users\IBM_ADMIN\Desktop\GitHub\ProjetosAlura\camel-alura\pedidos\4_pedido.xml, CamelFileContentType=text/xml, CamelFileLastModified=1487898291484, CamelFileLength=806, CamelFileName=4_pedido.xml, CamelFileNameConsumed=4_pedido.xml, CamelFileNameOnly=4_pedido.xml, CamelFileParent=pedidos, CamelFilePath=pedidos\4_pedido.xml, CamelFileRelativePath=4_pedido.xml, CamelHttpQuery=clienteId=milhol@mnb.com&pedidoId=2451256&ebookId=SOA, CamelRedelivered=false, CamelRedeliveryCounter=0}
    BodyType            byte[]
    Body                {"formato":"EBOOK","quantidade":"1","livro":{"codigo":"SOA","titulo":"SOA aplicado: Integrando com web services e além","tituloCurto":"SOA","nomeAutor":"Alexandre Saudate","valorEbook":"29.90","valorImpresso":"59.90"}}
]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=milhol@mnb.com&pedidoId=2451256&ebookId=SOA with statusCode: 404
    at org.apache.camel.component.http4.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:256) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:178) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.FilterProcessor.process(FilterProcessor.java:57) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Splitter.process(Splitter.java:104) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:442) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:214) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:178) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) [camel-core-2.16.0.jar:2.16.0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_111]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
ERROR 00:57:17.702 - Failed delivery for (MessageId: ID-IBM878-PE016V7B-49756-1487908634468-0-33 on ExchangeId: ID-IBM878-PE016V7B-49756-1487908634468-0-34). Exhausted after delivery attempt: 1 caught: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=milhol@mnb.com&pedidoId=2451256&ebookId=SOA with statusCode: 404

Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
[rota-pedidos      ] [rota-pedidos      ] [file://pedidos?delay=5s&noop=true                                             ] [        25]
[rota-http         ] [filter1           ] [filter[xpath{XPath: /item/formato[text()='EBOOK']}]                           ] [        12]
[rota-http         ] [setProperty3      ] [setProperty[ebookId]                                                          ] [         2]
[rota-http         ] [log2              ] [log                                                                           ] [         0]
[rota-http         ] [marshal1          ] [marshal[org.apache.camel.model.dataformat.XmlJsonDataFormat@15c066d9]         ] [         3]
[rota-http         ] [setHeader1        ] [setHeader[CamelHttpQuery]                                                     ] [         0]
[rota-http         ] [to4               ] [http4://localhost:8080/ebook/item                                             ] [         5]

Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
    Id                  ID-IBM878-PE016V7B-49756-1487908634468-0-34
    ExchangePattern     InOnly
    Headers             {breadcrumbId=ID-IBM878-PE016V7B-49756-1487908634468-0-29, CamelFileAbsolute=false, CamelFileAbsolutePath=C:\Users\IBM_ADMIN\Desktop\GitHub\ProjetosAlura\camel-alura\pedidos\4_pedido.xml, CamelFileContentType=text/xml, CamelFileLastModified=1487898291484, CamelFileLength=806, CamelFileName=4_pedido.xml, CamelFileNameConsumed=4_pedido.xml, CamelFileNameOnly=4_pedido.xml, CamelFileParent=pedidos, CamelFilePath=pedidos\4_pedido.xml, CamelFileRelativePath=4_pedido.xml, CamelHttpQuery=clienteId=milhol@mnb.com&pedidoId=2451256&ebookId=SOA, CamelRedelivered=false, CamelRedeliveryCounter=0}
    BodyType            byte[]
    Body                {"formato":"EBOOK","quantidade":"1","livro":{"codigo":"SOA","titulo":"SOA aplicado: Integrando com web services e além","tituloCurto":"SOA","nomeAutor":"Alexandre Saudate","valorEbook":"29.90","valorImpresso":"59.90"}}
]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=milhol@mnb.com&pedidoId=2451256&ebookId=SOA with statusCode: 404
    at org.apache.camel.component.http4.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:256) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:178) ~[camel-http4-2.16.0.jar:2.16.0]
    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) ~[camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.FilterProcessor.process(FilterProcessor.java:57) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Splitter.process(Splitter.java:104) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:668) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:596) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:237) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:442) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:214) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:178) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) [camel-core-2.16.0.jar:2.16.0]
    at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) [camel-core-2.16.0.jar:2.16.0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_111]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_111]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
INFO 00:57:17.707 - Chamando serviço SOAP <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<pedido>
    <id>2451256</id>
    <dataCompra>2013-12-05T18:21:07.529-02:00</dataCompra>
    <itens>
       <item>
            <formato>EBOOK</formato>
            <quantidade>1</quantidade>
            <livro>
                <codigo>SOA</codigo>
                <titulo>SOA aplicado: Integrando com web services e além</titulo>
                <tituloCurto>SOA</tituloCurto>
                <nomeAutor>Alexandre Saudate</nomeAutor>
                <valorEbook>29.90</valorEbook>
                <valorImpresso>59.90</valorImpresso>
            </livro>
        </item>
     </itens>
    <pagamento>
        <valor>59.90</valor>
        <titular>Edgar Milho</titular>
        <email-titular>milhol@mnb.com</email-titular>
    </pagamento>
</pedido>
WARN 00:57:17.707 - Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy@45722c0d for file: GenericFile[4_pedido.xml]
WARN 00:57:17.707 - Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy@45722c0d for file: GenericFile[4_pedido.xml]

Conseguem me ajudar?

2 respostas
solução!

Olá Bruno tudo bem?

Olhando a stacktrace observei a seguinte mensagem:

org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8080/ebook/item?clienteId=milhol@mnb.com&pedidoId=2451256&ebookId=SOA with statusCode: 404

Aparentemente o que está ocorrendo é que ao tentar executar um request para http://localhost:8080/ebook/itemclienteId=milhol@mnb.com&pedidoId=2451256&ebookId=SOA

Exatamente com esses parâmetros, não está sendo encontrado nada e está retornando 404.

Verifique se esse endpoint é um endpoint válido e está acessível e retornando o que você espera. Caso contrário altere seu código para um endpoint valido.

Espero ter ajudado e bons estudos.

Obrigado Fernando, o endpoint estava incorreto.