Skip Headers
Oracle® SOA Suite Developer's Guide
10g (10.1.3.1.0)

Part Number B28764-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

12.11 Error Handling in Message Instance Processing

When an error occurs in Oracle Enterprise Service Bus processing, the error is noted by visual cues, such as icon and color changes, in Oracle ESB Control. A red icon identifies an error condition, as shown in Figure 12-9.

Figure 12-9 Instances View – Tracking Tab with Error

Description of Figure 12-9 follows
Description of "Figure 12-9 Instances View – Tracking Tab with Error"

In addition to the visual cues in Oracle ESB Control, you can set up notifications by email, fax, or phone when errors occur. See Section 12.3.1, "How to View and Modify System Definitions".

Error handling in Oracle Enterprise Service Bus involves several types of errors that can occur in transaction processing:

Error handling is processed differently whether asynchronous and synchronous execution is specified for a routing service. In general, errors during synchronous execution cannot be retried and errors during asynchronous execution can be resubmitted.

For more information about error handling in Oracle Enterprise Service Bus, see "Error Handling" in Oracle Enterprise Service Bus Developer's Guide.

12.11.1 About Adapter Error Handling

An adapter handles exceptions and faults using the default error handling process of the adapter.

  • By default, an adapter retries the message three times at five-second intervals for an error condition. The retry count and interval can be specified in the endpoint properties of the adapter service. For information about endpoint properties, see Section 6.6, "Adding Endpoint Properties for Adapter or SOAP Services".

  • If an inbound adapter fails to invoke a routing service for a certain number of consecutive times, it marks itself broken and disables itself. Oracle ESB Control displays this event source with a special icon to visually represent its disabled state. You can enable the adapter service.

  • If the next service that the inbound adapter invokes does not exist, perhaps because it has been deleted or is not enabled, then the inbound adapter processor disables itself and marks itself broken.

  • If a subscription fails a certain number of consecutive times, the service notifies the repository to mark it as in a broken state. The dispatcher does not dispatch this subscription after it is marked as broken.

12.11.2 How to Resubmit Messages on Errors

When an error occurs while a message is being processed, it is indicated by a red icon next to the routing service in Oracle ESB Control, as shown in Figure 12-9.

In some situations, a message instance can be resubmitted. If a routing rule has been set to asynchronous execution, you can resubmit a message instance after fixing the error condition.

You can view error message, trace, and payload details by clicking the Error Details icon under the Message column on the Errors tab, as shown in Figure 12-11.

Figure 12-10 provides an example of the Error Details dialog.

Figure 12-10 Error Details Dialog

Description of Figure 12-10 follows
Description of "Figure 12-10 Error Details Dialog"

After you review the error details and fix the error condition, you can resubmit the message to the invoking service.

To resubmit a message on error:

  1. At the top of Oracle ESB Control, click the Instances icon to display the message instance processing.

  2. In the Instances panel of the Instances view, click the message instance where the error occurred.

    The Tracking tab appears, similar to Figure 12-9.

  3. Click the Error tab to display the error information.

  4. Click the Error Details icon under the Message column to view error message, trace, and payload details about the error condition in the Errors Detail dialog.

  5. Click OK to close the Errors Detail dialog after reviewing the error message details.

  6. Correct the error condition, and then click Resubmit in the Error tab.

    For example, edit the message payload in the Resubmission Payload window if is incorrect and then click Resubmit.

Figure 12-11 provides an example of the resubmitted message instance.

Figure 12-11 Instances View - Error Tab

Description of Figure 12-11 follows
Description of "Figure 12-11 Instances View - Error Tab"

12.11.3 What Happens When You Resubmit Messages on Errors

When you resubmit a message, ESB begins processing the message again. If the error condition has been corrected, the message processing should be successful.