cancel
Showing results for 
Search instead for 
Did you mean: 

Customization of 500 internal server error

Former Member
0 Kudos

Hi,

I have a requirement for customizing the 500 Internal server error page ( the page when we gets Null pointer Expetion or etc).

Can you tell me how can we achieve this.. Note that we need to do this for webdynpro Java errors.

Thanks,

Raju Bonagiri

Accepted Solutions (1)

Accepted Solutions (1)

former_member192434
Active Contributor
0 Kudos

Hi Raju,

Can you please let me know, what's version of your NWDS using, most likely "Customization of 500 internal" error be available only later version of 7.3.

To customize error message check this SAP note : 795699

Thanks

Anup

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Anup,

I think I've just said the very same information...

By the way, NWDS (developer studio) version is not relevant at all in this question.

Best Regards,

Ervin (SAP)

Former Member
0 Kudos

Hi Ervin,

Thanks for the confirmation..

Can we do any cutomization to the webdynpro frame work or any idea on which DC/ webdynpro application which we create the Internal server error page?

Thanks,

Raju Bonagiri

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Raju,

I am sorry but this is not supported at the moment. You can as mentioned set up the WD framework in the way, that it'll say only "500 Internal server error" without the full stack trace, so you'll not receive any complaints from the end users that they can see the detailed error stack trace of the internal server error, but one cannot customize the error coming from the WD runtime.

The response code 500 can be customized as per the mentioned note #795699, so most likely the solution for you would be the combination of the SAP notes #962319 and #795699.

Best Regards,

Ervin

p330068
Active Contributor
0 Kudos

Hi Raju

Please have a look at blog, it might help to customize the error page.

[Custom Error Messages in the Portal|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/18398] [original link is broken] [original link is broken] [original link is broken];

[How to customize the SAP Portal Error Pages|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/17411] [original link is broken] [original link is broken] [original link is broken];

Regards,

Arun Jaiswal

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Arun,

fyi, the first link you sent is also including the steps of the note #795699.

The second link is not relevant as it goes about Portal Runtime Error page customization.

Best Regards,

Ervin

p330068
Active Contributor
0 Kudos

Hi Ervin

Yes, I have update as this is known blog that will help to do the error page custmization in the portal.

This blog also includes other SAP notes that will definetly helps in some way.

Thanks for the information.

Regards

Arun Jaiswal

Answers (2)

Answers (2)

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear Raju,

I regret to inform you that this is not possible on 640/700. In general, this solution is available only for Business By Design, and most likely it'll be available only later for 7.30, but no plans are available currently. Perhaps it'll be downported to 7.20 but I cannot state this as an official statement either.

Officially this feature is not yet supported.

Default HTTP messages can be changed, but not the ones coming from the WD Runtime.

See the note for HTTP messages: Note: #795699 - Customizing default error messages for HTTP (from BC-JAS-WEB)

On WD Runtime you can switch off displaying the complete stack trace, but one cannot change it, see:

Note: #962319 - Detailed error messages with stack trace in Web Dynpro

Best Regards,

Ervin (SAP)

gill367
Active Contributor
0 Kudos

Hi

Instead of changing the 500 internal error page. you can catch the exception using the try catch block and collect the exception

information (details ) as logs in the server.

and stop the page to be displayed instead just display one error message which will say womething like "please contact administration"

Thanks

Sarbjeet Singh