[
https://issues.apache.org/jira/browse/QPID-1530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Gemmell updated QPID-1530:
---------------------------------
Attachment: QPID-1530_12dec2008.patch
I attach QPID-1530_12dec2008.patch which corrects this behaviour by moving the
stacktrace printout to the end of the handler method, then handling known cases
and returning before this point without printing the stacktrace.
The behaviour is now to catch known IOExceptions (try to connect to a server
which has no JMX server running) and SecurityExceptions (incorrect use details)
and display appropriate dialogues before returning, or to use the
message/causes from other types of exception to build a dialogue and provide a
stacktrace output.
> [JMX Console] AbstractAction handleException always prints throwable
> stacktrace
> -------------------------------------------------------------------------------
>
> Key: QPID-1530
> URL: https://issues.apache.org/jira/browse/QPID-1530
> Project: Qpid
> Issue Type: Bug
> Components: Java Management : JMX Console
> Affects Versions: M3, M4
> Reporter: Martin Ritchie
> Attachments: QPID-1530_12dec2008.patch
>
>
> Summary:
> handleException (AbstractAction:L:77) always prints the stackTrace of the
> Throwable that it receives as well as displaying an error dialog to the user.
> This behaviour is undesirable for exceptions such as connection failures.
> The only stackTraces that should be printed are due to programming failures
> such as incorrect handingling of data from the broker.
> The IOException thrown from JMXServerRegistry due to a incorrect
> username/password, for example, does not need to printed out. The dialog box
> to the user is sufficient.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.