Discussions
Categories
- 196.9K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.3K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 546 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.9K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.6K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 442 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
Exception Handler for Oracle ADF Application

Hi Team,
I have implemented the below approach for my application but it's not handling "Nullpointer /Java expetions"
Extending DCErrorHandlerImpl- for model
so I introduced the below approach to handling Java exceptions (Null pointers kind)
https://blogs.oracle.com/adf/post/extending-the-adf-controller-exception-handler
my question is, Do we have simple approach to consolidate all exceptions in single Control (single )
Jdev: 12.1.2.2.0
Best Answer
-
Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,461 Red Diamond
Try to get it from my git https://github.com/tompeez/Old_Sample_Code/raw/main/o23adf-1896561.zip
Answers
-
Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,461 Red Diamond
User, tell us your exact JDev version, please!
What do you mean by
...consolidate all exceptions in single Control (single )
Check https://blogs.oracle.com/oraclemagazine/post/catch-me-if-you-can for the full story about error handling in ADF.
Timo
-
Thanks, Timo for your quick response.
Jdev V: 12.2.1.2.0
.consolidate all exceptions in single Control (single ):
My point is, For designing custom exception handlings we need to create custom error handlings for each layer
DCErrorHandlerImpl class for Bindings layer but It won't handle View Layer exceptions. So we need to customize the error handler for ViewLayer like below
Extending the ADF Controller exception handler
Can't we create a single approach to handle all layers exceptions in the application instead of designing each layer customizations?
Req: I was unable to download the sample application from below URL ( can u help)
https://blogs.oracle.com/oraclemagazine/post/catch-me-if-you-can
Next Steps
LEARN more about Oracle ADF
DOWNLOAD
-
Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,461 Red Diamond
When you think about this, you'll realize that you have different layers (model, view, controller) on different machines. So it doesn't make sense to use ONE for all as you'll need to break the MVC pattern for this.
The article shows you what you should do to handle the exceptions from the different layers and present them to the user. In the best case, the user should see all errors in the same way, without knowing where they were thrown.
Timo
-
Understood Timo.
BTW When I try to download the sample application from Frank Nimphius post, getting the below exception
-
Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,461 Red Diamond
Try to get it from my git https://github.com/tompeez/Old_Sample_Code/raw/main/o23adf-1896561.zip