Skip to Content
avatar image
Former Member

Where can I view exceptions thrown at runtime?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 02, 2009 at 03:40 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 02, 2009 at 03:43 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded