on 07-16-2007 6:31 AM
Hi,
I have a Web dypro for java code to connect to an RFC .
it looks like this :
try {
wdContext.currentRsbb_Nodes_Read_With_Filter_InputElement().modelObject().execute();
}
catch (WDDynamicRFCExecuteException wde) {
msgMgr.reportException("Problem", true);
} catch (Exception e) {
msgMgr.reportException(e.getMessage(), true);
}
I have two problem :
When the user does not exist in the R3 system or when the JCO failed to connect this user [SSO problems]
The Pages is shown with an error message that are not understood to a simple user ...
how can I catch those errors and display my one messages based on the actual cause of the errors.
just to be clarify . even thought I have a try catch in the code , in a debug I can see the program are reaching to the WDDynamicRFCExecuteException but ... it display :
"500 Internal Server Error .... "
Or
"Could not create JCOClientConnection for logical System..."
Thanks in advance
Hadar
HI,
To see the error,
catch(Exception e)
{
msgMngr.reportException("Exception is : "+e,true);
}
Regards
Fahad Hamsa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fahad,
I tried that as you can see in the code I have attached ...
in no circumstances I get the error message , only
"500 Internal Server Error
Web Dynpro Container/SAP J2EE Engine/6.40
Failed to process request. Please contact your system administrator. .... "
while writing this message .. I got an idea of creating new iview ... something like ErroriView that will display when an error message is pop ... I'm currently working in that direction and I'll update ...
Thanks,
Hadar
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.