Globally configuring ErrorHandlerClass for an ADF application

I talked about customizing the DCErrorHandlerImpl in one of my old blog post This custom ErrorHandlerClass is usually configured in DataBindings.cpx file. What if you have many projects and you want to configure it centrally in one place at application level. From release version onward ADF supports configuration of ErrorHandlerClass  in adf-config.xml (Thanks to Steve Muench who shared this tip). A sample adf-config.xml with custom error handler class is here:

<?xml version="1.0" encoding="windows-1252" ?>
<adf-config xmlns="" xmlns:config=""
  <adf-adfm-config xmlns="">
    <defaults changeEventPolicy="ppr" useBindVarsForViewCriteriaLiterals="true"/>
    <startup errorHandlerClass="view.util.CustomDCErrorHandlerImpl">
        <config:Database jbo.locking.mode="optimistic"/>
  ... ... ...


  1. Hello,
    First congratulations for your post, it's very nice!
    I've a ADF Mobile application and I want define a global exception handler but I don't know how!
    I tried to configure like your article but when an exception is generated the exception handler class didn't invoke.
    Do you have any idea to solve this question?


  2. Dear,
    Can you post your class view.util.CustomDCErrorHandlerImpl?

  3. See this link
    btw, this for ADF Web

  4. Dear Jobinesh,
    And Global Error Handler to ADF Mobile, do you know how to do this?

    I need to put this in my application. I have a big application based on the adf mobile.
    I work with oracle spatial, mapviewer, oraclemaps, adf web, adf desktop. My company has projects that use oracle technology and we're Oracle's Partner.
    If you can help me I'll be very happy. If necessary I can to pass my project by email for you.



Post a Comment