Presentation is loading. Please wait.

Presentation is loading. Please wait.

Manohar1 Fault Handling Activities covered: 1.Scope 2.Throw 3.Catch 4.Sensor.

Similar presentations


Presentation on theme: "Manohar1 Fault Handling Activities covered: 1.Scope 2.Throw 3.Catch 4.Sensor."— Presentation transcript:

1 Manohar1 Fault Handling Activities covered: 1.Scope 2.Throw 3.Catch 4.Sensor

2 Manohar2 Fault  Fault is an disturbance occurred during the happy path execution of a process which result in a signal being sent from the system. Disturbance can for various reason like Technical Error Programming Error Faulty Operation by Client Exceptional business behavior  Fault Handling allows a BPEL process service component to handle error messages or other exceptions returned by outside web services, and to generate error messages in response to business or runtime faults.  You can also define a fault management framework to catch faults and perform user- specified actions defined in a fault policy file.

3 Manohar3 Fault Types  Business Faults: Fault generated in business scenario’s. 1. From Partner Link 2. From Process  Technical Faults: Faults generated from system 1. Standard Faults 2. Runtime Faults - Binding Fault - Remote Fault

4 Manohar4 Business Fault  Business faults are application-specific faults that are generated when there is a problem with the information being processed (for example, when a social security number is not found in the database).  A business fault occurs when an application executes a throw activity or when an invoke activity receives a fault as a response. The fault name of a business fault is specified by the BPEL process service component  The messageType, if applicable, is defined in the WSDL. A business fault can be caught with a faultHandler using the faultName and a faultVariable.

5 Manohar5 Cont… <wsdl:fault message="order:ProductNotInStockFaultMessage" name="ProductNotInStockFault"/> <wsdl:fault message="order:CustomerNotFoundFaultMessage" name="CustomerNotFoundFault"/> 1.Service contract including fault 2. Fault message payload

6 Manohar6 Cont… CST-1234 Customer not found John Doe Long Beach 3 Actual service response

7 Manohar7 Technical Fault – Standard fault  Standard Faults: Are the faults that directly from BPEL Specification. -BPEL4WS specification defines the following standard faults in the namespace of http://schemas.xmlsoap.org/ws/2003/03/business-process/ http://schemas.xmlsoap.org/ws/2003/03/business-process/ - Standard faults are defined as follows: -Typeless, meaning they do not have associated messageTypes -Not associated with any Web Services Description Language (WSDL) message -Caught without a fault variable

8 Manohar8 Cont… bindingFault and remoteFault ( BPEL extension fault defined in http://schemas.oracle.com/bpel/extension ) conflictingReceive conflictingRequest correlationViolation forcedTermination invalidReply joinFailure mismatchedAssignmentFailure repeatedCompensation ambiguousReceive completionConditionFailure invalidBranchCondition invalidExpressionValue invalidVariables missingReply missingRequest scopeInitializationFailure selectionFailure uninitializedPartnerRole uninitializedVariable unsupportedReference xsltInvalidSource xsltStylesheetNotFound

9 Manohar9 Technical Fault – Runtime Fault  Runtime Faults: - Runtime faults are the result of problems within the running of the BPEL component. - Runtime faults are not user-defined, and are thrown by the system. We need to define parts in the process to handle them. - Are generated if the process tries to use a value incorrectly, a logic error occurs (such as an endless loop), a Simple Object Access Protocol (SOAP) fault occurs in a SOAP call, an exception is thrown by the server, and so on -In BPEL we will use catch activity to handle them. S:Server Could not connect to URL 127.0.0.1 on port 8001 Actual service response

10 Manohar10 Cont… Binding Fault 1.Binding Fault A binding fault is thrown inside an activity if the preparation of the invocation fails. A bindingFault is not retryable. This type of fault usually must be fixed by human intervention. Eg: the WSDL of the process fails to load.

11 Manohar11 E.g. of Binding Faults Fault CodeDescription of Fault VersionMismatchThe processing party found an invalid namespace for the SOAP envelope element. MustUnderstandAn immediate child element of the SOAP header element that was either not understood or not obeyed by the processing party contained a SOAP MustUnderstand attribute with a value of 1. Client.GenericErrorGeneric error on the client side Client.WrongNumberOfInputPartsInput message part number mismatch Client.WrongNumberOfOutputPartsOutput message part number mismatch Client.WrongTypeOfInputPartInput message part type error Client.WrongTypeOfOutputPartOutput message part type error Server.GenericErrorGeneric error on the server side Server.NoServiceServer is up, but there is no service Server.NoHTTPSOAPActionRequest is missing the HTTP SOAP action Server.UnauthenticatedRequest is not authenticated Server.UnauthorizedRequest is not authorized

12 Manohar12 Cont… Remote Fault 2. Remote Fault A remoteFault is also thrown inside an activity. A remoteFault can be configured to be retried Thrown because the invocation fails. Eg: SOAP fault is returned by the remote service. Fault CodeDescription of Fault ConnectionRefusedRemote server is unavailable WSDLReadingErrorFailed to read the WSDL GenericRemoteFaultGeneric remote fault


Download ppt "Manohar1 Fault Handling Activities covered: 1.Scope 2.Throw 3.Catch 4.Sensor."

Similar presentations


Ads by Google