Skip Headers
Oracle® Enterprise Service Bus Developer's Guide
10g (10.1.3.3.0)

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

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

11 Error Handling

This chapter describes how to interpret error conditions and how to handle them in Oracle Enterprise Service Bus. The Instances view in the Oracle ESB Control enables you to view and manage error conditions that occur across the enterprise service bus.

This chapter contains the following topics:

You can also view the log files with Oracle Enterprise Manager to check for details on error conditions. See "Checking Log Files".

11.1 Overview of Error Handling

When an error occurs in Oracle Enterprise Service Bus processing, the error is noted by visual cues, such as icon and color changes, in the Oracle ESB Control. See Figure 10-4, Figure 10-5, and Figure 10-6. Also, you can also set up notifications by email, fax, or phone when errors occur. See "Setting Up Notification Channels".

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. Errors during synchronous execution are rolled back and cannot be retried with Oracle ESB Control; errors during asynchronous execution can be resubmitted. For more information about asynchronous and synchronous execution, see "Specifying Synchronous or Asynchronous Execution".

11.2 Managing Error Conditions

This section discuses how to manage errors conditions that occur with Oracle Enterprise Service Bus.

The topics contained in this section are:

11.2.1 Inbound Adapter Error Handling

An inbound 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 "Using Endpoint Properties".

  • If an inbound adapter fails to invoke a routing service for a certain number of consecutive times, it marks itself broken and disables itself. The 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.

The administrator is notified of any disabled services.

For more information about adapters, including a discussion of managing errors, see Oracle Application Server Adapter Concepts.

11.2.2 User Error Handling

When an error occurs during process a message instance, it is indicated by a red service icon in the Tracking tab of the Oracle ESB Control Instances view.

An error condition in the Tracking tab appears similar to Figure 11-1.

Figure 11-1 Instances View – Tracking Tab

Description of Figure 11-1 follows
Description of "Figure 11-1 Instances View – Tracking Tab"

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

Figure 11-2 is an example of the Error Details dialog.

Figure 11-2 Error Details Dialog

Description of Figure 11-2 follows
Description of "Figure 11-2 Error Details Dialog"

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

For information about enabling validation of the payload at runtime, see Table 3-6 in "Viewing Service Definitions".

11.2.3 Resubmitting Messages on Errors

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

To resubmit a message on error, follow these steps:

  1. At the top of the 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.

  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, 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 11-3 is an example of the resubmitted message instance.

Figure 11-3 Instances View - Errors Tab

Description of Figure 11-3 follows
Description of "Figure 11-3 Instances View - Errors Tab"