on 03-07-2008 5:14 AM
Hi All,
I m working on webdynpro application. when ever error occurs at runtime , the entire error log is diplayed on browser thus showing code details to user . how cn i avoid showing error log in browser ?? i hv read about logging , will it help to resolve my problem?? if yes thn how ?? please send me simple steps to follow than web links. Thnx in advance.
Kavita
Hi Kavita,
Let me make it clear about logging:
Logging and tracing are used to debug the code at runtime, these logs are stored in server and not visible to end user in the browser.
I am sure that the problem you are facing is entirely different from this, problem is the way you have coded:
- You should handle the exceptions using try and catch blocks. For example if you are executing RFC then you should catch WDDynamicRFCExecuteException and then you can log the details to standard logger.
- But NullpointerException or ArrayIndexOutofBoundException etc...these kind of exceptions you should not catch but you should code properly like checking for not null condition or checking index size.
If you handle your code well end user wont see any log traces in the browser. If you are still not clear paste the log printed in the browser so that we can help further.
Regards
Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kavita,
You are getting the runtime exception for eg. NullPointerException on screen describing the component that is causing the error with the line number.
These things should be handled programatically using the try catch block.
If you ask is there a way to shorten this default exception that it displays on the screen and change it as per your requirement then the answer is no.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kavita
This is the functionality of webdynpro to display the error message on the browser,which helps the developer to check where the error is happening and probable reason of the error, there is no option available to clear these messages.
Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Go through this
Enabling Logging for an Application http://help.sap.com/saphelp_nw70/helpdata/en/c6/cc218997893949900a1eafca819246/content.htm
How to Write Useful Log and Trace Messages
http://help.sap.com/saphelp_nw70/helpdata/en/f4/d1e6418b7eca17e10000000a155106/content.htm
Regards
Ayyapparaj
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.