Skip to content

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

@jakzal

Description

@jakzal

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions