0 Replies Latest reply: Sep 29, 2012 11:17 PM by Shantanu Ghosh RSS File Adapter SynchRead Rejection Handler

    Shantanu Ghosh
      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">
      <action ref="writeToFile"/> <!-- action to be taken, refer to Actions section for the details of the action -->
      <Actions> <!-- All the actions are defined here -->
      <Action id="writeToFile">

      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">

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