cancel
Showing results for 
Search instead for 
Did you mean: 

Null object or memory issue?

former_member199125
Active Contributor
0 Kudos

I have developed one webdynpro application.internally it is calling one standard tcode. Its working fine in development but when i moved to production i got below error. I dont find anything relevant to my code in ST22.

help me in this.

The following error text was processed in the system SWP : Access via 'NULL' object reference not possible.

The error occurred on the application server SWECCDB_SWP_01 and in the work process 2 .

The termination type was: RABAX_STATE

The ABAP call stack was:

Method: READ_PROPDEF_FOR_SHARED_OBJECT of program CL_WDR_CONFIG_APPL_PARAM======CP

Method: BUILD of program CL_WDR_CONF_APPL_SHBROKER=====CP

Method: INIT of program CL_WDR_CONF_APPL_SHBROKER=====CP

Method: READ_DATA of program CL_WDR_CONFIG_APPL_PARAM======CP

Method: INIT_DATA of program CL_WDR_CONFIG_APPL_PARAM======CP

Method: GET_DATA of program CL_WDR_CONFIG_APPL_PARAM======CP

Method: CONSTRUCTOR of program SAPLWDR_RUNTIME_REPOSITORY

Function: WDR_GET_REPOSITORY of program SAPLWDR_RUNTIME_REPOSITORY

Method: IF_WDR_RUNTIME~GET_RR_APPLICATION of program CL_WDR_MAIN_TASK==============CP

Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP

Regards

Srinivas

Accepted Solutions (0)

Answers (1)

Answers (1)

Lukas_Weigelt
Active Contributor
0 Kudos

ST22 should at least be able to tell you at which point of the coding the application crashed..

If you can't find anything like that, externally debug READ_DATA_FOR_SHARED_OBJECT of CL_WDR_CONFIG_APPL_PARAM

former_member199125
Active Contributor
0 Kudos

It doesn't show any code related to my code. But it is showing some standard code, that i dont know frm where it came.

14	
   15	    select set_name property_name
   16	           alias_name default_value is_mandatory
   17	           property_kind min_level max_level
   18	           url_parameter separator portal_default abap_type
   19	           into corresponding fields of table m_property_definitions
   20	           from wdy_app_prop_def
   21	           order by set_name property_name.
   22	
   23	    select set_name property_name
   24	           description
   25	           into corresponding fields of table l_descr
   26	           from wdy_app_prop_dft
   27	           where langu = sy-langu
   28	           order by set_name property_name.
   29	
   30	    loop at m_property_definitions assigning <prop>.
   31	      read table l_descr
   32	        with key set_name = <prop>-set_name
   33	                 property_name = <prop>-property_name
   34	        assigning <descr>.
   35	      if sy-subrc = 0.
   36	        <prop>-description = <descr>-description.
   37	      endif.
   38	
   39	    endloop.
   40	
   41	*   read application specific property definitions
   42	    if m_application_ref is bound.
   43	      l_startup_plug = m_application_ref->get_startup_plug( ).
>>>>>	      l_param_count = l_startup_plug->get_parameter_count( ).
   45	      do l_param_count times.
   46	        l_parameter = l_startup_plug->get_parameter_by_pos( sy-index ).
   47	        l_prop_def-set_name = 'APPLICATION'.
   48	        l_prop_def-property_name = l_parameter->get_name( ).
   49	        l_prop_def-alias_name = l_prop_def-property_name.
   50	        l_prop_def-property_kind = c_prop_kind_standard.
   51	        l_prop_def-min_level = c_scope_application.
   52	        l_prop_def-max_level = c_scope_user.
   53	        l_prop_def-url_parameter = l_prop_def-property_name.
   54	        l_prop_def-abap_type = l_parameter->get_abap_type( ).
   55	        l_prop_def-description = l_parameter->if_wdy_md_object~get_description( ).
   56	        append l_prop_def to m_property_definitions.
   57	      enddo.
   58	    endif.
   59	    property_definitions = m_property_definitions.
   60	  endif.

Regards

Srinivas

saravanan_narayanan
Active Contributor
0 Kudos

Hello Srinivas,

It seems that the STARTUP plug is not defined for the application being launched. Suggest you to set the break point before the line 43 and check for which application its initial and check whether you have transported/defined the Startup plug or not.

BR, Saravanan

former_member199125
Active Contributor
0 Kudos

Hi Sarvanan,

code in previous msg comes from standard. thats not my code.So I cannot set break point before that.

its working perfectly in development. facing problem in production.

Regards

Srinivas

Former Member
0 Kudos

It may be some data issue or configuration issue. Please check it in ther opther system where it is working fine and wat data is passing in that parameter .May be some configuration is required to test it.

saravanan_narayanan
Active Contributor
0 Kudos

Hello Srinivas,

I mean to set external debugging point in the standard code, so that you can figure for which application is dumping. Based on that you can do further analysis regarding null object.

BR, Saravanan

former_member199125
Active Contributor
0 Kudos

Hi Sarvanan,

just now I found out bug.

Whenever we save webdynpro application in one request, it will contain

webdynpro application

webdynpro component

other......

but in my application transport request i dont have webdynpro component , but i have webdynpro application.

I tried saving in one more request, but still doesn't show webdynpro component.

Regards

Srinivas

saravanan_narayanan
Active Contributor
0 Kudos

Hello Srinivas,

webdynpro application is a different TR object independent of the component. So when you save webdynpro application in TR it wont include the component. You need to save the component explicitly.

BR, Saravanan

former_member199125
Active Contributor
0 Kudos

issue solved with explicit transportation of new request with component.

Regards

srinivas