0

Exception Handler

asked 2021-12-13 16:44:45 +0800

sektiandarbeni gravatar image sektiandarbeni
1 1

updated 2021-12-14 14:17:34 +0800

I have an application that is in the process of penetration test. the test is using Burb Suite to test. My tester tell me that i must put an error handler of unexpected error like "Unknown exception: org.zkoss.json.parser.ParseException." etc.

i was read error handler on zk document that put this code on zk.xml and it did not works.

<error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/error.zul</location>
</error-page>
delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2021-12-14 15:30:04 +0800

hawk gravatar image hawk
3013 1 5
http://hawkphoenix.blogsp... ZK Team

updated 2021-12-14 15:30:35 +0800

An exception might be thrown in two situations:

  1. when loading a ZUML document
  2. when serving an AU request (aka, an Ajax request).

specifying <error-page> in zk.xml just handles the 2nd one. You still need to handle the first one. Please check the Error Handling.

link publish delete flag offensive edit

Comments

i was put this code with all kind of type in web.xml too, and still got that error. <error-page> <exception-type>java.lang.Throwable</exception-type>
<location>/error.zul</location>
</error-page>

sektiandarbeni ( 2021-12-14 16:16:02 +0800 )edit
0

answered 2021-12-15 14:18:01 +0800

hawk gravatar image hawk
3013 1 5
http://hawkphoenix.blogsp... ZK Team

Could you try to run a new project or create a simple page that throws an exception to test it, or you can try to run this example: errorHandling.zul

Which situation are you testing right now? for loading a zul or serving an AU request?

Since the configuration is quite straightforward. I can't figure out the reason without more technical details. Could you send your web.xml and zk.xml to [email protected]?

link publish delete flag offensive edit

Comments

i was creating the new one. and it still.

i am in serving an AU request test right now.

Oke i'll send my web.xml and zk.xml

sektiandarbeni ( 2021-12-15 15:18:25 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2021-12-13 16:44:45 +0800

Seen: 10 times

Last updated: Dec 15 '21

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More