明明没有发生超时错误,为什么SAP WebClient UI会显示超时错误提示?-阿里云开发者社区

开发者社区> jerrywangsap> 正文

明明没有发生超时错误,为什么SAP WebClient UI会显示超时错误提示?

简介: 明明没有发生超时错误,为什么SAP WebClient UI会显示超时错误提示?
+关注继续查看

订阅专栏

In my blog Timeout page and WebUI freezing issue – Another cause, the behavior that a time out page is displayed in UI, although there is no time out at all but instead some exception occurred in ABAP backend. From my point of view this time out page is misleading. In that blog I share one of my example how to find the root cause which causes the ABAP exception in an efficient way.

In this document I will explain to you why the time out page is designed to be rendered after some backend exception occurs.


First I need to find a scenario which will trigger an ABAP backend exception.


Fortunately I have already one at hand ( I should not say fortunately since this scenario is responsible by my team and I need to fix it anyway):


After I click F4 on field Base Category, a popup window is expected to appear.


image.png


However due to a bug in my code, there is one runtime error in ABAP backend:


image.png


And then I see error in UI.


image.png


After I click any place in UI, I see the time out page below.


image.png


How to find the logic why this time out page is chosen and rendered by UI Framework

In the beginning I am not clear where to set breakpoint to debug as this timeout page rendering is implemented via UI framework.

So I plan to have a try with HTTP Professional.


image.png


I click “Record” button in toolbar to enable trace mode, and reproduce my operation in UI. Immediately I observed there is HTTP 500 error recorded. The log tells me that it tries to get a popup window but failed with result HTTP/1.1 500 Internal Server Error.

image.png



Right after the 500 error, there is a HTTP 302 redirection and the redirected target is CRM_UI_FRAME/logon_error.htm.


image.png


Click “Content” tab, it also shows error detail including ABAP callstack.


image.png


Now we can start trouble shooting in ABAP side. Quickly I notice the text in timeout page is stored in variable

application->gv_logon_error_message. Again use Where Used function in ABAP workbench and set breakpoint in hit, then reproduce the scenario one again.


image.png


Break-point is triggered as expected. Here due to 500 error, the popup name could not be got, so a session restart is planned as documented in comment 53.


I just do not understand why my UI framework colleague choose the OTR text TIMEOUT1. IMHO a text like “Some error happened, restart your session” is perhaps better.


image.png


Then the JavaScript for session restart is filled and redirection is launched as below:


image.png


Put the mouse on hyperlink and we will see redirection Javascript hint:


image.png

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
阿里云服务器怎么设置密码?怎么停机?怎么重启服务器?
如果在创建实例时没有设置密码,或者密码丢失,您可以在控制台上重新设置实例的登录密码。本文仅描述如何在 ECS 管理控制台上修改实例登录密码。
9069 0
微信小程序开发— 图片显示错误:VM24966:2
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/tianchao7c/article/details/79097753 VM24966:2 Failed to load image http://1042065718.
778 0
SQL SERVER错误:已超过了锁请求超时时段。 (Microsoft SQL Server,错误: 1222)
原文:SQL SERVER错误:已超过了锁请求超时时段。 (Microsoft SQL Server,错误: 1222)     在SSMS(Microsoft SQL Server Management Studio)里面,查看数据库对应的表的时候,会遇到“Lock Request time out period exceeded.(Microsoft SQL Server, 错误1222)”,对应的中文错误提示为“已超过了锁请求超时时段。
1743 0
明明没有发生超时错误,为什么SAP WebClient UI会显示超时错误提示?
明明没有发生超时错误,为什么SAP WebClient UI会显示超时错误提示?
14 0
阿里云服务器端口号设置
阿里云服务器初级使用者可能面临的问题之一. 使用tomcat或者其他服务器软件设置端口号后,比如 一些不是默认的, mysql的 3306, mssql的1433,有时候打不开网页, 原因是没有在ecs安全组去设置这个端口号. 解决: 点击ecs下网络和安全下的安全组 在弹出的安全组中,如果没有就新建安全组,然后点击配置规则 最后如上图点击添加...或快速创建.   have fun!  将编程看作是一门艺术,而不单单是个技术。
10723 0
阿里云ECS云服务器初始化设置教程方法
阿里云ECS云服务器初始化是指将云服务器系统恢复到最初状态的过程,阿里云的服务器初始化是通过更换系统盘来实现的,是免费的,阿里云百科网分享服务器初始化教程: 服务器初始化教程方法 本文的服务器初始化是指将ECS云服务器系统恢复到最初状态,服务器中的数据也会被清空,所以初始化之前一定要先备份好。
11470 0
Bootstrap 初级错误导致显示空白页
Bootstrap 初级错误导致显示空白页
11 0
+关注
2628
文章
0
问答
来源圈子
更多
+ 订阅
文章排行榜
最热
最新
相关电子书
更多
《2021云上架构与运维峰会演讲合集》
立即下载
《零基础CSS入门教程》
立即下载
《零基础HTML入门教程》
立即下载