This discussion is archived
0 Replies Latest reply: Sep 29, 2012 9:17 PM by Shantanu Ghosh RSS

11.1.1.6 File Adapter SynchRead Rejection Handler

Shantanu Ghosh Newbie
Currently Being Moderated
Hi,
I have a scenario where I have to read a positional flat file using SynchRead (Chunk) operation, and handle the schema validation failure. I have create the fault policy as described in the Oracle documentation but its not picking the Rejection directory specified in the Fault Policy, and I get a Binding error.

Exception occured when binding was invoked.
Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'SynchRead' failed due to: Cannot create/verify default Rejection Handler directory = 'jca\chunked\ChunckRead:FileReadAdapter [ SynchRead_ptt::SynchRead(Empty,body) ] _XRok781IAncmhDsHG2Ovxo+Im5+VSqgUjycgwf3I3eA=\rejectedMessageHandlers'".
The invoked JCA adapter raised a resource exception.
Please examine the above error message carefully to determine a resolution.

My Fault Policy file:
<?xml version="1.0" encoding="UTF-8"?>
<faultPolicies version="2.0.1" xmlns="http://schemas.oracle.com/bpel/faultpolicy" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<faultPolicy version="2.0.1" id="RejectedMessages">
<Conditions> <!-- All the fault conditions are defined here -->
<faultName xmlns:rjm="http://schemas.oracle.com/sca/rejectedmessages" name="rjm:FileReadAdapter">
<condition>
<action ref="writeToFile"/> <!-- action to be taken, refer to Actions section for the details of the action -->
</condition>
</faultName>
</Conditions>
<Actions> <!-- All the actions are defined here -->
<Action id="writeToFile">
<fileAction>
<location>C:\bea\reject</location>
<fileName>%ID%_%TIMESTAMP%.xml</fileName>
</fileAction>
</Action>
</Actions>
</faultPolicy>
</faultPolicies>

My Fault Binding File:
<faultPolicyBindings version="2.0.1" xmlns="http://schemas.oracle.com/bpel/faultpolicy" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<service faultPolicy="RejectedMessages">
<name>FileReadAdapter</name>
</service>
</faultPolicyBindings>

I have tested the same fault policy and binding for a file polling operation and it works.

Thanks,
Shantanu

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points