Sometimes you would see the following page if you are clicking anywhere in a page which is idle for quite a long time.

/wp-content/uploads/2014/03/clipboard1_401000.png

However, there are definitely some other causes which would also lead to this timeout page – the session itself is not timeout, instead within the session, there are some exceptions raised in the backend and caught by the UI framework. As a result you could not see any dumps in ST22, and this timeout page would sometimes lead you to the wrong way of trouble shooting. For example in this thread, some friend is suggesting to enlarge the related timeout profile in RZ10. For sure that would definitely not work, since the issue in the thread is nothing to do with the real timeout issue, but instead the exception caused by a custom enhancement.

I would share with you my example how to find the root cause of this kind of I call it “pseudo” time out issue in an efficient way:

My example

click the Service Order ID for the first time, nothing happended. Click it again( or any other clickable part in the UI), I get the above timeout page.

/wp-content/uploads/2014/03/clipboard2_401001.png

How to figure out the root cause

I have two different approaches. The first one will take several minutes to find the root cause via debugging.

1.  Create a breakpoint based on exception class CX_ROOT( for detail see this blog)

/wp-content/uploads/2014/03/clipboard3_401002.png


Launch UI and click hyperlink for the first time, the breakpoint is triggered and debugger stopped. In the status bar we get the hint that exception CX_BSP_WD_EXC_WRAPPER occurs. Set another breakpoint in its CONSTRUCTOR method.

/wp-content/uploads/2014/03/clipboard4_401003.png

2. Relaunch the UI, the breakpoint in exception class CONSTRUCTOR is triggered, telling us there is something wrong with a custom UI component ZCUSTOM/MainWindow. In line 51 we know the exception class CX_BSP_WD_INCORRECT_IMPLEMENT. Set the breakpoint in its CONSTRUCTOR again.

/wp-content/uploads/2014/03/clipboard5_401004.png

3. Relaunch the UI, now we find root cause: The overview page tries to display the view defined in ZCUSTOM/MainWindow, however it is not in the parsed component usage repository table ( me->usages in line 4)

/wp-content/uploads/2014/03/clipboard6_401005.png

Double check it in UI workbench it is because the custom UI component is added as component usage based on enhancement set A, however currently enhancement set B is active in current client.

/wp-content/uploads/2014/03/clipboard7_401006.png

The second approach is even more efficient. You could enable the UI framework to persist the exception which are raised and caught somewhere for example your ownZ table with little effort so that it is convenient for you to check them afterwards.


In my example, I could immediately know this issue is caused by incorrect component usage with the exact usage name without debugging.

/wp-content/uploads/2014/03/clipboard8_401007.png

If you would like to know why timeout page is always displayed, although it is not a timeout issue at all, please find reason here.

To report this post you need to login first.

7 Comments

You must be Logged on to comment or reply to a post.

  1. Andrey Vishnevskiy

    Jerry, very interesting question you’ve raised. Thank you for the tip how to store the actual error for later analysis!

    But I wonder if you know the reason why an exception may cause this “timeout page” instead of the classical one (BSP error page like this  http://wiki.scn.sap.com/wiki/download/attachments/3060/Error.JPG)? We faced such an issue during one of the latest projects. The exception always led to “timeout” page. But it only occured in DEV and QA systems. And everything was fine in production system (if we can say “fine” talking about BSP errors in Prod 🙂 )

    (0) 
    1. Jerry Wang Post author

      Hi Andrei,

      Yes your question is also quite interesting. I am not the expert on this area, I guess perhaps it is related to some configuration regarding error page in SICF? Or we can also debug the error handling code of UI framework to find out why, it will spend some time for investigation…

      Best regards,

      Jerry

      (0) 
      1. Andrey Vishnevskiy

        Jerry, afaik there is no additional configuration done on SICF level. Which level to debug you suggest? Will CL_HTTP_EXT_BSP->REPORT_ERROR be a good place to start from?

        (0) 
        1. Jerry Wang Post author

          Hi Andrei,

          I am not sure, recently I have headache with a performance issue from one Chinese customer, so have not more time to dig it further. Maybe you could figure it out soon and I am looking forward to another informative blog from you 🙂

          Best regards,

          Jerry

          (0) 
              1. Andrey Vishnevskiy

                Hell Jerry.

                Late response from my side but anyway thank you! Your document is good, but it didn’t answer my question: why the same error (exception) in one system displays standard BSP error page and in other system (quite similar from SP point of view) displays this erroneous timeout page? Your document answers different question. I can formulate it as “How the timeout page is built?”.

                Anyway thank you for the try. I have no permanent access for that landscape where I can research the issue. But as soon as I can I will share a reason.

                (0) 

Leave a Reply