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

DELTASPIKE-1207: fix exception handling in DynamicMBeanWrapper.invoke() #66

Closed
wants to merge 5 commits into from

Conversation

famod
Copy link
Contributor

@famod famod commented Oct 18, 2016

Ok, this fix enables the transfer of a exception thrown by the MBean method to the client.
Tomorrow I'm going to update the JIRA ticket with some output examples.

Not sure about the logging removal, though. In my project we have a logging interceptor for MBeans which logs exceptions anyway so another log entry from DynamicMBeanWrapper just "pollutes" the logfile.
Exceptions aren't swallowed either, so ...

cause needs to be passed to MBeanException constructor, not e (and so
casting is needed after all)
- don't wrap MBeanException directly thrown by the MBean method
- document exception handling in @JmxManaged
@johnament
Copy link
Contributor

Could you squash the commits?

@famod
Copy link
Contributor Author

famod commented Oct 19, 2016

Well I guess I have to create an new branch in my repository then and I have to create a new pull request?
Can't you just squash my commits when merging this request?
http://stackoverflow.com/questions/11396069/squash-to-only-one-proper-commit-for-github-pull-request/36377439#36377439

@johnament
Copy link
Contributor

The ASF doesn't give us direct write access to the mirror, its a one way sync from git-wip-us to github. Besides, its generally not good practice to do that since it breaks the commit history. You don't need to create a new branch, just git push -f your changes when you have them squashed locally.

@asfgit asfgit closed this in ebb24ac Oct 28, 2016
OndroMih pushed a commit to OndroMih/deltaspike that referenced this pull request Dec 18, 2016
- don't wrap MBeanException directly thrown by the MBean method
- document exception handling in @JmxManaged

This closes apache#66
This closes apache#62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants