Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Mediator Error handling using Fault Mgt Framework is not working

Sharmistha GhoshMay 6 2013 — edited May 9 2013
Hi All,

I want to handle fault in Mediator using fault Management Framework. I have built one composite which will call a service,which is deployed on server. Later I shut down the web service ,resulting in the error

I have copied the fault-policies.xml and fault-bindings.xml files in the same directory structure of the composite.xml of the project.

fault-policies.xml
****************

<?xml version="1.0" encoding="UTF-8"?>
<faultPolicies>
<faultPolicy version="2.0.1" id="ErrorhandlingApp">
<Condition >
<!-- ======================================================================
Genric Fault Policy framework :Mediator fault
====================================================================== -->
<faultName xmlns:medns="http://schemas.oracle.com/mediator/faults"
name="medns:mediatorFault">
<condition>
<test>contains($fault.mediatorErrorCode,
"TYPE_FATAL_MESH")</test>
<action ref="ora-abort"/>
</condition>
</faultName>
<!-- ======================================================================
Genric Fault Policy framework : Action
====================================================================== -->
<Actions>
<Action id="ora-abort">
<abort/>
</Action>
</Actions>
</Conditions>
</faultPolicy>
</faultPolicies>

fault-bindings.xml
******************

<?xml version="1.0" encoding="UTF-8"?>
<faultPolicyBindings version="2.0.1"
xmlns="http://schemas.oracle.com/bpel/faultpolicy"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<composite faultPolicy="ErrorhandlingApp"/>
</faultPolicyBindings>

My intention is to catch/handle the fault using fault policies,but my fault -policies.xml is not working.

I followed this documentation : http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/med_faulthandling.htm

Any suggestion would be helpful to me.

Thanks in Advance,
Sharmistha

Comments

contemplator

It's funny that the day before, I get stumped by a problem the whole day... then the next day I find the answer to my problem.

The view is actually working. but the last record is not appearing. This is the same for my tables. no last record.

I get 3 rows in the table in the SQL Command Line.

I get 2 rows in the view in the SQL Command Line.

I get 2 rows in the table in the PHP Web page.

I get 1 row in the view in the PHP Web page.

I have only changed the select statement, the rest of the code is the same.

help?

contemplator

OK, I have just figured it out.

Oracle 11g XE allows for one session. Connecting to Oracle through PHP counts as a session.

Disconnecting the console fixed the problem.

Christopher Jones-Oracle

You can have more than one session at a time to XE.  At a guess, you hadn't committed in the first session and disconnecting performed the commit for you.  This let the other session see the data.

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 6 2013
Added on May 6 2013
4 comments
457 views