‎2010 Jan 13 2:52 PM
I am reviewing a class that is running an XML file to create providers, but before running the class XML Cultural UP that file, I get the following Dump:
Short text
Access via 'NULL' object reference not possible.
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_PROXY_INBOUND_ADAPTER======CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
caught in
procedure "SET_METHOD" "(METHOD)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
You attempted to use a 'NULL' object reference (points to 'nothing')
access a component.
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.
I need to know why this exception is executed and what is your solution or if I have to open a sap note.
thanks
‎2010 Jan 13 10:31 PM
You don't need to open any SAP note for this. It is a common error which you can simply fix by using
create object ref_var.
This you probably somewhere ommit, causing that your reference varibale is initialized while you want to access class method.
Ensure (by debugging) that you are instantiating the object with above statement and it is not initialized/is bound when it is accessed. This will surely help.
Regards
Marcin
‎2010 Jan 13 10:31 PM
You don't need to open any SAP note for this. It is a common error which you can simply fix by using
create object ref_var.
This you probably somewhere ommit, causing that your reference varibale is initialized while you want to access class method.
Ensure (by debugging) that you are instantiating the object with above statement and it is not initialized/is bound when it is accessed. This will surely help.
Regards
Marcin
‎2010 Jan 17 2:53 PM
Hi keps31,
if this happens (why did you not tell us????????) in an XI/PI interface, it is probably a customizing error. I remember in the proxy configuration you assign classes to the inbound message which are used for the inbound processing.
If the class does not exist, system can not create an object and invok the processing method.
Check your interfaces. Sorry I don't have the details for you, but you also don't give the details to us.
In the dump, the active programs are listed.
Regards,
Clemens