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

[RabbitMQ] message not logged when Rabbit's message does not defined correlationId #9353

Closed
exalate-issue-sync bot opened this issue Oct 27, 2023 · 1 comment

Comments

@exalate-issue-sync
Copy link

How to reproduce:

  • create an API with a RabbitMQ endpoint and SSE entrypoint
  • Use RabbitMQ Management UI to publish a message in the exchange (without correlation_id property)

The Gateway won’t report the MessageLog and we can see the following error

Oct 27, 2023 10:58:19 AM freemarker.log._JULLoggerFactory$JULLogger error
SEVERE: Error executing FreeMarker template
FreeMarker template error:
The following has evaluated to null or missing:
==> metrics.getCorrelationId()  [in template "v4-message-metrics.ftl" at line 11, column 49]

Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??


FTL stack trace ("~" means nesting-related):
- Failed at: ${metrics.getCorrelationId()} [in template "v4-message-metrics.ftl" at line 11, column 47]

Copy link
Author

This issue will be fixed in versions 4.0.12, 4.2.0, 4.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants