void showErrorMessage​ from StandalonePluginWorkspace no longer shower exception stack trace

Post here questions and problems related to oXygen frameworks/document types.
yuanyuan_li
Posts: 2
Joined: Wed Oct 30, 2024 12:22 am

void showErrorMessage​ from StandalonePluginWorkspace no longer shower exception stack trace

Post by yuanyuan_li »

So I am with oxgyen 26 and I realized that the call for void showErrorMessage​(java.lang.String message, java.lang.Throwable exception)
doesn't display any stack trace as described in the doc. And there is no "More details" link to be clicked.

Are there any changes to the API? What should I do to get the stack trace back?
image.png
image.png (5.25 KiB) Viewed 182 times
Attachments
image.png
image.png (5.25 KiB) Viewed 182 times
image.png
image.png (5.25 KiB) Viewed 182 times
Radu
Posts: 9273
Joined: Fri Jul 09, 2004 5:18 pm

Re: void showErrorMessage​ from StandalonePluginWorkspace no longer shower exception stack trace

Post by Radu »

Hi,
At some point the API used to present in the dialog a "More details" link which when pressed would show the entire stack trace of the error. Due to internal security related discussions we removed this functionality. So if you want a dialog to show both a message and a stack trace, you can either add the stack trace information to the message or implement your own Java swing based dialog.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply