Dump - Access using NULL object reference is not possible!!!
Hi,
I'm using the BCS class for sending HTM format email so i use the below code for that its working,
DATA: gr_document TYPE REF TO cl_document_bcs,
gr_document = cl_document_bcs=>create_document(
i_type = 'HTM'
i_text = t_html
i_importance = '5'
i_subject = gc_subject ).
Next task is to send the image so i'm creating an another object to the same class, below code
*Image from MIME
DATA: o_mr_api TYPE REF TO if_mr_api.
DATA is_folder TYPE boole_d.
DATA l_img1 TYPE xstring.
DATA l_img2 TYPE xstring.
DATA l_loio TYPE skwf_io.
DATA: lo_document TYPE REF TO cl_document_bcs.
IF o_mr_api IS INITIAL.
o_mr_api = cl_mime_repository_api=>if_mr_api~get_api( ).
ENDIF.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/tick.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img1
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/Delete.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img2
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
*Convert XSTRING to ITAB
DATA :lt_hex1 TYPE solix_tab,
lt_hex2 TYPE solix_tab,
ls_hex LIKE LINE OF lt_hex1,
lv_img1_size TYPE sood-objlen,
lv_img2_size TYPE sood-objlen.
CLEAR : lt_hex1, lt_hex2, ls_hex, lv_img1_size, lv_img2_size.
WHILE l_img1 IS NOT INITIAL.
ls_hex-line = l_img1.
APPEND ls_hex TO lt_hex1.
SHIFT l_img1 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
WHILE l_img2 IS NOT INITIAL.
ls_hex-line = l_img2.
APPEND ls_hex TO lt_hex2.
SHIFT l_img2 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
*Findthe Size of the image
DESCRIBE TABLE lt_hex1 LINES lv_img1_size.
DESCRIBE TABLE lt_hex2 LINES lv_img2_size.
lv_img1_size = lv_img1_size * 255.
lv_img2_size = lv_img2_size * 255.
*Attach Images
clear: lo_document.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img1' " Attachment Title
i_attachment_size = lv_img1_size " Size of Document Content
i_att_content_hex = lt_hex1 " Content (Binary)
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img2' " Attachment Title
i_attachment_size = lv_img2_size " Size of Document Content
i_att_content_hex = lt_hex2 " Content (Binary)
but it throws the dump " Access using NULL object reference is not possible" when i tries to access for method add_attachment...
Thanks,
Siva
Yes there is commit work after that, Below code
gr_document = cl_document_bcs=>create_document(
i_type = 'HTM'
i_text = t_html
i_importance = '5'
i_subject = gc_subject ).
*Image from MIME
DATA: o_mr_api TYPE REF TO if_mr_api.
DATA is_folder TYPE boole_d.
DATA l_img1 TYPE xstring.
DATA l_img2 TYPE xstring.
DATA l_loio TYPE skwf_io.
DATA: lo_document TYPE REF TO cl_document_bcs.
IF o_mr_api IS INITIAL.
o_mr_api = cl_mime_repository_api=>if_mr_api~get_api( ).
ENDIF.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/tick.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img1
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/Delete.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img2
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
*Convert XSTRING to ITAB
DATA :lt_hex1 TYPE solix_tab,
lt_hex2 TYPE solix_tab,
ls_hex LIKE LINE OF lt_hex1,
lv_img1_size TYPE sood-objlen,
lv_img2_size TYPE sood-objlen.
CLEAR : lt_hex1, lt_hex2, ls_hex, lv_img1_size, lv_img2_size.
WHILE l_img1 IS NOT INITIAL.
ls_hex-line = l_img1.
APPEND ls_hex TO lt_hex1.
SHIFT l_img1 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
WHILE l_img2 IS NOT INITIAL.
ls_hex-line = l_img2.
APPEND ls_hex TO lt_hex2.
SHIFT l_img2 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
*Findthe Size of the image
DESCRIBE TABLE lt_hex1 LINES lv_img1_size.
DESCRIBE TABLE lt_hex2 LINES lv_img2_size.
lv_img1_size = lv_img1_size * 255.
lv_img2_size = lv_img2_size * 255.
*Attach Images
create object lo_document type cl_document_bcs.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img1' " Attachment Title
i_attachment_size = lv_img1_size " Size of Document Content
i_att_content_hex = lt_hex1 " Content (Binary)
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img2' " Attachment Title
i_attachment_size = lv_img2_size " Size of Document Content
i_att_content_hex = lt_hex2 " Content (Binary)
"Add document to send request
CALL METHOD gr_send_request->set_document( gr_document ).
TRY.
CALL METHOD gr_send_request->SET_SEND_IMMEDIATELY
EXPORTING
I_SEND_IMMEDIATELY = 'X'.
* CATCH CX_SEND_REQ_BCS INTO BCS_EXCEPTION .
**Catch exception here
ENDTRY.
DATA: LO_SENDER TYPE REF TO IF_SENDER_BCS VALUE IS INITIAL.
TRY.
LO_SENDER = CL_SAPUSER_BCS=>CREATE( SY-UNAME ). "sender is the logged in user
* Set sender to send request
gr_send_request->SET_SENDER(
EXPORTING
I_SENDER = LO_SENDER ).
* CATCH CX_ADDRESS_BCS.
****Catch exception here
ENDTRY.
"Send email
CALL METHOD gr_send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = gv_sent_to_all ).
IF gv_sent_to_all = 'X'.
WRITE 'Email sent!'.
ENDIF.
"Commit to send email
COMMIT WORK.
"Exception handling
CATCH cx_bcs INTO gr_bcs_exception.
WRITE:
'Error!',
'Error type:',
gr_bcs_exception->error_type.
ENDTRY.
Similar Messages
-
RFC to HTTP Interface - Access using NULL object reference is not possible
Hi All,
I am working on a Interface RFC to HTTP where in I am sending the data to a third party system.
Using PI 7.3 and Adapter type XI to send this data.
I am getitng an error Short dump occured when executing message in qRFC queue <Queuename>: Date/time 02.12.2011 08:44:57, user XXXXX, runtime error: Access using NULL object reference is not possible.
<SAP:Code area="INTERNAL">QRFC_SYSTEM_DUMP</SAP:Code>
I am entering the parameters such as target host,service number,path correctly with addrseing type as URL.
The message is failing in the call adapter step with the above error.
There are no messages stuck in SMQ2 as well.
Now on the other if I use the adapter type HTTP_AAE the messages is getting successfully delivered with the same parameters mentioned above.But as we know it is a plain adapter and will not have the SOAP envelope.
We would want to send the data using the XI adapter.
Any idea as why this issue is happening?
Helpful answers will be rewarded points.
Thanks & Regards,
RKHi,
please go through below threads,
Error for all the interfaces
Access via NULL object reference not possible., error key: RFC_ERROR_SYSTEM
hope it will help you
regards,
ganesh -
Access vis NULL object reference.
Hi experts,
I have a component having context->node1->usernr
usernr is one of the attributes in node1.
node1 has cardinality 0..n
I have two views, view1 and view2 in the window.
both the view contexts have mapping with node1 of component controller context.
View1 has a table that shows usernr as a column and view2 has an inputfield, the value of which is bound to usernr.
On clicking a button in view1, I am creating an element of node1 and binding it to the node. this os working fine. Also I am firing the outplug of view1 which is connected to inplug of view2.
I debugged the view2 and it is going upto the HANDLEIN_view2_inputplug
Then I just get this dump "Access via 'NULL' object reference not possible."
Error in the ABAP Application Program
The current ABAP program "CL_WDR_VIEW_ELEMENT_ADAPTER===CP" had to be terminated because it has come across a statement that unfortunately cannot be executed.
Error analysis
You attempted to use a 'NULL' object reference (points to 'nothing') access a component (variable: " ").
An object reference must point to an object (an instance of a class) before it can be used to access components.
Either the reference was never set or it was set to 'NULL' using the CLEAR statement.
Information on where terminated
Termination occurred in the ABAP program "CL_WDR_VIEW_ELEMENT_ADAPTER===CP" - in "GET_ATTRIBUTE_EXTERNAL".
The main program was "SAPMHTTP ".
In the source code you have the termination point in line 10 of the (Include) program "CL_WDR_VIEW_ELEMENT_ADAPTER===CM00Q".
Source Code Extract
Line SourceCde
1 method get_attribute_external.
2
3 data data_container type ref to cl_wdr_data_container.
4 data attribute type wdr_attribute_pointer.
5 data client_component type ref to cl_wdr_client_component.
6
7 attribute-attribute_name = i_binding->attribute_name.
8 attribute-element ?= get_bound_element( i_binding ).
9 client_component ?= attribute-element->node->controller->component->data_container_superio
11 data_container = client_component->data_container.
12
13 e_value = data_container->get_and_format( attribute = attribute ).
14
15 endmethod.
Error is at line 9
Chosen variables
Name
Val.
No. 21 Ty. METHOD
Name CL_WDR_VIEW_ELEMENT_ADAPTER=>GET_ATTRIBUTE_EXTERNAL
I_BINDING
0000000C
D0000002
E_VALUE
SY-REPID
CL_WDR_VIEW_ELEMENT_ADAPTER===CP
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
4455455544554444445544455453334522222222
3CF742F6957F5C5D5E4F1410452DDD3000000000
%_DUMMY$$
0000
0000
2222
0000
ATTRIBUTE-ATTRIBUTE_NAME
USERNR
000000
000000
554545
5352E2
I_BINDING->ATTRIBUTE_NAME
USERNR
000000
=======================================================================
The thing that is worrying me is that nothing like this was happening at all earlier. I tested the application quite a few number of times and then suddenly this started. Since then it has not stopped.
I am unable to understand the reason for this. Pl help.
Regards,
Reema.
Edited by: Reema Shahbazkar on Jun 12, 2008 3:28 AMHey Reema,
Were you able to resolve this error. I am facing exactly the same issue currently . My primary data container nodes belong to the component controller. I did verify the same for any change in the cardinality and dont see anythign thats changed which could be impacting my views. In any case, I had kept the cardinality as 0...n initially to be safe since there cud be scenarios where no values can exist for the same at runtime.
Please do let me know how you happened to resolve this.
Thanks,
Puja. -
Error : Access not possible using "null" objects reference
Hello.
i am working with a zbapi.
i called a external email program in this bapi,everything is working fine over here.
In webdynpro java they mapped my bapi and starting working from there.
every functionality is working fine but regarding this email stuff it is showing an error as access not possible using null objects reference.
where could be the possible error.
is it in webdynpro or in abap side.Raghu,
You are right. When it comes from the WD Java, may be you are not passing any value at all. You can trace it by these ways.
1. Check it using SE37, make sure everyhting is fine.
2. Print all the values that you are passing to the RFC in the execute RFC method().
3. using ST05 transaction in R/3, enable RFC and SQL trace, check what is passing in between web dynpro and R/3.
Moreover paste your error message here.
Thanks,
Raj. -
Hi all ,
Im getting the below error , actually recently i created my own custom table zstudent, later i wrote select query to fetch data from the same and dump at internal table and then bind this to the table node.
But im getting below error, even i removed the select query still same error is occuring.
Error when processing your request
What has happened?
The URL http://********00.*****b.com:8000/sap/bc/webdynpro/sap/zdemo_student/ was not called due to an error.
Note
The following error text was processed in the system IDS : Access via 'NULL' object reference not possible.
The error occurred on the application server axsids00_IDS_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: WDDOINIT of program /1BCWDY/YUSM2Q74A826Y0JY1I4V==CP
Method: IF_WDR_COMPONENT_DELEGATE~WD_DO_INIT of program /1BCWDY/YUSM2Q74A826Y0JY1I4V==CP
Method: DO_INIT of program CL_WDR_DELEGATING_COMPONENT===CP
Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP
Method: INIT_CONTROLLER of program CL_WDR_COMPONENT==============CP
Method: INIT of program CL_WDR_CONTROLLER=============CP
Method: INIT of program CL_WDR_CLIENT_COMPONENT=======CP
Method: INIT of program CL_WDR_CLIENT_APPLICATION=====CP
Method: IF_WDR_RUNTIME~CREATE of program CL_WDR_MAIN_TASK==============CP
Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CPThanks Rama,
Acutally i accidentally commented the lo_nd_student = wd_context ....etc
this line was commented .
i have one small requirement to fetch data from local customised table and fill the same to internal table and bind that to table node.
my table node is student having attributes as name , city and number , all are of type strings.
now i created one custom table zstudent having ID - char of length 10,
name of type string
city of type string
num of type string
i have inserted records
but when i use select query to fill data from this zstudent to my internal table of type lt_student type wd_this->elements_student ,
im getting same above error. -
Hi Guru's,
i am new for WebDynpro programming.I am trying to use select-options tutorial.
System showing select options and table binding on screen when i test the application.
I have using search button to get the value which user will i/p.for that onaction method created, i have writen the code to get the values which user will input.
Method given below is of componentcontroler
method wddoinit .
data: lt_range_table type ref to data,
rt_range_table type ref to data,
read_only type abap_bool,
lt_range_table1 type ref to data.
data: lr_componentcontroller type ref to ig_componentcontroller,
l_ref_cmp_usage type ref to if_wd_component_usage.
create the used component
l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).
if l_ref_cmp_usage->has_active_component( ) is initial.
l_ref_cmp_usage->create_component( ).
endif.
wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
wd_this->m_handler->set_global_options(
i_display_btn_cancel = abap_false
i_display_btn_check = abap_false
i_display_btn_reset = abap_false
i_display_btn_execute = abap_false ).
lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'S_CARR_ID' ).
wd_this->m_handler->add_selection_field( i_id = 'CARRID'
it_result = lt_range_table i_read_only = read_only ).
call method wd_this->m_handler->add_horizontal_divider
exporting
i_id = 'LINE'.
endmethod.
Method given below is of VIEW.
method ONACTIONSEARCH .
DATA: NODE_FLIGHTS TYPE REF TO IF_WD_CONTEXT_NODE.
DATA: RT_CARRID TYPE REF TO DATA.
DATA: ISFLIGHT TYPE TABLE OF SFLIGHT.
DATA: WSFLIGHT TYPE SFLIGHT.
FIELD-SYMBOLS: <FS_CARRID> TYPE TABLE.
Retrieve the data from the select option
RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
Assign it to a field symbol
ASSIGN RT_CARRID->* TO <FS_CARRID>.
CLEAR ISFLIGHT. REFRESH ISFLIGHT.
SELECT * INTO CORRESPONDING FIELDS OF TABLE ISFLIGHT FROM SFLIGHT
WHERE CARRID IN <FS_CARRID>.
NODE_FLIGHTS = WD_CONTEXT->GET_CHILD_NODE( NAME = `FLIGHTS` ).
NODE_FLIGHTS->BIND_ELEMENTS( ISFLIGHT ).
endmethod.
while executing appln. error is trigger on line given below
RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
Err: The following error text was processed in the system BCD : Access via 'NULL' object reference not possible.
please help me out on this issue.
Thanks and Regards
Vinayak Sapkalhi ,
The attribute M_HANDLER is an attirbute of component controller (as told by your post) and so you cannot access it as you have done it.
You will have to access it as .
WD_COMP_CONTROLLER->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD(I_ID = 'S_CARR_ID' ).
Try doing it.
Or else , if you have created a similar attribute in your view itself , then it is "INITIAL" and hence you are getting the dump.
You will have to assign the view attribute "M_HANDLER" with the value of your component controller attribute "M_HANDLER" ,because all the initializations are done in WDDOINIT of comp controller and on component controller atribute "M_HANDLER".
Thanks,
aditya. -
IC WEBCLIENT: Access via 'NULL' object reference not possible
Hi,
Iam working in ABAP, and learning CRM ABAP on CRM5.0 IDES Demo system I was trying to create a new WebIC by copying one view from CRM_IC to ZCRM_IC bsp application. Following are the steps I following according to Cook book documentation.
1. I copied BuPaDisplayCustomer view and controller from CRM_IC to ZCRM_IC from
BSP_WD_WORKBENCH by selecting CRM_IC and runtime profile = 'DEFAULT'.
2. Created a runtime profile from SPRO->CRM->IC Webclient->Customer specific modifications->Define
runtime profile.
3. Copied the 'DEFAULT' runtime profile to my new profile 'Z_COOKBOOK'. Assign 'ZCRM_IC' by
clicking on 'Controller and substitues'.
BSP Replaced Controller BSP ReplacmentController
CRM_IC BuPaMoreContactView Z_CRM_IC BuPaMoreContactView
4. Define IC Webclient profile:
SPRO->CRM->IC Webclient->Define IC Webclient profile->Copy the DEFAULT profile and assign it to
'Z_COOKBOOK',
5. Assigned the Webclient profile to the user from t-code 'PPOMW'. Selected 'USER' from the
existing 'Position' and Goto->Detail object->Enhanced obj descrption.Selected IC webclient from the
list and created Infotype assigned Webclient profile 'Z_COOKBOOK'.
6. Execute the ZCRM_IC from SE80 by rightclick and Test. Here is my problem,Iam receiving the
following error in the webpage.
The following error text was processed in the system CR7 :
Access via 'NULL' object reference not possible.
The error occurred on the application server CR7_01 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: SET_MODELS of program CL_CRM_IC_BUPADISPCUSTOME=====CP
Method: SET_MODELS of program CL_CRM_IC_BUPADISPCUSTOME=====CP
Method: SET_MODELS of program CL_CRM_IC_BUPADISPCUSTOME_IMPLCP
Method: DO_REQUEST of program CL_BSP_WD_VIEW_CONTROLLER=====CP
Method: DO_REQUEST of program CL_BSP_CTRL_ADAPTER===========CP
Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_BSP===============CP
Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP
I check the CRM services and all are active, using IE8 web browser. I just copied the view and controller
from CRM_IC into Custom BSP application i.e., ZCRM_IC.
Above error is occuring even If i run the standard CRM_IC BSP application and select one simple view.
from SE80.
Not sure whether any additional configuration or any special roles to be assigned to the Webclient profile.
Thanks,
Venn.hello swapna,
we are facing the same error while accessing the leave request link, all jco are testing fine, i checked backend connection and its fine, please tel me how did u resolved that issue,
Thanks in advance.....
ajay -
WebDynpro Abap MSS: Access via "NULL" object reference not possible
hi,
My customer send me the following link to Appraisal Documents (Manager) MSS
http://server.sap.portal:1810/sap/bc/webdynpro/sap/HAP_START_PAGE_POWL_UI_MSS/
http://a.imageshack.us/img685/5959/mss3.jpg (logon in Costumer SAP System)
http://a.imageshack.us/img225/4008/mss4.jpg (Appraisal Documents (Manager) MSS run succesful)
Link that also run by the SICF in my customer is correct.
But when I run in my SAP System see the following error
http://a.imageshack.us/img715/5355/mss1j.jpg (SCIF in my SAP System)
http://a.imageshack.us/img44/5346/mss2.jpg (SCIF - test service)
http://a.imageshack.us/img840/1677/mss2b.jpg (Error, without window logon)
<b> Access via "NULL" object reference not possible</b>
Other question is: In what part of MSS is this option? because the ESS is in Career and Jobs / Appraisals Documents
http://a.imageshack.us/img683/9900/careerjob3.jpg (Employee Self Service / Career and Jobs / Appraisals Documents)
thanks for your posts and answer
IvanHello
The most important information is (again) missing: which object reference is initial ("NULL")?
The ABAP dump will tell you.
Below I show an example how this can happen (and be avoided):
LOOP AT lt_accountings INTO ls_accounting.
lo_po_account ?= ls_accounting-accounting.
ENDLOOP.
" QUESTION: Are you sure that lo_po_account hold an instance ???
" If LO_PO_ACCOUNT is empty the following statement will give you the dump.
ls_mepoaccounting = lo_po_account->get_data( ).
" And that is how to avoid this (at least the dump. Whether your logic is still ok is another matter...)
CHECK ( lo_po_account IS BOUND ).
ls_mepoaccounting = lo_po_account->get_data( ).
Regards
Uwe -
Getting error on Portal : Access via 'NULL' object reference not possible
hi friends,
While executing a bapi,I am getting this error : Access via 'NULL' object reference not possible., error key: RFC_ERROR_SYSTEM_FAILURE
I am calling a bapi with only one required parameter from Portal as per the design of the bapi and the bapi itself is calling some other functions internally.
I a using ECC 5.00 i,e. EA-HR 5.00. On SDN it is suggested to Apply OSS Note 1018036. But it is applicable to EA-HR 6.00 and subsequent releases,I guess.
Need your suggestions and also need to know if the above Note can be applied to EA-HR 5.00.
P.S: Points would be assigned, thanks is advance.
Regards,
Sudeep DasHi,
ESS Personal information scenarios
Reason and Prerequisites
In case record is not modified successfully it should discard the
trial.Due to program error this was not happening correctly
Solution
Code changes were done in ESS adapter to handle this scenario
Hope this helps
Regards
Krishna -
RFC_ERROR_SYSTEM_FAILURE - - Access via NULL object reference not possible
Hi,
RFC was working fine , suddenly starting showing error below ( not sure if i changed anything ) -
Rest of the RFC's in the same app are working fine.
The error throwed is -
com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Access via NULL object reference not possible., error key: RFC_ERROR_SYSTEM_FAILURE
Full error details -
com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Access via NULL object reference not possible., error key: RFC_ERROR_SYSTEM_FAILURE
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:101)
at com.sap.xss.per.fc.persinfo.FcPersInfo.onCleanup(FcPersInfo.java:561)
at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfo.onCleanup(InternalFcPersInfo.java:798)
at com.sap.xss.per.fc.persinfo.FcPersInfoInterface.onCleanup(FcPersInfoInterface.java:246)
at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfoInterface.onCleanup(InternalFcPersInfoInterface.java:299)
at com.sap.xss.per.fc.persinfo.wdp.InternalFcPersInfoInterface$External.onCleanup(InternalFcPersInfoInterface.java:459)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.cleanUp(FPMComponent.java:644)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.access$1000(FPMComponent.java:78)
at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.exitCalled(FPMComponent.java:963)
at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.exitCalled(FPMComponent.java:1134)
at com.sap.pcuigp.xssfpm.wd.BackendConnections.wdDoExit(BackendConnections.java:124)
at com.sap.pcuigp.xssfpm.wd.wdp.InternalBackendConnections.wdDoExit(InternalBackendConnections.java:228)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingCustomController.doExit(DelegatingCustomController.java:77)
at com.sap.tc.webdynpro.progmodel.controller.Controller.exitController(Controller.java:180)
at com.sap.tc.webdynpro.progmodel.controller.Controller.exit(Controller.java:154)
at com.sap.tc.webdynpro.progmodel.controller.Component.exitController(Component.java:251)
at com.sap.tc.webdynpro.progmodel.controller.Controller.exit(Controller.java:154)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.exit(ClientComponent.java:219)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.exit(ClientApplication.java:474)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.destroy(ClientApplication.java:527)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.destroy(ApplicationSession.java:398)
at com.sap.tc.webdynpro.clientserver.session.ClientWindow.destroyApplicationSession(ClientWindow.java:235)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doDestroyApplication(ClientSession.java:1003)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doSessionManagementPostProcessing(ClientSession.java:789)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:264)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:219)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Caused by: com.sap.aii.proxy.framework.core.BaseProxyException: Access via 'NULL' object reference not possible., error key: RFC_ERROR_SYSTEM_FAILURE
at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:150)
at com.sap.xss.per.model.mac.HRXSS_PER_MAC.hrxss_Per_Cleanup(HRXSS_PER_MAC.java:331)
at com.sap.xss.per.model.mac.Hrxss_Per_Cleanup_Input.doExecute(Hrxss_Per_Cleanup_Input.java:137)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)
... 43 more
Thanks,
Regards,
AnkitHello Vaish & Ankit,
Can you check what is the dump occurred in transaction ST22?
I hope you guys are working with HR data. So, i think some object is not passed(internally) correctly in RFC.
Please debug the RFC by keeping the breakpoint from webdynpro application, then you will come to know what is not passed when we execute the RFC from R/3.
Regards
Nizamudeen SM -
Error when save project Access via 'NULL' object reference not possible PLM
Dear All,
we are using cProject (PLM)4.0
When i create project & try to save ,system gives me error 'Access via 'NULL' object reference not possible'
Steps
1.Create project & element
2.save
showing below error
Note
The following error text was processed in the system PLD : Access via 'NULL' object reference not possible.
The error occurred on the application server Ndimdev_PLD_20 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Error code: ICF-IE-http -c: 300 -u: PLMUSER1 -l: E -s: PLD -i: Ndimdev_PLD_20 -w: 0 -d: 20090702 -t: 164926 -v: RABAX_STATE -e: OBJECTS_OBJREF_NOT_ASSIGNED
Please do needful
Regards
RavindraHi,
Put a break point and check whther ur node and
element instantiation is properly done.
Thanks,
Divya.S -
Webservice end up in Access via 'NULL' object reference not possible error
Hello everyone,
I have a particular issue when I run a webservice on webclient but when i run on sap R/3 it works fine.
The dump which it give when I test the web service is
Short text
Access via 'NULL' object reference not possible.
What happened?
Error in the ABAP Application Program
The current ABAP program "RPCTRSU0" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
The code where it ends up in error is
2607 data: l_wb_interface type ref to fp_wb_interface.
2609 data: p_interface_data type ref to
fb_interface_data.
2610 data: l_interface TYPE REF TO
if_fp_interface.
2611 data: l_exceptions type ref to cx_root.
2613 data: l_parameters type ref to
if_fp_parameters,
2614 l_parameter_table type tfpiopar.
2615 data: l_fpintf_name type fpname.
2616 data: wa_dd03p type dd03p,
2617 DD40V_WA type dd40v.
2618 data: l_intf_imp_item type line of tfpiopar.
2620 l_fpintf_name = i51t8_adb_fpint.
2621 TRY.
2622 l_wb_interface = cl_fp_wb_interface=>load(
2623 i_name = l_fpintf_name
2624 i_mode =
if_fp_wb_object=>c_mode_read
2626 i_language = sy-langu
2627 ).
2628 CATCH cx_fp_api_usage into l_exceptions.
2629 * RAISE error.
2630 CATCH cx_fp_api_repository into l_exceptions.
2631 * RAISE error.
2632 CATCH cx_fp_api_internal into l_exceptions.
2633 * RAISE error.
2634 ENDTRY.
2635
>>>>> l_interface ?= l_wb_interface->get_object
2637 p_interface_data = l_interface->get_interface_data( ).
2638 l_parameters = p_interface_data->get_parameters( ).
Please let me know how to go about twith this error
Regards,
Rajx
-
Web-UI error message "Access via 'NULL' object reference not possible"
I need some help, I'm not a Basis person but I need to get this connection problem resolve.
This problem is in our DEV ICWeb system. After logging in to Web-UI, I got a error message "Access via 'NULL' object reference not possible". We have 3 clients (100, 220, & 310) in DEV and all 3 clients are giving me the same error message.
From the help.sap.com, I found this topic http://help.sap.com/saphelp_nwes70/helpdata/en/84/43f0d786304e19a652a8f80909a8ec/content.htm
but in the document it asked to go to SM59 to check the ESH_APPL_WS_TEMPLATEENGINE destination. But we don't have that destination setup in all our systems.
Here is the complete error message:
Error when processing your request
What has happened?
The URL http://crm-dev.staff.copa:8000/sap/bc/bsp/sap/crm_ui_frame/BSPWDApplication.do was not called due to an error.
Note
■The following error text was processed in the system CD1 : Access via 'NULL' object reference not possible.
■The error occurred on the application server CRM-DEV_CD1_00 and in the work process 0 .
■The termination type was: RABAX_STATE
■The ABAP call stack was:
Method: GET_DATA_LOSS_HANDLER of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
Method: GET_DATA_LOSS_HANDLER of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
Method: EH_TRIGGER_NAVIGATION of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
Method: SET_WORKAREA_CONTENT of program CL_CRM_UI_CORE_APPL_CONTROLLERCP
Method: PROCESS_NAV_QUEUE of program CL_BSP_WD_VIEW_MANAGER========CP
Method: DO_INIT of program CL_CRM_UI_FRAME_APP_CONTROLLERCP
Method: DO_INIT of program CL_BSP_CTRL_ADAPTER===========CP
Method: GET_PAGE_CONTEXT_CURRENT of program CL_BSP_CONTEXT================CP
Method: ON_REQUEST_ENTER of program CL_BSP_RUNTIME================CP
Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
What can I do?
■If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system CD1 in transaction ST22.
■If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server CRM-DEV_CD1_00 in transaction SM21.Hi Michael,
Refer to the link below and check the procedure.
http://help.sap.com/saphelp_nwes70/helpdata/en/84/43f0d786304e19a652a8f80909a8ec/content.htm
Regards,
Arjun -
Runtime error in WebDynpro - Access via 'NULL' object reference not possibl
Hi,
Structure of the CONTEXT in the VIEW::
WDSCREEN1
--> IMPORTING
--> S_KUNNR <- its a select option
--> EXPORTING
--> T_REPORT <- Which is table to hold the output data (with 4 fields)
In the context area i have root node (WDSCREEN1) and Sub nodes are IMPORTING and EXPORTING and child nodes as shown above. When i am referring them everything is fine except T_REPORT.
* Declaration
DATA: node TYPE REF TO if_wd_context_node,
node_exporting TYPE REF TO if_wd_context_node,
node_importing TYPE REF TO if_wd_context_node,
node_report TYPE REF TO if_wd_context_node,
node = wd_context->get_child_node( wd_this->wdctx_wdscreeb1 ).
node_exporting = node->get_child_node( wd_this->wdctx_exporting ).
node_importing = node->get_child_node( wd_this->wdctx_importing ).
* Bind the data to the context
node_report = node_exporting->get_child_node( name = 'T_REPORT` ).
node_report->bind_elements( lt_report ).
Its giving run time error 'Access via 'NULL' object reference not possible. ' when it comes to ' node_report->bind_elements( lt_report ).' I checked the content while debugging and found that it was initial. Not sure why Node_report is initial. all others have data.
node ->
node_exporting ->
node_importing ->
node_report ->http://wiki.sdn.sap.com/wiki/display/EP/PointersforTroubleshootingPortalRuntime+Errors
Hope this helps.
-Veer -
BPM SMQ2 in sysfail Access using a 'ZERO' object reference is not possible
Hi ,
I am working on a IDOC to SOAP synchronous scenario
So I am using a BPM....
I have written a operation mapping outside BPM
1) Request MM creates the SOAP rquest
2) Response is a ABAP mapping where i am checking the response from webserice and then generating an email using ABAP code.
now when i am running this scneario works fine and the mail gets generated...
however i get a green flag in moni and in SMQ2 in sysfail Access using a 'ZERO' object reference is not possible
PS : Also the response coming from the webserice has a custom header which does not match with the response ABAP mapping source MT
however if I work on the same thing using Proxy to SOAP sync there is no sysfail message and it works fine
Is this a bug in the system ...i am using PI 7.1Hi,
Try to implement SAP note 1164228 or apply package SAPKB71007 to resolve your issue.
Maybe you are looking for
-
How do I change my iCloud account information on my iPhone? I had to change my Apple ID and my iCloud ID on my PC but, I wasn't able to change it on my iPhone and now it won't back up.
-
Convert spool to PDF and transfer to archive/content server
Hi, I need to generate a spool (a simple ABAP list) to PDF and store this on my content server. I know I can use ARCHIVOBJECT_CREATE_TABLE to transfer the internal PDF-table to the server, and download it by using ARCHIVOBJECT_GET_CLIENT. The problem
-
Shuffle Gen2 - can't manually manage songs
In the past, (before version 12 of iTunes) I was able to manually add and remove songs to and from my Shuffle. Now when I open up iTunes and click on my device (the Shuffle) ALL the songs are greyed out. I have searched the net and I have READ Mana
-
Cash Flow Report - Direct Method
BW guru's, my client produces a monthly "Cash Flow" report based upon the "Direct Method". BW delivers an "Indirect Method" cash flow report which does not meet my clients requirements. So, I am looking for someone who has designed and implemented
-
Hi guys, is it possible to restart some stopped process in BPE? Try to imagine running process. After shutdown XI server the process is terminated or stopped. Is it possible execute the stopped process again? Does any FM exist? Thanks in advance! Reg