i am trying to retrive a document file from application server and display it to user using BSP pages .
I had manage to retrive file and display it , but sometimes i come across system core dump when i made a request to fetch a file .
SYSTEM_CORE_DUMPED occured. P1=11 In BSP page .
The error occurred on the application server ....
The termination type was: RABAX_STATE
Form: IF_HTTP_ENTITY~SET_DATA of program CL_HTTP_ENTITY================CP
Form: ONLAYOUT of program CLO246OTW6PUXZMRQZQUUDJUQ0JDUCP
Form: %_ONLAYOUT of program CL_O246OTW6PUXZMRQZQUUDJUQ0JDUCP
Form: DO_REQUEST of program CL_BSP_PAGE===================CP
Form: ON_REQUEST of program CL_BSP_RUNTIME================CP
Form: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_BSP===============CP
Form: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP
My code lines are as follows.
l_cached_response->set_data( data = l_string
length = l_length ).
l_cached_response->set_header_field( name = if_http_header_fields=>content_type
value = 'application/doc' ).
l_cached_response->set_status( code = 200 reason = 'OK' ).
l_cached_response->server_cache_expire_rel( expires_rel = 250 ).
CONCATENATE runtime->application_url l_file_name '.doc' INTO l_DISPLAY_URL.
cl_http_server=>server_cache_upload( url = l_DISPLAY_URL
response = l_cached_response ).
Please give me your suggestion ,
Thanks in advance.