What errors can't be trapped by a custom error page?

这一生的挚爱 提交于 2019-12-13 17:59:16

问题


In XPages we can define a custom error page that shows whenever a runtime error (500) occurs in an XPages application. However there is a set of errors that ignore this setting (the more fatal ones). So far I know:

  • Nesting a custom control inside itself (runs out of stack probably)
  • Java security errors

What other errors are there that "break through the error page"?


回答1:


Errors in the custom error page also generate the Error 500 condition.




回答2:


Blank id in a DIV tag will do it as well (SPR SODY8RXCPS is to have designer check for it).

eg.

<DIV id=""></DIV> 

Bad coding anyway, id shouldn't be there or have a value.




回答3:


if I type http://www.acme.com/demo.nsf and the demo.nsf database does not exist on server you get an 404 HTTP Web Server: Lotus Notes Exception - File does not exist.

but if you type http://www.acme.com/demo.nsf/home.xsp and the home.xsp does not exist in the database you get HTTP Web Server: Item Not Found Exception or HTTP Web Server: Couldn't find design note even it you have an error page specified

in the old domino development you could create "$$" error pages in both an application and you could also do it per server by putting them in domcfg. but I am not sure if any of these problems will solve this.




回答4:


Everything that crashes the JVM can not be trapped, f.e. out of memory errors or stack overflows. (You will not be informed about the type of error on the server console if a stack overflow happens).




回答5:


Page inactive for some time will fail when invoking any event (full/partial refresh) because of session timeout.

Http Status Code: 400

Reason: Unknown or unsupported protocol version

This error is not handled by XPages error page.



来源:https://stackoverflow.com/questions/9595883/what-errors-cant-be-trapped-by-a-custom-error-page

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!