cancel
Showing results for 
Search instead for 
Did you mean: 

Where can I view exceptions thrown at runtime?

Former Member
0 Kudos

Hi All,

(EP 7.0.18)

I am invoking an Adaptive Web Service model.

on doing this : modelObject().execute(); its falling into the catch statement. In my catch statement I have the following lines


wdComponentAPI.getMessageManager().reportException("Error: " +e.getMessage(), true);
wdComponentAPI.getMessageManager().reportException("Error: " +e.getCause(), true);

Where can I view these messages?

Regards

M

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

When you deploy and run the application you will be able see the error in browser itself.

If you are not getting the error in browser then try with this code:

try {

-


.modelObject().execute();

wdContext.nodeOutput().invalidate();

} catch (WDDynamicRFCExecuteException e) {

final Writer wr = new StringWriter();

final PrintWriter pw = new PrintWriter(wr);

e.printStackTrace(pw);

wdComponentAPI.getMessageManager().reportException(wr.toString(),false);

}

There are some settings that need to be set in the J2EE Engine inorder view the errors in the browser.

Thanks,

Jhansi

Answers (1)

Answers (1)

Former Member
0 Kudos

Sorry, I'm stupid!

I posted this message so quickly, and didn't notice it was printed at the bottom of the screen if I would have just scrolled down.

Former Member
0 Kudos

If you add a MessageArea to your screen you can control where they appear.

Armin