欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

如何处理resource not found for the segment XXXXX error message

最编程 2024-07-30 22:07:49
...
Created by Jerry Wang, last modified on Dec 10, 2015

使用Postman 测试Odata request时遇到如下error message:
如何处理resource not found for the segment XXXXX error message_WebClient UI

原因是因为请求的entityset在变量ms_model_class-associations里不存在对应的entry:
如何处理resource not found for the segment XXXXX error message_WebClient UI_02
因此抛exception:
如何处理resource not found for the segment XXXXX error message_ABAP_03
在line 66系统并不会进入line 71的model cache invalidation,因为mv_cache_handshake为abap_false:
如何处理resource not found for the segment XXXXX error message_WebClient UI_04
如果在debugger里强行进入cache evaluation,则会trigger到backend system的model metadata retrieve:
如何处理resource not found for the segment XXXXX error message_ABAP_05
如何处理resource not found for the segment XXXXX error message_ABAP_06

结束时候会hard code成outdated = abap_true:
如何处理resource not found for the segment XXXXX error message_ABAP_07
这个cache evaluation的flag只有在metadata request时才起作用:
如何处理resource not found for the segment XXXXX error message_WebClient UI_08
要获取更多Jerry的原创文章,请关注公众号"汪子熙":