-
Notifications
You must be signed in to change notification settings - Fork 689
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
W-16629236: Cannot convert MessagingException to JSON using DW #14195
Conversation
--validate |
1 similar comment
--validate |
try { | ||
getDetailedFailuresMethod = RoutingResult.class.getMethod("getFailuresWithExceptionInfo"); | ||
detailedFailures = | ||
(Map<String, Pair<Error, EventProcessingException>>) getDetailedFailuresMethod.invoke(routingResult); | ||
(Map<String, Pair<Error, MuleException>>) getDetailedFailuresMethod.invoke(routingResult); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only cast to EventProcessingException that we have in the code, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the tests pass, please monitor anyway uber during a week to see if something related to this is failing that was not caught by hawk.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the only case it brings an issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is a DW issue (not reading the API fields only when you pass a mixed API / non API object) it should be fixed with only changing EventProcessingException (the mixed one) to MuleException (the API one). No extra code changes should be needed.
core/src/main/java/org/mule/runtime/core/privileged/routing/RoutingResult.java
Show resolved
Hide resolved
core/src/main/java/org/mule/runtime/core/internal/routing/result/CompositeRoutingException.java
Show resolved
Hide resolved
Map<String, Pair<Error, MuleException>> failedRoutesErrorWithExceptionMap = errorMap.entrySet().stream() | ||
.collect(Collectors | ||
.toMap(Entry::getKey, | ||
pair -> new Pair<>(pair.getValue().getFirst(), getRootMuleException(pair.getValue().getSecond())))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you adding getRootMuleException here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See previous comment.
--validate |
(cherry picked from commit 8bff808)
(cherry picked from commit 8bff808)
…14195) Signed-off-by: Alejandro Iannucci <4360246+aiannucci@users.noreply.github.com>
No description provided.