xoom-examples icon indicating copy to clipboard operation
xoom-examples copied to clipboard

xoom-iddd-agilepm starts but fails with an exception when request is submitted

Open jakzal opened this issue 3 years ago • 0 comments

Following the README:

docker-compose up -d
mvn clean package        
java -jar target/xoom-iddd-agilepm-1.6.1-SNAPSHOT-jar-with-dependencies.jar
curl -X POST http://localhost:8080/products \
-H "Content-Type: application/json" \
--data-binary @- << EOF
        {
            "tenantId" : "tenant_id_1",
            "ownerId" : "owner_id_1" ,
            "name" : "product_name",
            "description" : "product_description",
            "hasDiscussion" : true
        }
EOF
16:58:58.233 [pool-2-thread-4] ERROR c.s.a.i.dispatch.ExchangeDispatcher - Entry 129:1:3:4 of dispatch id 3 will not be sent
java.lang.IllegalArgumentException: Not a supported object type: com.saasovation.agilepm.model.product.Events$ProductDefined
        at io.vlingo.xoom.lattice.exchange.Forwarder.ofObjectType(Forwarder.java:92) ~[xoom-iddd-agilepm-1.6.1-SNAPSHOT-jar-with-dependencies.jar:na]
        at io.vlingo.xoom.lattice.exchange.Forwarder.forwardToSender(Forwarder.java:54) ~[xoom-iddd-agilepm-1.6.1-SNAPSHOT-jar-with-dependencies.jar:na]
        at io.vlingo.xoom.lattice.exchange.camel.CamelExchange.send(CamelExchange.java:63) ~[xoom-iddd-agilepm-1.6.1-SNAPSHOT-jar-with-dependencies.jar:na]
        at com.saasovation.agilepm.infra.dispatch.ExchangeDispatcher.dispatch(ExchangeDispatcher.java:36) ~[xoom-iddd-agilepm-1.6.1-SNAPSHOT-jar-with-dependencies.jar:na]
        at io.vlingo.xoom.symbio.store.journal.inmemory.InMemoryJournal.lambda$dispatch$1(InMemoryJournal.java:215) [xoom-iddd-agilepm-1.6.1-SNAPSHOT-jar-with-dependencies.jar:na]
        at java.util.Arrays$ArrayList.forEach(Arrays.java:3880) ~[na:1.8.0_92]
        at io.vlingo.xoom.symbio.store.journal.inmemory.InMemoryJournal.dispatch(InMemoryJournal.java:215) [xoom-iddd-agilepm-1.6.1-SNAPSHOT-jar-with-dependencies.jar:na]
        at io.vlingo.xoom.symbio.store.journal.inmemory.InMemoryJournal.appendAllWith(InMemoryJournal.java:152) [xoom-iddd-agilepm-1.6.1-SNAPSHOT-jar-with-dependencies.jar:na]
        at io.vlingo.xoom.symbio.store.journal.inmemory.InMemoryJournalActor.appendAllWith(InMemoryJournalActor.java:73) ~[xoom-iddd-agilepm-1.6.1-SNAPSHOT-jar-with-dependencies.jar:na]
        at io.vlingo.xoom.symbio.store.journal.Journal__Proxy.lambda$appendAllWith$c6086899$1(Journal__Proxy.java:80) ~[xoom-iddd-agilepm-1.6.1-SNAPSHOT-jar-with-dependencies.jar:na]
        at io.vlingo.xoom.actors.LocalMessage.internalDeliver(LocalMessage.java:121) ~[xoom-iddd-agilepm-1.6.1-SNAPSHOT-jar-with-dependencies.jar:na]
        at io.vlingo.xoom.actors.LocalMessage.deliver(LocalMessage.java:53) ~[xoom-iddd-agilepm-1.6.1-SNAPSHOT-jar-with-dependencies.jar:na]
        at io.vlingo.xoom.actors.plugin.mailbox.concurrentqueue.ConcurrentQueueMailbox.run(ConcurrentQueueMailbox.java:108) ~[xoom-iddd-agilepm-1.6.1-SNAPSHOT-jar-with-dependencies.jar:na]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_92]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_92]
        at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_92]

jakzal avatar Apr 10 '21 16:04 jakzal