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

Required headers are not guaranteed to be set if sending fails. #2

Open
cer opened this issue Oct 23, 2022 · 0 comments
Open

Required headers are not guaranteed to be set if sending fails. #2

cer opened this issue Oct 23, 2022 · 0 comments

Comments

@cer
Copy link
Contributor

cer commented Oct 23, 2022

java.lang.RuntimeException: No such header: ID in this message io.eventuate.tram.messaging.common.MessageImpl@17e776b6[payload={"orderId":1,"orderTotal":{"amount":10},"customerId":1},headers={command_saga_id=0000018405cd8d26-d63484d82a2d0000, PARTITION_ID=0400d7eb-44b2-4187-a4a4-001a3b107d1e, DATE=Sun, 23 Oct 2022 17:04:28 GMT, b3=3480cc572b71db11-4efa01b8bfcb2e6b-1, command_type=io.eventuate.examples.tram.sagas.ordersandcustomers.customers.api.messaging.commands.ReserveCreditCommand, command_reply_to=io.eventuate.examples.tram.sagas.ordersandcustomers.orders.service.CreateOrderSaga-reply, DESTINATION=customerService, command_saga_type=io.eventuate.examples.tram.sagas.ordersandcustomers.orders.service.CreateOrderSaga, command__destination=customerService}]
        at io.eventuate.tram.messaging.common.MessageImpl.getRequiredHeader(MessageImpl.java:40) ~[eventuate-tram-messaging-0.31.0.RELEASE.jar!/:na]
        at io.eventuate.tram.messaging.common.MessageImpl.getId(MessageImpl.java:52) ~[eventuate-tram-messaging-0.31.0.RELEASE.jar!/:na]
        at io.eventuate.tram.spring.cloudsleuthintegration.producer.TracingMessageProducerInterceptor.postSend(TracingMessageProducerInterceptor.java:46) ~[eventuate-tram-spring-cloud-sleuth-tram-producer-0.2.1.RELEASE.jar!/:na]
        at io.eventuate.tram.messaging.producer.common.MessageProducerImpl.lambda$postSend$1(MessageProducerImpl.java:32) ~[eventuate-tram-messaging-producer-common-0.31.0.RELEASE.jar!/:na]
        at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) ~[na:na]
        at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) ~[na:na]
        at io.eventuate.tram.messaging.producer.common.MessageProducerImpl.postSend(MessageProducerImpl.java:32) ~[eventuate-tram-messaging-producer-common-0.31.0.RELEASE.jar!/:na]
        at io.eventuate.tram.messaging.producer.common.MessageProducerImpl.send(MessageProducerImpl.java:56) ~[eventuate-tram-messaging-producer-common-0.31.0.RELEASE.jar!/:na]
        at io.eventuate.tram.messaging.producer.common.MessageProducerImpl.lambda$send$2(MessageProducerImpl.java:38) ~
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