I noticed this issue is old, but here is a possible solution for others who might need it: We had issues with Debug hook in our organization. We only experienced the issue when one object called another object and this object resulted in an error that bubbled back up to the process. The next time this object was called, it would throw a debug hook exception. We figured that we needed to reset the bottommost object somehow.
Imagine a four layer structure:
- Process Main Page (calls sub-page)
- Process Sub-Page (calls object 1)
- Object 1 (calls object 2)
- Object 2 (throws exception)
Our solution is to 'reset' the object that threw the exception by stepping through an empty page in that object. So it works like this:
- Object 1 calls object 2
- Object 2 throws an exception
- Object 1 catches the exception and still within recover mode, calls an empty page (only start and end stage) in object 2
- Object 1 re-throws the exception
- Exception bubbles up and is handled in the process, everything works fine on next attempt
------------------------------
Birger Langebro
Consultant
AVO Consulting
Europe/Oslo
------------------------------