ADF Error Handling
ADF Error Handling
GIL ADAMS
Servlet container
Unhandled exceptions
Unhandled exceptions
Oracle ADF Business Components
Java
JAX-WS
EJB/JPA
37
38
ORACLE ADF
39
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
Web Content -> Page Flows -> adfcconfig. Right-click adfc-config, and
choose Open from the context menu.
The unbounded task flow configuration file contains a method activity
UnboundedTaskFlowErrorHandler
configured as an error handler (indicated
by the exclamation mark overlay icon).
The method activity references the
showAdfcErrorMessageInDialog method
of the AdfcSampleErrorHandlerImpl class
in ADfErrorHandlingUtil to show a dialog
box for displaying controller errors.
Right-click the UnboundedTaskFlowUtil
node, and choose Deploy ->
UnboundedTaskFlowUtilLib from the
context menu to deploy the Oracle ADF
library containing the error handler.
Click Finish (because you are not making
changes to the deployment directory).
In the Application Navigator, select the
ViewController project.
Choose View -> Resource Palette.
In the Resource Palette, create a new file
system connection by clicking the menu
button with the folder icon and choosing
New Connection -> File System from the
menu (as shown in Figure 3).
Name the new connection Unbounded
Task Flow Error Handler.
Click Browse to navigate to
and select the deploy folder
located in the ErrorHandling ->
UnboundedTaskFlowUtil folderin
the directory to which you unzipped the
downloaded sample zip file.
Click Select and then OK.
In the Resource Palette, expand the IDE
Connections panel and then the File
System -> Unbounded Task Flow Error
Handler node.
With the ViewController project selected
in the Application Navigator, right-click
the UnboundedTaskFlowUtilLib.jar file,
displayed in the Resource Palette under
the Unbounded Task Flow Error Handler
node, and choose Add to Project from
the context menu.
Click Add Library in the dialog box
to configure the library for the
ViewController project.
Save your work, and test the application by selecting View Controller ->
40
ORACLE ADF
41
NEXT STEPS
DOWNLOAD
Oracle JDeveloper 11g
bit.ly/LRlg7k
the sample application for this article
bit.ly/10mJLA6
READ
Oracle-hosted online-only
article content
bit.ly/UleuqX
more about error handling
Oracle Fusion Middleware Fusion Developers
Guide for Oracle Application Development
Framework 11g Release 2 (11.1.2.3.0)
bit.ly/V1YWJK
Oracle Fusion Middleware Error Messages
Reference 11g Release 1 (11.1.1)
bit.ly/Vvg1wK
ADF Fail Whale: Handling The Database Is Down
Gracefully, One Size Doesnt Fit All (blog)
bit.ly/ZRB0Nc
JDev ADF: How to Log All Errors to the Database,
One Size Doesnt Fit All (blog)
bit.ly/VvhdAu
UPDATING
DATA ACROSS
THE CLOUD?
www.hitsw.com
FREE PAPER
Tips for Change Data Capture
across Enterprise and Cloud
Download at: http://info.hitsw.com/Oracle20132
Copyright 2013 HiT Software, Inc., A BackOffice Associates, LLC Company. All rights reserved. HiT Software, HiT Software logo, and DBMoto are either trademarks or registered trademarks of HiT Software
and BackOffice Associates, LLC in the United States and other countries. All other trademarks are the property of their respective owners.