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

Can't retrieve custom Exception when using DistributedCommandBus #1091

Open
e-sen opened this issue May 8, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@e-sen
Copy link

commented May 8, 2019

Original Message

Hi,User the Spring Cloud DistributedCommandBus I can't get the true exception.

This is the demo

I will get org.axonframework.messaging.RemoteHandlingException, not my custom exception.

Env

AxonFrameworkVersion: 4.1.1
AxonFramework-Extension-SpringCloud Version: 4.1
JDK:Java8

Proposed Solution

Adapt the approach for the Axon Server Connector as described in #1079 for the DistributedCommandBus.

@smcvb

This comment has been minimized.

Copy link
Member

commented May 15, 2019

This is a correct assumption from your part @e-sen.
Currently, we only pull the causes out of your custom exception and populate those in the RemoteHandlingException#exceptionDescriptions field.

We've noticed this exact same problem for users of the Axon Server approach, for which we have an issue and solution in flight.
@abuijze describes the envisioned solution for your problem in the issue description, which I'd argue is also a good solution when users of the DistributedCommandBus.

However, that makes this issue not a Spring Cloud Extension specific problem, but a general DistributedCommandBus problem. As such, I will be closing this issue.

Regardless, thanks for filing it @e-sen!
I assume you'd agree with the proposed solution in Axon Framework issue #1079?

@smcvb smcvb closed this May 15, 2019

@smcvb smcvb self-assigned this May 15, 2019

@smcvb smcvb transferred this issue from AxonFramework/extension-springcloud May 15, 2019

@smcvb

This comment has been minimized.

Copy link
Member

commented May 15, 2019

Note, I've just transferred the issue from the Spring Cloud Extension repository to Axon Framework's main repository.

@smcvb smcvb reopened this May 15, 2019

@smcvb smcvb changed the title Spring Cloud DistributedCommandBus Can't Get The True Exception Can't retrieve custom Exception when using DistributedCommandBus May 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.