Skip to Content
avatar image
Former Member

UNCAUGHT_EXPECTION

Hi Experts,

In our portal side when we are executing the ESS component we are facing the error UNCAUGHT_EXPECTION CX_POWL_FATAL_EXECEPTION.How can i rectify this problem.Could you please help me for this issue.This is the Severe issue for us.In below source code i have mentioned where the error has get with symbol ( _______> ).

SOURCE DODE:

result = cl_powl_util=>ms_display_alvdialog_as_popup.

  • read configuration setting for POWL FOCUS

CALL METHOD me->read_config_property

EXPORTING

i_property = 'POWL_DEFAULT_FOCUS'

  • i_type =

IMPORTING

result = mv_powl_focus.

  • switch POWL delta rendering on (if requested in corresponding URL parameter)

mr_table_helper->set_powl_delta_rend_state( i_powl_delta_rend ).

m_refresh_srv_group = i_srv_group.

l_applid = i_applid.

IF m_applid IS INITIAL AND

l_applid IS INITIAL.

  • try to get application ID from configuration

me->read_config_property(

EXPORTING i_property = 'POWL_APPLICATION_ID'

IMPORTING result = l_applid

).

IF l_applid IS INITIAL.

  • we expect a valid application ID!(Here it is showing )

*----


> RAISE EXCEPTION TYPE cx_powl_fatal_exception*

EXPORTING

textid = 'APPLID_ILLEGAL'.

ENDIF.

ENDIF.

" clear latest switched query

CLEAR ms_new_query.

  • check if we have to do a full (re-)initialization

IF l_applid IS NOT INITIAL AND

m_applid <> l_applid.

m_applid = l_applid.

l_do_full_init = 'X'.

ELSE.

l_do_full_init = space.

ENDIF.

  • check if we can exit here since the WD session data is still valid

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 23, 2011 at 03:28 PM

    Hi,

    How can i rectify this problem.Could you please help me for this issue.

    First of all you need to debug the code inside the below method as to why l_applid is initial after the method call.

    * try to get application ID from configuration
    me->read_config_property(
    EXPORTING i_property = 'POWL_APPLICATION_ID'
    IMPORTING result = l_applid
    ).
    

    Now to avoid the uncaught exception, enclose your code within TRY ENDTRY block with in which you can CATCH the below exception and handle the exception in a more graceful way.

    DATA: LCX_EXCEPTION TYPE REF TO cx_powl_fatal_exception.
    TRY.
    IF l_applid IS INITIAL.
    
    * we expect a valid application ID!(Here it is showing )
    **----------------------> RAISE EXCEPTION TYPE cx_powl_fatal_exception**
    EXPORTING
    textid = 'APPLID_ILLEGAL'.
    ENDIF.
    CATCH cx_powl_fatal_exception INTO lcx_exception.
    * Handle the exception, show a message or something.
    ENDTRY.
    

    Regards,

    Chen

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      when i am able to execute in SICF my apllication powl in below link.I am getting the error can u please help me for this solution.

      http://kand0117.kan.eu:8000/sap/bc/webdynpro/sap/powl was not called due to an error.

      Note

      • The following error text was processed in the system PHE : An exception occurred that was not caught.

      • The error occurred on the application server pand0117_PHE_00 and in the work process 0 .

      • The termination type was: RABAX_STATE

      • The ABAP call stack was:

      Method: INITIALIZE of program CL_POWL_MODEL=================CP

      Method: HANDLEDEFAULT of program /1BCWDY/F9YU3EHYNKZISLCQ9MLZ==CP

      Method: HANDLEDEFAULT of program /1BCWDY/F9YU3EHYNKZISLCQ9MLZ==CP

      Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/F9YU3EHYNKZISLCQ9MLZ==CP

      Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_IF_VIEW=====CP

      Method: DISPLAY_TOPLEVEL_COMPONENT 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===CP

      Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP

  • avatar image
    Former Member
    Jun 26, 2011 at 08:03 AM

    Hi Durga,

    It seems you don't have a valid application id available in the system.

    Could you please check whether the application id is available in the transaction fpb_maintain_hier.

    Thanks & Regards,

    Arun.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Arun,

      I am new to this Powl concepts.Could you please tell me how to debugg to get whether the valid value of application id.

  • Sep 08, 2014 at 11:31 AM

    Hi,

    You can check the application id that is called in PFCG in the details of the webdynpro application settings. The APPLID mentioned there must be available in in tx FPB_MAINTAIN_HIER.

    rgds,

    Jeroen

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Venkatesh,

      I did faced this issue, you need to check in PFCG @ webdynpro settings. The application ID must be available FPB_MAINTAIN_HIER.


      Also check the SICF settings whether the Component is active or not.


      Thanks,

      Shailaja Ainala.