SlideShare ist ein Scribd-Unternehmen logo
1 von 56
Downloaden Sie, um offline zu lesen
1 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Real World ADF Design & Architecture Principles
Error Handling
ORACLE
PRODUCT
LOGO
15th Feb 2013 v1.0
3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Learning Objectives
•  At the end of this module you should be able to:
–  Understand the ADF error handling architecture
–  Know the scope of an error handler
–  Distinguish between error handling and incident reporting
Image: imagerymajestic/ FreeDigitalPhotos.net
4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Program Agenda
•  Error Handling Introduction
•  Handling ADF Lifecycle Errors
•  ADF Business Components
•  ADF Binding Layer
•  ADF Controller
–  Bounded Task Flow
–  Unbounded Task Flow
•  ADF View
•  Servlet Container
•  Summary
5 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Fiction …
Wouldn't it be good if there was a single
location to handle all application errors
and exceptions?
6 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
… and Fact.
Not perfect, but a solution.
7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Program Agenda
•  Error Handling Introduction
•  Handling ADF Lifecycle Errors
•  ADF Business Components
•  ADF Binding Layer
•  ADF Controller
–  Bounded Task Flow
–  Unbounded Task Flow
•  ADF View
•  Servlet Container
•  Summary
8 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
ADF Error Handling Hooks - Overview
ADF Faces (ADFv)
EJB/JPAADF Business Components Java
ADF Model (ADFm)
JAX-WS
Unhandled exceptions
Servlet Container
Unhandledexceptions
Render
Response
Propagates exceptions
ADF Controller (ADFc)
Business Service Layer
ADF Binding Layer
Data Control
9 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
ADF Exception Handlers
•  ADFm Exception Handler
–  Error Handler (DCErrorHandler) in BindingContext
•  ADFc Exception Handler
–  Exception Handler activity in Task-Flow
–  Application wide Exception Handler
•  ADFv Exception Handler
–  oracle.adf.view.rich.context.ExceptionHandler
•  Container, error-page in web.xml
10 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
ADF Error Handling Overview
ADF Interaction in JSF Request Lifecycle
EJB/JPAADF Business Components Java
ADF Binding
JAX-WS
Restore View
Apply Request
Process ValidationUpdate Model
Invoke Action
Render Response
1
2
3
4
5
6
JSF
11 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Program Agenda
•  Error Handling Introduction
•  Handling ADF Lifecycle Errors
•  ADF Business Components
•  ADF Binding Layer
•  ADF Controller
–  Bounded Task Flow
–  Unbounded Task Flow
•  ADF View
•  Servlet Container
•  Summary
12 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
oracle.jbo.JboException
•  JboException extends java.lang.RuntimeException
–  Thus Business Component method can throw exceptions without
a throws clause in the method signature
•  Translation of error messages occur by the client calling
getLocalizedMessage() and not when an error is thrown
One Exception Super Class for All Exceptions
13 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Bundled Exception Mode
•  Enabled by default
•  Presents maximal set of failed validation exceptions
•  Java supports single exception to be thrown at a time
•  ADF BC moves all exceptions under a parent exception
–  Multiple entity attribute validation errors (ValidationException) are
wrapped in RowValException parent exception
–  Multiple rows that fail validation performed during commit will have the
RowValException wrapped in TxnValException object
–  You can recursively introspect exception by calling getDetails() on each
exception
All Exceptions at Once
14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Exceptions that are not handled in the business
service propagate to the ADF model layer.
Image: Ambro/ FreeDigitalPhotos.net
15 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Program Agenda
•  Error Handling Introduction
•  Handling ADF Lifecycle Errors
•  ADF Business Components
•  ADF Binding Layer
•  ADF Controller
–  Bounded Task Flow
–  Unbounded Task Flow
•  ADF View
•  Servlet Container
•  Summary
16 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
ADF Model Error Handler
•  The ADF model error handler deals with
–  All ADF binding errors
–  Business service errors that occur when accessing a service
trough the ADF binding layer
•  Formats and displays error message
•  Default error handler skips the top-level JboException because it
only is a bundled exception wrapper for other business exceptions
17 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Creating A Custom Error Handler
•  Extend oracle.adf.model.binding.DCErrorHandlerImpl and configure
your custom error error handler in DataBindings.cpx
•  Override the following methods as needed
–  reportException
•  Override this method to analyze exceptions for errors you want to handle
–  getDisplayMessage
•  Override to change or suppress (null value) the displayed message
–  getDetailedDisplayMessage
•  Override this method to provide HTML markup formatted detail information
–  skipException(Exception ex)
•  Called by the framework to check if an exception should be ignored
18 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Oracle JDeveloper 11g R2
19 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Custom Error Handler Example
Skip Exception for SQL Exceptions
public class CustomErrorHandler extends DCErrorHandlerImpl
{
...
protected boolean skipException(Exception ex) {
if (ex instanceof DMLConstraintException) {
return false;
//don't show details of SQL exception
} else if (ex instanceof SQLException) {
return true;
} else {
return super.skipException(ex);
}
}
)
20 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Skip Exception Example
SQLIntegrityConstraintViolationException
skipException == false skipException == true
21 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.21 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
The code is from a managed bean in our
application. What happens in case of an
exception?
Image: imagerymajestic/ FreeDigitalPhotos.net
OperationBinding operationBinding = null;
operationBinding =
getOperationBinding("UpdateOrder");
operationBinding.execute();
…
22 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
On a Related Note
•  It happens quite often that developers execute a client method
directly on the Application Module
–  BindingContext > findDataControl("...") > getDataProvider()
–  Cast data provider to Application Module interface
–  Execute client methods on it
•  The risk is that
–  Exceptions thrown by the client interface logic are not handled by the
ADFm error handler if invoked directly
–  Inconsistent error handling may occur
23 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Program Agenda
•  Error Handling Introduction
•  Handling ADF Lifecycle Errors
•  ADF Business Components
•  ADF Binding Layer
•  ADF Controller
–  Bounded Task Flow
–  Unbounded Task Flow
•  ADF View
•  Servlet Container
•  Summary
24 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.24 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
The ADF controller handles exceptions
that occur during task flow execution
Image: Ambro/ FreeDigitalPhotos.net
25 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
ADF Controller Exception Handling
•  Exceptions that may occur during task flow execution include
–  Method call activity that throws an exception
–  Task flow initialize or finalize methods throwing an exception
–  Authorization failures when accessing an activity
•  Controller exceptions are handled by a task flow activity that is
designated as an exception handler
•  When a task flow throws an exception, control flow is passed to the
designated exception handling activity
Introduction
26 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Exception Handler Activity
How-to Define an Activity as the Exception Handler
27 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Example: Method Error Handler
public void showErrorDialog() {
ControllerContext context = ControllerContext.getInstance();
ViewPortContext currentViewPort = context.getCurrentViewPort();
if (currentViewPort.isExceptionPresent()) {
FacesMessage fm = new FacesMessage(
FacesMessage.SEVERITY_WARN,
"Application Error",
currentViewPort.getExceptionData().getMessage());
FacesContext fctx = FacesContext.getCurrentInstance();
fctx.addMessage("ApplicationInfo", fm);
fctx.renderResponse();
}
}
28 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
ADF Controller
•  Exceptions that occur in context of
task flow are forwarded to exception
handler activity
•  Best Practices - Define exception
handling activity in each bounded
and unbounded task flows
•  Define exception handler in task flow
template for consistency
Exception Handler Activity
29 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
ADF Controller
•  AdfcExceptionHandler is the ADF controller internal framework
class that passes control to the task flow's designated exception
handler activity
•  If no exception handler activity exists, the control is passed the
browser
•  Default exception handler does not handle exceptions thrown during
RENDER_RESPONSE phase
Default Exception Handling
30 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Customizing the Framework Error Handling
•  Configuration
–  Create oracle.adf.view.rich.context.ExceptionHandler
text file and store it in .adfMETA-INFservices
–  you need to create the “services” folder
–  Add the absolute name of your custom exception handler
•  Java class that extends ExceptionHandler
•  Configured for whole ADF application
–  Deployed in EAR file
Add Your Own Exception Handler
31 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
import oracle.adf.view.rich.context.ExceptionHandler;
public class CustomExceptionHandler extends ExceptionHandler {
public CustomExceptionHandler() { super(); }
public void handleException(FacesContext facesContext, Throwable
throwable, PhaseId phaseId) throws Throwable{
if ( … Exception or Error to check …){
//handle issue
}
else {
//pass error to default exception handler
throw throwable;
}
}
}
ADF Controller
Overriding Default Exception Handler Class
32 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.32 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Be thoughtful. Don't override the
framework exception handler to
eagerly or for no reason. Keep in mind
that the error handler is not deployed
with bounded task flows but deployed
with the application.
Image: Ambro/ FreeDigitalPhotos.net
33 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Log Exceptions, Report Exceptions ..
•  Exception handler activities handle exceptions but don't
report them
–  No programming error fixes itself
–  Log and report programming or system errors
•  Implement a exception handling, logging and reporting
strategy that can be reused and that is declaratively applied
•  Report serious issues
–  Considers weekends and vacations
•  Evaluate BPM (SOA Suite) Human Workflow integration
–  In case of emergency, send mail or SMS
34 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Program Agenda
•  Error Handling Introduction
•  Handling ADF Lifecycle Errors
•  ADF Business Components
•  ADF Binding Layer
•  ADF Controller
–  Bounded Task Flow
–  Unbounded Task Flow
•  ADF View
•  Servlet Container
•  Summary
35 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
What Could Happen
Task Flow Exception Propagation
Memory Stack
Current Task Flow
Task Flow 4
Task Flow 3
Task Flow 2
Task Flow 1
Task Flow 2
Call
Task Flow 3
Call
Task Flow 4
Call
!
!
View1
View2
View3
View4
Task Flow 1
Task Flow 2
Task Flow 3
Task Flow 4
EH
EH
Method
Call
Current Task Flow
BANG!
36 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
What Could Happen
Task Flow Exception Propagation
Memory Stack
Current Task Flow
Task Flow 2
Task Flow 1
Task Flow 2
Call
Task Flow 3
Call
Task Flow 4
Call
Propagate
Exception
Propagate
Exception
!
!
View1
View2
View3
View4
Task Flow 1
Task Flow 2
Task Flow 3
Task Flow 4
EH
EH
Current Task Flow
Method
Call
BANG!
37 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
What Could Happen
Task Flow Exception Propagation
!
!
View1
View2
Task Flow 1
Task Flow 2
EH
EH
Memory Stack
Current Task Flow
Task Flow 2
Task Flow 1
Task Flow 2
Call
38 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Visual Example
Exception Handler in Caller Task Flow
BANG!
!
39 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Visual Example
Exception Handler in Top Level Task Flow
BANG!
!
40 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.40 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Every bounded task flow should have an
error handler activity defined. Task flow
templates help to configure error handlers
consistent throughout an application.
Image: Ambro/ FreeDigitalPhotos.net
41 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Program Agenda
•  Error Handling Introduction
•  Handling ADF Lifecycle Errors
•  ADF Business Components
•  ADF Binding Layer
•  ADF Controller
–  Bounded Task Flow
–  Unbounded Task Flow
•  ADF View
•  Servlet Container
•  Summary
42 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Unbounded Task Flow
•  There always is a single unbounded task flow instance available for
an application
–  Independent of the number of adfc-config.xml files available in the
application class path
•  Unbounded task flows cannot be based on task flow templates
Exception Handling Strategy
43 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Unbounded Task Flow
•  To build "error handling templates" for unbounded task flows you use
an unbounded task flow definitions in an ADF Library
–  Keep adfc-config.xml as the unbounded task flow definition file
–  Deploy error handling logic as managed bean within ADF library
–  Load order of unbounded configuration files determines which
exception handler become active in cases of multiple defined
handlers
–  ADFc configuration files on the class path precede configurations
in the application
Exception Handling Strategy
44 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Program Agenda
•  Error Handling Introduction
•  Handling ADF Lifecycle Errors
•  ADF Business Components
•  ADF Binding Layer
•  ADF Controller
–  Bounded Task Flow
–  Unbounded Task Flow
•  ADF View
•  Servlet Container
•  Summary
45 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Exception Handling
•  Typically, view layer exceptions occur because of
–  Failed execution of client logic in managed beans
–  Failed access to the ADF binding layer
• EL references in page source
• Java references in managed beans
–  Failed EL expressions
• Typos in the object name
• Missing objects (e.g. entity object references)
• Failed type casting (e.g. oracle.jbo.domain.Number to Long)
–  Expired session
46 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Exception Raised In Managed Bean
Example: Simulating A Problem
47 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Exception Raised In Managed Bean
Solution: Routing Exception To Binding Layer
48 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Program Agenda
•  Error Handling Introduction
•  Handling ADF Lifecycle Errors
•  ADF Business Components
•  ADF Binding Layer
•  ADF Controller
–  Bounded Task Flow
–  Unbounded Task Flow
•  ADF View
•  Servlet Container
•  Summary
49 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Servlet Container
•  Handles all exceptions not handled by an application
–  Available to all Java EE applications
•  Looks in web.xml file for directive on how to handle a specific error
code or the exception type
•  If nothing is set-up in web.xml, the exception terminates the user
application session
–  In Java, a stack trace is displayed in the browser, which exactly
what you don't want to happen
50 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Java EE Exception Handling
Last Resort
<error-page>
<error-code>
… http error code here (e.g 404)…
</error-code>
<location>/unhandled_error_page.html</location>
</error-page>
<error-page>
<exception-type>
… exception class here … (e.g. java.lang.Throwable)
</exception-type>
<location>/unhandled_exception_page.html</location>
</error-page>
51 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Program Agenda
•  Error Handling Introduction
•  Handling ADF Lifecycle Errors
•  ADF Business Components
•  ADF Binding Layer
•  ADF Controller
–  Bounded Task Flow
–  Unbounded Task Flow
•  ADF View
•  Servlet Container
•  Summary
52 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
ADF Error Handling Summary
Error Handling by Architecture Layers
• try-catch block
• ADFm Error Handler
• Exception Handler Activity
• Custom ADFc Exception
Handler
• try-catch block
• web.xml
ADF Faces
EJB/JPAADF Business Components Java
ADF Model
JAX-WS
Unhandled exceptions
Servlet Container
Unhandledexceptions
Render
Response
Propagates exceptions
ADF Controller
53 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Conclusion
•  Anticipate problems and work on a mitigation
strategy
–  Only leave unexpected errors and errors you
want for pass through unhandled for the handlers
–  Like for application security, perform a risk
analysis and identify threats (database down, WS
not responsive, NPE …)
•  Define exception handling strategies and code them
into custom standard exception handler classes
•  Log errors by severity
54 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Conclusion
•  Access business service methods through the
binding layer
•  Use try/catch blocks in any managed bean method
–  Route managed bean exceptions to the binding layer
reportError() method
•  Use custom task flow exception handler thoughful
–  .adfMETA-INFservices
–  Avoid new exceptions in your exception handler
–  Keep in mind that this exception handler is on an
application level and not task flow / ADF library level
55 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Further Reading
•  Oracle Magazine Article "Catch Me If You Can"
–  http://www.oracle.com/technetwork/issue-archive/2013/13-mar/
o23adf-1897193.html
•  Oracle JDeveloper and ADF Documentation Library
–  Fusion Developer Guide
•  "Handling and Displaying Exceptions in an ADF Application"
•  "Customizing Business Components Error Messages"
•  How to log all errors to the database
–  http://one-size-doesnt-fit-all.blogspot.de/2008/06/jdev-adf-how-to-log-all-
errors-to.html
56 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.

Weitere ähnliche Inhalte

Was ist angesagt?

Oracle ADF Architecture TV - Deployment - Build Options
Oracle ADF Architecture TV - Deployment - Build OptionsOracle ADF Architecture TV - Deployment - Build Options
Oracle ADF Architecture TV - Deployment - Build OptionsChris Muir
 
Oracle ADF Architecture TV - Design - ADF BC Application Module Design
Oracle ADF Architecture TV - Design - ADF BC Application Module DesignOracle ADF Architecture TV - Design - ADF BC Application Module Design
Oracle ADF Architecture TV - Design - ADF BC Application Module DesignChris Muir
 
Oracle ADF Architecture TV - Design - Service Integration Architectures
Oracle ADF Architecture TV - Design - Service Integration ArchitecturesOracle ADF Architecture TV - Design - Service Integration Architectures
Oracle ADF Architecture TV - Design - Service Integration ArchitecturesChris Muir
 
Oracle ADF Architecture TV - Planning & Getting Started - Team, Skills and D...
Oracle ADF Architecture TV -  Planning & Getting Started - Team, Skills and D...Oracle ADF Architecture TV -  Planning & Getting Started - Team, Skills and D...
Oracle ADF Architecture TV - Planning & Getting Started - Team, Skills and D...Chris Muir
 
Oracle ADF Architecture TV - Design - Application Customization and MDS
Oracle ADF Architecture TV - Design - Application Customization and MDSOracle ADF Architecture TV - Design - Application Customization and MDS
Oracle ADF Architecture TV - Design - Application Customization and MDSChris Muir
 
Oracle ADF Architecture TV - Design - ADF Reusable Artifacts
Oracle ADF Architecture TV - Design - ADF Reusable ArtifactsOracle ADF Architecture TV - Design - ADF Reusable Artifacts
Oracle ADF Architecture TV - Design - ADF Reusable ArtifactsChris Muir
 
Oracle ADF Architecture TV - Design - MDS Infrastructure Decisions
Oracle ADF Architecture TV - Design - MDS Infrastructure DecisionsOracle ADF Architecture TV - Design - MDS Infrastructure Decisions
Oracle ADF Architecture TV - Design - MDS Infrastructure DecisionsChris Muir
 
Oracle ADF Architecture TV - Design - ADF Architectural Patterns
Oracle ADF Architecture TV - Design - ADF Architectural PatternsOracle ADF Architecture TV - Design - ADF Architectural Patterns
Oracle ADF Architecture TV - Design - ADF Architectural PatternsChris Muir
 
Oracle ADF Architecture TV - Development - Logging
Oracle ADF Architecture TV - Development - LoggingOracle ADF Architecture TV - Development - Logging
Oracle ADF Architecture TV - Development - LoggingChris Muir
 
Oracle ADF Architecture TV - Design - Project Dependencies
Oracle ADF Architecture TV - Design - Project DependenciesOracle ADF Architecture TV - Design - Project Dependencies
Oracle ADF Architecture TV - Design - Project DependenciesChris Muir
 
Oracle ADF Architecture TV - Design - Usability and Layout Design
Oracle ADF Architecture TV - Design - Usability and Layout DesignOracle ADF Architecture TV - Design - Usability and Layout Design
Oracle ADF Architecture TV - Design - Usability and Layout DesignChris Muir
 
Oracle ADF Architecture TV - Development - Naming Conventions & Project Layouts
Oracle ADF Architecture TV - Development - Naming Conventions & Project LayoutsOracle ADF Architecture TV - Development - Naming Conventions & Project Layouts
Oracle ADF Architecture TV - Development - Naming Conventions & Project LayoutsChris Muir
 
Oracle ADF Architecture TV - Design - Task Flow Data Control Scope Options
Oracle ADF Architecture TV - Design - Task Flow Data Control Scope OptionsOracle ADF Architecture TV - Design - Task Flow Data Control Scope Options
Oracle ADF Architecture TV - Design - Task Flow Data Control Scope OptionsChris Muir
 
Oracle ADF Architecture TV - Design - Task Flow Transaction Options
Oracle ADF Architecture TV - Design - Task Flow Transaction OptionsOracle ADF Architecture TV - Design - Task Flow Transaction Options
Oracle ADF Architecture TV - Design - Task Flow Transaction OptionsChris Muir
 
Oracle ADF Architecture TV - Design - Task Flow Overview
Oracle ADF Architecture TV - Design - Task Flow OverviewOracle ADF Architecture TV - Design - Task Flow Overview
Oracle ADF Architecture TV - Design - Task Flow OverviewChris Muir
 
Oracle ADF Architecture TV - Design - ADF Service Architectures
Oracle ADF Architecture TV - Design - ADF Service ArchitecturesOracle ADF Architecture TV - Design - ADF Service Architectures
Oracle ADF Architecture TV - Design - ADF Service ArchitecturesChris Muir
 
Oracle ADF Architecture TV - Design - Designing for Security
Oracle ADF Architecture TV - Design - Designing for SecurityOracle ADF Architecture TV - Design - Designing for Security
Oracle ADF Architecture TV - Design - Designing for SecurityChris Muir
 
Oracle ADF Architecture TV - Design - Designing for Internationalization
Oracle ADF Architecture TV - Design - Designing for InternationalizationOracle ADF Architecture TV - Design - Designing for Internationalization
Oracle ADF Architecture TV - Design - Designing for InternationalizationChris Muir
 
Oracle ADF Architecture TV - Design - Task Flow Communication Pattern
Oracle ADF Architecture TV - Design - Task Flow Communication PatternOracle ADF Architecture TV - Design - Task Flow Communication Pattern
Oracle ADF Architecture TV - Design - Task Flow Communication PatternChris Muir
 
Oracle ADF Architecture TV - Design - Advanced ADF Task Flow Concepts
Oracle ADF Architecture TV - Design - Advanced ADF Task Flow ConceptsOracle ADF Architecture TV - Design - Advanced ADF Task Flow Concepts
Oracle ADF Architecture TV - Design - Advanced ADF Task Flow ConceptsChris Muir
 

Was ist angesagt? (20)

Oracle ADF Architecture TV - Deployment - Build Options
Oracle ADF Architecture TV - Deployment - Build OptionsOracle ADF Architecture TV - Deployment - Build Options
Oracle ADF Architecture TV - Deployment - Build Options
 
Oracle ADF Architecture TV - Design - ADF BC Application Module Design
Oracle ADF Architecture TV - Design - ADF BC Application Module DesignOracle ADF Architecture TV - Design - ADF BC Application Module Design
Oracle ADF Architecture TV - Design - ADF BC Application Module Design
 
Oracle ADF Architecture TV - Design - Service Integration Architectures
Oracle ADF Architecture TV - Design - Service Integration ArchitecturesOracle ADF Architecture TV - Design - Service Integration Architectures
Oracle ADF Architecture TV - Design - Service Integration Architectures
 
Oracle ADF Architecture TV - Planning & Getting Started - Team, Skills and D...
Oracle ADF Architecture TV -  Planning & Getting Started - Team, Skills and D...Oracle ADF Architecture TV -  Planning & Getting Started - Team, Skills and D...
Oracle ADF Architecture TV - Planning & Getting Started - Team, Skills and D...
 
Oracle ADF Architecture TV - Design - Application Customization and MDS
Oracle ADF Architecture TV - Design - Application Customization and MDSOracle ADF Architecture TV - Design - Application Customization and MDS
Oracle ADF Architecture TV - Design - Application Customization and MDS
 
Oracle ADF Architecture TV - Design - ADF Reusable Artifacts
Oracle ADF Architecture TV - Design - ADF Reusable ArtifactsOracle ADF Architecture TV - Design - ADF Reusable Artifacts
Oracle ADF Architecture TV - Design - ADF Reusable Artifacts
 
Oracle ADF Architecture TV - Design - MDS Infrastructure Decisions
Oracle ADF Architecture TV - Design - MDS Infrastructure DecisionsOracle ADF Architecture TV - Design - MDS Infrastructure Decisions
Oracle ADF Architecture TV - Design - MDS Infrastructure Decisions
 
Oracle ADF Architecture TV - Design - ADF Architectural Patterns
Oracle ADF Architecture TV - Design - ADF Architectural PatternsOracle ADF Architecture TV - Design - ADF Architectural Patterns
Oracle ADF Architecture TV - Design - ADF Architectural Patterns
 
Oracle ADF Architecture TV - Development - Logging
Oracle ADF Architecture TV - Development - LoggingOracle ADF Architecture TV - Development - Logging
Oracle ADF Architecture TV - Development - Logging
 
Oracle ADF Architecture TV - Design - Project Dependencies
Oracle ADF Architecture TV - Design - Project DependenciesOracle ADF Architecture TV - Design - Project Dependencies
Oracle ADF Architecture TV - Design - Project Dependencies
 
Oracle ADF Architecture TV - Design - Usability and Layout Design
Oracle ADF Architecture TV - Design - Usability and Layout DesignOracle ADF Architecture TV - Design - Usability and Layout Design
Oracle ADF Architecture TV - Design - Usability and Layout Design
 
Oracle ADF Architecture TV - Development - Naming Conventions & Project Layouts
Oracle ADF Architecture TV - Development - Naming Conventions & Project LayoutsOracle ADF Architecture TV - Development - Naming Conventions & Project Layouts
Oracle ADF Architecture TV - Development - Naming Conventions & Project Layouts
 
Oracle ADF Architecture TV - Design - Task Flow Data Control Scope Options
Oracle ADF Architecture TV - Design - Task Flow Data Control Scope OptionsOracle ADF Architecture TV - Design - Task Flow Data Control Scope Options
Oracle ADF Architecture TV - Design - Task Flow Data Control Scope Options
 
Oracle ADF Architecture TV - Design - Task Flow Transaction Options
Oracle ADF Architecture TV - Design - Task Flow Transaction OptionsOracle ADF Architecture TV - Design - Task Flow Transaction Options
Oracle ADF Architecture TV - Design - Task Flow Transaction Options
 
Oracle ADF Architecture TV - Design - Task Flow Overview
Oracle ADF Architecture TV - Design - Task Flow OverviewOracle ADF Architecture TV - Design - Task Flow Overview
Oracle ADF Architecture TV - Design - Task Flow Overview
 
Oracle ADF Architecture TV - Design - ADF Service Architectures
Oracle ADF Architecture TV - Design - ADF Service ArchitecturesOracle ADF Architecture TV - Design - ADF Service Architectures
Oracle ADF Architecture TV - Design - ADF Service Architectures
 
Oracle ADF Architecture TV - Design - Designing for Security
Oracle ADF Architecture TV - Design - Designing for SecurityOracle ADF Architecture TV - Design - Designing for Security
Oracle ADF Architecture TV - Design - Designing for Security
 
Oracle ADF Architecture TV - Design - Designing for Internationalization
Oracle ADF Architecture TV - Design - Designing for InternationalizationOracle ADF Architecture TV - Design - Designing for Internationalization
Oracle ADF Architecture TV - Design - Designing for Internationalization
 
Oracle ADF Architecture TV - Design - Task Flow Communication Pattern
Oracle ADF Architecture TV - Design - Task Flow Communication PatternOracle ADF Architecture TV - Design - Task Flow Communication Pattern
Oracle ADF Architecture TV - Design - Task Flow Communication Pattern
 
Oracle ADF Architecture TV - Design - Advanced ADF Task Flow Concepts
Oracle ADF Architecture TV - Design - Advanced ADF Task Flow ConceptsOracle ADF Architecture TV - Design - Advanced ADF Task Flow Concepts
Oracle ADF Architecture TV - Design - Advanced ADF Task Flow Concepts
 

Andere mochten auch

Mobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with Oracle
Mobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with OracleMobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with Oracle
Mobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with OracleChris Muir
 
Let's Talk Mobile
Let's Talk MobileLet's Talk Mobile
Let's Talk MobileChris Muir
 
CRUX (CRUD meets UX) Case Study: Building a Modern Applications User Experien...
CRUX (CRUD meets UX) Case Study: Building a Modern Applications User Experien...CRUX (CRUD meets UX) Case Study: Building a Modern Applications User Experien...
CRUX (CRUD meets UX) Case Study: Building a Modern Applications User Experien...Chris Muir
 
Future of Oracle Forms AUSOUG 2013
Future of Oracle Forms AUSOUG 2013Future of Oracle Forms AUSOUG 2013
Future of Oracle Forms AUSOUG 2013Chris Muir
 
ADF Gold Nuggets (Oracle Open World 2011)
ADF Gold Nuggets (Oracle Open World 2011)ADF Gold Nuggets (Oracle Open World 2011)
ADF Gold Nuggets (Oracle Open World 2011)Lucas Jellema
 

Andere mochten auch (6)

Mobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with Oracle
Mobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with OracleMobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with Oracle
Mobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with Oracle
 
Let's Talk Mobile
Let's Talk MobileLet's Talk Mobile
Let's Talk Mobile
 
CRUX (CRUD meets UX) Case Study: Building a Modern Applications User Experien...
CRUX (CRUD meets UX) Case Study: Building a Modern Applications User Experien...CRUX (CRUD meets UX) Case Study: Building a Modern Applications User Experien...
CRUX (CRUD meets UX) Case Study: Building a Modern Applications User Experien...
 
Joulex & Junos Space SDK: Customer Success Story
Joulex & Junos Space SDK: Customer Success StoryJoulex & Junos Space SDK: Customer Success Story
Joulex & Junos Space SDK: Customer Success Story
 
Future of Oracle Forms AUSOUG 2013
Future of Oracle Forms AUSOUG 2013Future of Oracle Forms AUSOUG 2013
Future of Oracle Forms AUSOUG 2013
 
ADF Gold Nuggets (Oracle Open World 2011)
ADF Gold Nuggets (Oracle Open World 2011)ADF Gold Nuggets (Oracle Open World 2011)
ADF Gold Nuggets (Oracle Open World 2011)
 

Ähnlich wie Oracle ADF Architecture TV - Development - Error Handling

Programming-best practices( beginner) ADF_fusionapps
Programming-best practices( beginner) ADF_fusionappsProgramming-best practices( beginner) ADF_fusionapps
Programming-best practices( beginner) ADF_fusionappsBerry Clemens
 
Best Practices for JSF, Gameduell 2013
Best Practices for JSF, Gameduell 2013Best Practices for JSF, Gameduell 2013
Best Practices for JSF, Gameduell 2013Edward Burns
 
Batch Applications for the Java Platform
Batch Applications for the Java PlatformBatch Applications for the Java Platform
Batch Applications for the Java PlatformSivakumar Thyagarajan
 
ADBA (Asynchronous Database Access)
ADBA (Asynchronous Database Access)ADBA (Asynchronous Database Access)
ADBA (Asynchronous Database Access)Logico
 
Graal and Truffle: One VM to Rule Them All
Graal and Truffle: One VM to Rule Them AllGraal and Truffle: One VM to Rule Them All
Graal and Truffle: One VM to Rule Them AllThomas Wuerthinger
 
Introduction to MySQL Enterprise Monitor
Introduction to MySQL Enterprise MonitorIntroduction to MySQL Enterprise Monitor
Introduction to MySQL Enterprise MonitorMark Leith
 
Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...
Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...
Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...Kamalesh Ramasamy
 
Best Practices & Lessons Learned from the field on EMC Documentum xCP 2.0
Best Practices & Lessons Learned from the field on EMC Documentum xCP 2.0Best Practices & Lessons Learned from the field on EMC Documentum xCP 2.0
Best Practices & Lessons Learned from the field on EMC Documentum xCP 2.0Haytham Ghandour
 
Using Automatic Refactoring to Improve Energy Efficiency of Android Apps
Using Automatic Refactoring to Improve Energy Efficiency of Android AppsUsing Automatic Refactoring to Improve Energy Efficiency of Android Apps
Using Automatic Refactoring to Improve Energy Efficiency of Android AppsLuis Cruz
 
MySQL-Performance Schema- What's new in MySQL-5.7 DMRs
MySQL-Performance Schema- What's new in MySQL-5.7 DMRsMySQL-Performance Schema- What's new in MySQL-5.7 DMRs
MySQL-Performance Schema- What's new in MySQL-5.7 DMRsMayank Prasad
 
Twelve Factor - Designing for Change
Twelve Factor - Designing for ChangeTwelve Factor - Designing for Change
Twelve Factor - Designing for ChangeEric Wyles
 
Advanced Controls access and user security for superusers con8824
Advanced Controls access and user security for superusers con8824Advanced Controls access and user security for superusers con8824
Advanced Controls access and user security for superusers con8824Oracle
 
Lightning page optimization &amp; best practices
Lightning page optimization &amp; best practicesLightning page optimization &amp; best practices
Lightning page optimization &amp; best practicesGaurav Jain
 
JSR 236 Concurrency Utils for EE presentation for JavaOne 2013 (CON7948)
JSR 236 Concurrency Utils for EE presentation for JavaOne 2013 (CON7948)JSR 236 Concurrency Utils for EE presentation for JavaOne 2013 (CON7948)
JSR 236 Concurrency Utils for EE presentation for JavaOne 2013 (CON7948)Fred Rowe
 
OSI_MySQL_Performance Schema
OSI_MySQL_Performance SchemaOSI_MySQL_Performance Schema
OSI_MySQL_Performance SchemaMayank Prasad
 
Functional Programming With Lambdas and Streams in JDK8
 Functional Programming With Lambdas and Streams in JDK8 Functional Programming With Lambdas and Streams in JDK8
Functional Programming With Lambdas and Streams in JDK8IndicThreads
 
Best Practices for Interoperable XML Databinding with JAXB
Best Practices for Interoperable XML Databinding with JAXBBest Practices for Interoperable XML Databinding with JAXB
Best Practices for Interoperable XML Databinding with JAXBMartin Grebac
 
Con8780 nair rac_best_practices_final_without_12_2content
Con8780 nair rac_best_practices_final_without_12_2contentCon8780 nair rac_best_practices_final_without_12_2content
Con8780 nair rac_best_practices_final_without_12_2contentAnil Nair
 
Revised Adf security in a project centric environment
Revised Adf security in a project centric environmentRevised Adf security in a project centric environment
Revised Adf security in a project centric environmentJean-Marc Desvaux
 

Ähnlich wie Oracle ADF Architecture TV - Development - Error Handling (20)

Programming-best practices( beginner) ADF_fusionapps
Programming-best practices( beginner) ADF_fusionappsProgramming-best practices( beginner) ADF_fusionapps
Programming-best practices( beginner) ADF_fusionapps
 
Best Practices for JSF, Gameduell 2013
Best Practices for JSF, Gameduell 2013Best Practices for JSF, Gameduell 2013
Best Practices for JSF, Gameduell 2013
 
Batch Applications for the Java Platform
Batch Applications for the Java PlatformBatch Applications for the Java Platform
Batch Applications for the Java Platform
 
ADBA (Asynchronous Database Access)
ADBA (Asynchronous Database Access)ADBA (Asynchronous Database Access)
ADBA (Asynchronous Database Access)
 
Graal and Truffle: One VM to Rule Them All
Graal and Truffle: One VM to Rule Them AllGraal and Truffle: One VM to Rule Them All
Graal and Truffle: One VM to Rule Them All
 
Introduction to MySQL Enterprise Monitor
Introduction to MySQL Enterprise MonitorIntroduction to MySQL Enterprise Monitor
Introduction to MySQL Enterprise Monitor
 
AngularJS Best Practices
AngularJS Best PracticesAngularJS Best Practices
AngularJS Best Practices
 
Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...
Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...
Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...
 
Best Practices & Lessons Learned from the field on EMC Documentum xCP 2.0
Best Practices & Lessons Learned from the field on EMC Documentum xCP 2.0Best Practices & Lessons Learned from the field on EMC Documentum xCP 2.0
Best Practices & Lessons Learned from the field on EMC Documentum xCP 2.0
 
Using Automatic Refactoring to Improve Energy Efficiency of Android Apps
Using Automatic Refactoring to Improve Energy Efficiency of Android AppsUsing Automatic Refactoring to Improve Energy Efficiency of Android Apps
Using Automatic Refactoring to Improve Energy Efficiency of Android Apps
 
MySQL-Performance Schema- What's new in MySQL-5.7 DMRs
MySQL-Performance Schema- What's new in MySQL-5.7 DMRsMySQL-Performance Schema- What's new in MySQL-5.7 DMRs
MySQL-Performance Schema- What's new in MySQL-5.7 DMRs
 
Twelve Factor - Designing for Change
Twelve Factor - Designing for ChangeTwelve Factor - Designing for Change
Twelve Factor - Designing for Change
 
Advanced Controls access and user security for superusers con8824
Advanced Controls access and user security for superusers con8824Advanced Controls access and user security for superusers con8824
Advanced Controls access and user security for superusers con8824
 
Lightning page optimization &amp; best practices
Lightning page optimization &amp; best practicesLightning page optimization &amp; best practices
Lightning page optimization &amp; best practices
 
JSR 236 Concurrency Utils for EE presentation for JavaOne 2013 (CON7948)
JSR 236 Concurrency Utils for EE presentation for JavaOne 2013 (CON7948)JSR 236 Concurrency Utils for EE presentation for JavaOne 2013 (CON7948)
JSR 236 Concurrency Utils for EE presentation for JavaOne 2013 (CON7948)
 
OSI_MySQL_Performance Schema
OSI_MySQL_Performance SchemaOSI_MySQL_Performance Schema
OSI_MySQL_Performance Schema
 
Functional Programming With Lambdas and Streams in JDK8
 Functional Programming With Lambdas and Streams in JDK8 Functional Programming With Lambdas and Streams in JDK8
Functional Programming With Lambdas and Streams in JDK8
 
Best Practices for Interoperable XML Databinding with JAXB
Best Practices for Interoperable XML Databinding with JAXBBest Practices for Interoperable XML Databinding with JAXB
Best Practices for Interoperable XML Databinding with JAXB
 
Con8780 nair rac_best_practices_final_without_12_2content
Con8780 nair rac_best_practices_final_without_12_2contentCon8780 nair rac_best_practices_final_without_12_2content
Con8780 nair rac_best_practices_final_without_12_2content
 
Revised Adf security in a project centric environment
Revised Adf security in a project centric environmentRevised Adf security in a project centric environment
Revised Adf security in a project centric environment
 

Kürzlich hochgeladen

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 

Kürzlich hochgeladen (20)

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 

Oracle ADF Architecture TV - Development - Error Handling

  • 1. 1 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 2. 2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Real World ADF Design & Architecture Principles Error Handling ORACLE PRODUCT LOGO 15th Feb 2013 v1.0
  • 3. 3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Learning Objectives •  At the end of this module you should be able to: –  Understand the ADF error handling architecture –  Know the scope of an error handler –  Distinguish between error handling and incident reporting Image: imagerymajestic/ FreeDigitalPhotos.net
  • 4. 4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Program Agenda •  Error Handling Introduction •  Handling ADF Lifecycle Errors •  ADF Business Components •  ADF Binding Layer •  ADF Controller –  Bounded Task Flow –  Unbounded Task Flow •  ADF View •  Servlet Container •  Summary
  • 5. 5 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Fiction … Wouldn't it be good if there was a single location to handle all application errors and exceptions?
  • 6. 6 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. … and Fact. Not perfect, but a solution.
  • 7. 7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Program Agenda •  Error Handling Introduction •  Handling ADF Lifecycle Errors •  ADF Business Components •  ADF Binding Layer •  ADF Controller –  Bounded Task Flow –  Unbounded Task Flow •  ADF View •  Servlet Container •  Summary
  • 8. 8 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. ADF Error Handling Hooks - Overview ADF Faces (ADFv) EJB/JPAADF Business Components Java ADF Model (ADFm) JAX-WS Unhandled exceptions Servlet Container Unhandledexceptions Render Response Propagates exceptions ADF Controller (ADFc) Business Service Layer ADF Binding Layer Data Control
  • 9. 9 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. ADF Exception Handlers •  ADFm Exception Handler –  Error Handler (DCErrorHandler) in BindingContext •  ADFc Exception Handler –  Exception Handler activity in Task-Flow –  Application wide Exception Handler •  ADFv Exception Handler –  oracle.adf.view.rich.context.ExceptionHandler •  Container, error-page in web.xml
  • 10. 10 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. ADF Error Handling Overview ADF Interaction in JSF Request Lifecycle EJB/JPAADF Business Components Java ADF Binding JAX-WS Restore View Apply Request Process ValidationUpdate Model Invoke Action Render Response 1 2 3 4 5 6 JSF
  • 11. 11 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Program Agenda •  Error Handling Introduction •  Handling ADF Lifecycle Errors •  ADF Business Components •  ADF Binding Layer •  ADF Controller –  Bounded Task Flow –  Unbounded Task Flow •  ADF View •  Servlet Container •  Summary
  • 12. 12 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. oracle.jbo.JboException •  JboException extends java.lang.RuntimeException –  Thus Business Component method can throw exceptions without a throws clause in the method signature •  Translation of error messages occur by the client calling getLocalizedMessage() and not when an error is thrown One Exception Super Class for All Exceptions
  • 13. 13 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Bundled Exception Mode •  Enabled by default •  Presents maximal set of failed validation exceptions •  Java supports single exception to be thrown at a time •  ADF BC moves all exceptions under a parent exception –  Multiple entity attribute validation errors (ValidationException) are wrapped in RowValException parent exception –  Multiple rows that fail validation performed during commit will have the RowValException wrapped in TxnValException object –  You can recursively introspect exception by calling getDetails() on each exception All Exceptions at Once
  • 14. 14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Exceptions that are not handled in the business service propagate to the ADF model layer. Image: Ambro/ FreeDigitalPhotos.net
  • 15. 15 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Program Agenda •  Error Handling Introduction •  Handling ADF Lifecycle Errors •  ADF Business Components •  ADF Binding Layer •  ADF Controller –  Bounded Task Flow –  Unbounded Task Flow •  ADF View •  Servlet Container •  Summary
  • 16. 16 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. ADF Model Error Handler •  The ADF model error handler deals with –  All ADF binding errors –  Business service errors that occur when accessing a service trough the ADF binding layer •  Formats and displays error message •  Default error handler skips the top-level JboException because it only is a bundled exception wrapper for other business exceptions
  • 17. 17 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Creating A Custom Error Handler •  Extend oracle.adf.model.binding.DCErrorHandlerImpl and configure your custom error error handler in DataBindings.cpx •  Override the following methods as needed –  reportException •  Override this method to analyze exceptions for errors you want to handle –  getDisplayMessage •  Override to change or suppress (null value) the displayed message –  getDetailedDisplayMessage •  Override this method to provide HTML markup formatted detail information –  skipException(Exception ex) •  Called by the framework to check if an exception should be ignored
  • 18. 18 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Oracle JDeveloper 11g R2
  • 19. 19 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Custom Error Handler Example Skip Exception for SQL Exceptions public class CustomErrorHandler extends DCErrorHandlerImpl { ... protected boolean skipException(Exception ex) { if (ex instanceof DMLConstraintException) { return false; //don't show details of SQL exception } else if (ex instanceof SQLException) { return true; } else { return super.skipException(ex); } } )
  • 20. 20 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Skip Exception Example SQLIntegrityConstraintViolationException skipException == false skipException == true
  • 21. 21 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.21 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. The code is from a managed bean in our application. What happens in case of an exception? Image: imagerymajestic/ FreeDigitalPhotos.net OperationBinding operationBinding = null; operationBinding = getOperationBinding("UpdateOrder"); operationBinding.execute(); …
  • 22. 22 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. On a Related Note •  It happens quite often that developers execute a client method directly on the Application Module –  BindingContext > findDataControl("...") > getDataProvider() –  Cast data provider to Application Module interface –  Execute client methods on it •  The risk is that –  Exceptions thrown by the client interface logic are not handled by the ADFm error handler if invoked directly –  Inconsistent error handling may occur
  • 23. 23 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Program Agenda •  Error Handling Introduction •  Handling ADF Lifecycle Errors •  ADF Business Components •  ADF Binding Layer •  ADF Controller –  Bounded Task Flow –  Unbounded Task Flow •  ADF View •  Servlet Container •  Summary
  • 24. 24 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.24 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. The ADF controller handles exceptions that occur during task flow execution Image: Ambro/ FreeDigitalPhotos.net
  • 25. 25 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. ADF Controller Exception Handling •  Exceptions that may occur during task flow execution include –  Method call activity that throws an exception –  Task flow initialize or finalize methods throwing an exception –  Authorization failures when accessing an activity •  Controller exceptions are handled by a task flow activity that is designated as an exception handler •  When a task flow throws an exception, control flow is passed to the designated exception handling activity Introduction
  • 26. 26 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Exception Handler Activity How-to Define an Activity as the Exception Handler
  • 27. 27 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Example: Method Error Handler public void showErrorDialog() { ControllerContext context = ControllerContext.getInstance(); ViewPortContext currentViewPort = context.getCurrentViewPort(); if (currentViewPort.isExceptionPresent()) { FacesMessage fm = new FacesMessage( FacesMessage.SEVERITY_WARN, "Application Error", currentViewPort.getExceptionData().getMessage()); FacesContext fctx = FacesContext.getCurrentInstance(); fctx.addMessage("ApplicationInfo", fm); fctx.renderResponse(); } }
  • 28. 28 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. ADF Controller •  Exceptions that occur in context of task flow are forwarded to exception handler activity •  Best Practices - Define exception handling activity in each bounded and unbounded task flows •  Define exception handler in task flow template for consistency Exception Handler Activity
  • 29. 29 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. ADF Controller •  AdfcExceptionHandler is the ADF controller internal framework class that passes control to the task flow's designated exception handler activity •  If no exception handler activity exists, the control is passed the browser •  Default exception handler does not handle exceptions thrown during RENDER_RESPONSE phase Default Exception Handling
  • 30. 30 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Customizing the Framework Error Handling •  Configuration –  Create oracle.adf.view.rich.context.ExceptionHandler text file and store it in .adfMETA-INFservices –  you need to create the “services” folder –  Add the absolute name of your custom exception handler •  Java class that extends ExceptionHandler •  Configured for whole ADF application –  Deployed in EAR file Add Your Own Exception Handler
  • 31. 31 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. import oracle.adf.view.rich.context.ExceptionHandler; public class CustomExceptionHandler extends ExceptionHandler { public CustomExceptionHandler() { super(); } public void handleException(FacesContext facesContext, Throwable throwable, PhaseId phaseId) throws Throwable{ if ( … Exception or Error to check …){ //handle issue } else { //pass error to default exception handler throw throwable; } } } ADF Controller Overriding Default Exception Handler Class
  • 32. 32 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.32 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Be thoughtful. Don't override the framework exception handler to eagerly or for no reason. Keep in mind that the error handler is not deployed with bounded task flows but deployed with the application. Image: Ambro/ FreeDigitalPhotos.net
  • 33. 33 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Log Exceptions, Report Exceptions .. •  Exception handler activities handle exceptions but don't report them –  No programming error fixes itself –  Log and report programming or system errors •  Implement a exception handling, logging and reporting strategy that can be reused and that is declaratively applied •  Report serious issues –  Considers weekends and vacations •  Evaluate BPM (SOA Suite) Human Workflow integration –  In case of emergency, send mail or SMS
  • 34. 34 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Program Agenda •  Error Handling Introduction •  Handling ADF Lifecycle Errors •  ADF Business Components •  ADF Binding Layer •  ADF Controller –  Bounded Task Flow –  Unbounded Task Flow •  ADF View •  Servlet Container •  Summary
  • 35. 35 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. What Could Happen Task Flow Exception Propagation Memory Stack Current Task Flow Task Flow 4 Task Flow 3 Task Flow 2 Task Flow 1 Task Flow 2 Call Task Flow 3 Call Task Flow 4 Call ! ! View1 View2 View3 View4 Task Flow 1 Task Flow 2 Task Flow 3 Task Flow 4 EH EH Method Call Current Task Flow BANG!
  • 36. 36 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. What Could Happen Task Flow Exception Propagation Memory Stack Current Task Flow Task Flow 2 Task Flow 1 Task Flow 2 Call Task Flow 3 Call Task Flow 4 Call Propagate Exception Propagate Exception ! ! View1 View2 View3 View4 Task Flow 1 Task Flow 2 Task Flow 3 Task Flow 4 EH EH Current Task Flow Method Call BANG!
  • 37. 37 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. What Could Happen Task Flow Exception Propagation ! ! View1 View2 Task Flow 1 Task Flow 2 EH EH Memory Stack Current Task Flow Task Flow 2 Task Flow 1 Task Flow 2 Call
  • 38. 38 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Visual Example Exception Handler in Caller Task Flow BANG! !
  • 39. 39 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Visual Example Exception Handler in Top Level Task Flow BANG! !
  • 40. 40 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.40 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Every bounded task flow should have an error handler activity defined. Task flow templates help to configure error handlers consistent throughout an application. Image: Ambro/ FreeDigitalPhotos.net
  • 41. 41 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Program Agenda •  Error Handling Introduction •  Handling ADF Lifecycle Errors •  ADF Business Components •  ADF Binding Layer •  ADF Controller –  Bounded Task Flow –  Unbounded Task Flow •  ADF View •  Servlet Container •  Summary
  • 42. 42 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Unbounded Task Flow •  There always is a single unbounded task flow instance available for an application –  Independent of the number of adfc-config.xml files available in the application class path •  Unbounded task flows cannot be based on task flow templates Exception Handling Strategy
  • 43. 43 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Unbounded Task Flow •  To build "error handling templates" for unbounded task flows you use an unbounded task flow definitions in an ADF Library –  Keep adfc-config.xml as the unbounded task flow definition file –  Deploy error handling logic as managed bean within ADF library –  Load order of unbounded configuration files determines which exception handler become active in cases of multiple defined handlers –  ADFc configuration files on the class path precede configurations in the application Exception Handling Strategy
  • 44. 44 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Program Agenda •  Error Handling Introduction •  Handling ADF Lifecycle Errors •  ADF Business Components •  ADF Binding Layer •  ADF Controller –  Bounded Task Flow –  Unbounded Task Flow •  ADF View •  Servlet Container •  Summary
  • 45. 45 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Exception Handling •  Typically, view layer exceptions occur because of –  Failed execution of client logic in managed beans –  Failed access to the ADF binding layer • EL references in page source • Java references in managed beans –  Failed EL expressions • Typos in the object name • Missing objects (e.g. entity object references) • Failed type casting (e.g. oracle.jbo.domain.Number to Long) –  Expired session
  • 46. 46 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Exception Raised In Managed Bean Example: Simulating A Problem
  • 47. 47 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Exception Raised In Managed Bean Solution: Routing Exception To Binding Layer
  • 48. 48 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Program Agenda •  Error Handling Introduction •  Handling ADF Lifecycle Errors •  ADF Business Components •  ADF Binding Layer •  ADF Controller –  Bounded Task Flow –  Unbounded Task Flow •  ADF View •  Servlet Container •  Summary
  • 49. 49 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Servlet Container •  Handles all exceptions not handled by an application –  Available to all Java EE applications •  Looks in web.xml file for directive on how to handle a specific error code or the exception type •  If nothing is set-up in web.xml, the exception terminates the user application session –  In Java, a stack trace is displayed in the browser, which exactly what you don't want to happen
  • 50. 50 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Java EE Exception Handling Last Resort <error-page> <error-code> … http error code here (e.g 404)… </error-code> <location>/unhandled_error_page.html</location> </error-page> <error-page> <exception-type> … exception class here … (e.g. java.lang.Throwable) </exception-type> <location>/unhandled_exception_page.html</location> </error-page>
  • 51. 51 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Program Agenda •  Error Handling Introduction •  Handling ADF Lifecycle Errors •  ADF Business Components •  ADF Binding Layer •  ADF Controller –  Bounded Task Flow –  Unbounded Task Flow •  ADF View •  Servlet Container •  Summary
  • 52. 52 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. ADF Error Handling Summary Error Handling by Architecture Layers • try-catch block • ADFm Error Handler • Exception Handler Activity • Custom ADFc Exception Handler • try-catch block • web.xml ADF Faces EJB/JPAADF Business Components Java ADF Model JAX-WS Unhandled exceptions Servlet Container Unhandledexceptions Render Response Propagates exceptions ADF Controller
  • 53. 53 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Conclusion •  Anticipate problems and work on a mitigation strategy –  Only leave unexpected errors and errors you want for pass through unhandled for the handlers –  Like for application security, perform a risk analysis and identify threats (database down, WS not responsive, NPE …) •  Define exception handling strategies and code them into custom standard exception handler classes •  Log errors by severity
  • 54. 54 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Conclusion •  Access business service methods through the binding layer •  Use try/catch blocks in any managed bean method –  Route managed bean exceptions to the binding layer reportError() method •  Use custom task flow exception handler thoughful –  .adfMETA-INFservices –  Avoid new exceptions in your exception handler –  Keep in mind that this exception handler is on an application level and not task flow / ADF library level
  • 55. 55 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Further Reading •  Oracle Magazine Article "Catch Me If You Can" –  http://www.oracle.com/technetwork/issue-archive/2013/13-mar/ o23adf-1897193.html •  Oracle JDeveloper and ADF Documentation Library –  Fusion Developer Guide •  "Handling and Displaying Exceptions in an ADF Application" •  "Customizing Business Components Error Messages" •  How to log all errors to the database –  http://one-size-doesnt-fit-all.blogspot.de/2008/06/jdev-adf-how-to-log-all- errors-to.html
  • 56. 56 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.