Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jakzal opened this issue Apr 10, 2021 · 0 comments

Comments

@jakzal
Copy link
Member

jakzal commented Apr 10, 2021

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant