on 06-20-2014 5:59 AM
Hello colleagues,
I always get the runtime error OBJECTS_OBJREF_NOT_ASSIGNED when calling any standard GRC API's
For instance, lets take Function Modules:
I tried almost any of them but in particular:
GRPC_API_CONTROL_QUERY Load the list of controls
GRPC_API_ISSUE_QUERY Retrieve issues of the case
GRPC_API_ORGUNIT_QUERY Load list of Organizations
GRPC_API_RMPLAN_QUERY Retrieve remediation plans of case
GRPC_API_RISK_CONTROLS Retrieve the controls of the risk
and etc.
All of them return the runtime error OBJECTS_OBJREF_NOT_ASSIGNED, however I've provided Object ID's in the right format,
The same is for corresponding classes,
Does anyone have such problem before?
Appreciate your responses,
Thank you,
Best Regards,
Anton
Hi Anton,
You need to pass reference of IO_SESSION that is the reason why you're getting dump.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Katrice,
I've tried several FM's with passing the reference of the IO_SESSION id, but still, the same runtime error occured.
And, also, in these FM's the I_SESSION_ID is optional, so I suppose at least it should be mandatory for the given FM in case it returns the run time error without it
Anyway, I test these FM's from SE80, with the Test/Execute function.
May they be tested like that? Or should write a code where for example firstly I create a new session and then pass it to the given FM, and it is executed in the same one session?
Many thanks in advance!
Best Regards,
Anton
Hi Katrice,
Great, it looks like the I_SESSION_ID is mandatory parameter,
Please see the st22 damp analysis log. I have the same runtime errors as you:
The list of run time errors for different GRC API's. All errors are the same.
The dump analysis for one FM:
Thank you very much for help!
Best Regards,
Anton
Hi Anton
I do not know PC or RM but I've noticed in GRC component that short dump is usually due to a missing configuration or invalid configuration value.
Have you gone through the applicable configuration to check? If so, debug or trace replicating to the error to see where it fails.
Regards
Colleen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Colleen,
Thank you for a swift reply,
It is hard to recognise the needed configuration from the dump log,
I've went through the debug of several FM's and traced that the runtime error is always happening on the step:
api_model model_setup.
I am unable to get inside the api_model while debugging because it is falling in dump immediately once it gets into api_model definition, and also "model_setup" is empty, so I suppose this is the issue,
Need to find where is it configured...
Best Regards,
Anton
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.