Synchronized File

i want write synchronized File Class, it extends File Class, it has
two new method "readfile"and"deletefile",
but deleting file must be afer reading file , if current directory has no
file, any of the two method is not allow to run.
anyone has idea?

Try this...
public synchronized void readFile(){
boolean check = checkFileExists();
if(!check){           
return;
doReadFile();
public synchronized void deleteFile(){
boolean check = checkFileExists();
if(!check){           
return;
doReadFile();
doDeleteFile();
// Below are not thread safe
// called only from either readFile() or deleteFile()
private boolean checkFileExists(){
// returns true if file exists, false otherwise
// called only from either readFile() or deleteFile()
private void doReadFile(){
// Read the file
// called only from either readFile() or deleteFile()
private void doDeleteFile(){
// Delete the file
Hope this helps

Similar Messages

  • Issue in Synchronous File Read in clustered environment

    Hi,
    We are using clustered environment (4 managed servers) in Unix. In a OSB 11gR3 proxy service we are using Synchronous File Read. Randomly we are getting the below error. Let us know what could cause the issue. But the same code is working fine in a single stand-alone server configuration.
    Error Code : BEA-380002 , Error Reason : Invoke JCA outbound service failed with connection error, exception: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/wsdlPathAndName [ SynchRead_ptt::SynchRead(Empty,body) ] - WSIF JCA Execute of operation 'SynchRead' failed due to: No Data to process.
    No Data to process.
    File /root/oracle/domains/osb/11.1.1.4/cluster/data/osb2/FolderName/Filename.txt to be processed was not found or not available or has no content ; nested exception is:
    BINDING.JCA-11007
    No Data to process.
    No Data to process.
    File /root/oracle/domains/osb/11.1.1.4/cluster/data/osb2/FolderNamer/Filename.txt to be processed was not found or not available or has no content Please make sure that the file exists in the specified directory.
    com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/wsdlPathAndName [ SynchRead_ptt::SynchRead(Empty,body) ] - WSIF JCA Execute of operation 'SynchRead' failed due to: No Data to process.
    No Data to process.
    File /root/oracle/domains/osb/11.1.1.4/cluster/data/osb2/FolderName/Filename.txt to be processed was not found or not available or has no content ; nested exception is:
    BINDING.JCA-11007
    No Data to process.
    No Data to process.
    File /root/oracle/domains/osb/11.1.1.4/cluster/data/osb2/FolderName/Filename.txt to be processed was not found or not available or has no content Please make sure that the file exists in the specified directory.
    at com.bea.wli.sb.transports.jca.binding.JCATransportOutboundOperationBindingServiceImpl.invoke(JCATransportOutboundOperationBindingServiceImpl.java:153)
    at com.bea.wli.sb.transports.jca.JCATransportEndpoint.sendRequestResponse(JCATransportEndpoint.java:209)
    at com.bea.wli.sb.transports.jca.JCATransportEndpoint.send(JCATransportEndpoint.java:170)
    at com.bea.wli.sb.transports.jca.JCATransportProvider.sendMessageAsync(JCATransportProvider.java:598)
    at sun.reflect.GeneratedMethodAccessor1115.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.wli.sb.transports.Util$1.invoke(Util.java:83)
    at $Proxy142.sendMessageAsync(Unknown Source)
    at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageAsync(LoadBalanceFailoverListener.java:148)
    at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToServiceAsync(LoadBalanceFailoverListener.java:603)
    at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToService(LoadBalanceFailoverListener.java:538)
    at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageToService(TransportManagerImpl.java:558)
    at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageAsync(TransportManagerImpl.java:426)
    at com.bea.wli.sb.pipeline.PipelineContextImpl.doDispatch(PipelineContextImpl.java:670)
    at com.bea.wli.sb.pipeline.PipelineContextImpl.dispatchSync(PipelineContextImpl.java:551)
    at stages.transform.runtime.WsCalloutRuntimeStep$WsCalloutDispatcher.dispatch(WsCalloutRuntimeStep.java:1391)
    at stages.transform.runtime.WsCalloutRuntimeStep.processMessage(WsCalloutRuntimeStep.java:236)
    at com.bea.wli.sb.stages.StageMetadataImpl$WrapperRuntimeStep.processMessage(StageMetadataImpl.java:346)
    at com.bea.wli.sb.stages.impl.SequenceRuntimeStep.processMessage(SequenceRuntimeStep.java:33)
    at com.bea.wli.sb.pipeline.PipelineStage.processMessage(PipelineStage.java:84)
    at com.bea.wli.sb.pipeline.PipelineContextImpl.execute(PipelineContextImpl.java:1055)
    at com.bea.wli.sb.pipeline.Pipeline.processMessage(Pipeline.java:141)
    at com.bea.wli.sb.pipeline.PipelineContextImpl.execute(PipelineContextImpl.java:1055)
    at com.bea.wli.sb.pipeline.PipelineNode.doRequest(PipelineNode.java:55)
    at com.bea.wli.sb.pipeline.Node.processMessage(Node.java:67)
    at com.bea.wli.sb.pipeline.PipelineContextImpl.execute(PipelineContextImpl.java:1055)
    at com.bea.wli.sb.pipeline.Router.processMessage(Router.java:214)
    at com.bea.wli.sb.pipeline.MessageProcessor.processRequest(MessageProcessor.java:96)
    at com.bea.wli.sb.pipeline.RouterManager$1.run(RouterManager.java:593)
    at com.bea.wli.sb.pipeline.RouterManager$1.run(RouterManager.java:591)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
    at com.bea.wli.sb.pipeline.RouterManager.processMessage(RouterManager.java:590)
    at com.bea.wli.sb.transports.TransportManagerImpl.receiveMessage(TransportManagerImpl.java:375)
    at com.bea.wli.sb.transports.jca.binding.JCATransportInboundOperationBindingServiceImpl$4.run(JCATransportInboundOperationBindingServiceImpl.java:415)
    at com.bea.wli.sb.transports.jca.binding.JCATransportInboundOperationBindingServiceImpl$4.run(JCATransportInboundOperationBindingServiceImpl.java:413)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.security.Security.runAs(Security.java:61)
    at com.bea.wli.sb.transports.jca.binding.JCATransportInboundOperationBindingServiceImpl.sendMessage(JCATransportInboundOperationBindingServiceImpl.java:413)
    at com.bea.wli.sb.transports.jca.binding.JCATransportInboundOperationBindingServiceImpl.invokeOneWay(JCATransportInboundOperationBindingServiceImpl.java:126)
    at com.bea.wli.sb.transports.jca.binding.JCAInboundRequestListener.post(JCAInboundRequestListener.java:39)
    at oracle.tip.adapter.sa.impl.inbound.JCAInboundListenerImpl.onMessage(JCAInboundListenerImpl.java:170)
    at oracle.tip.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage(MessageEndpointImpl.java:502)
    at oracle.tip.adapter.file.inbound.Publisher.onMessageDelegate(Publisher.java:493)
    at oracle.tip.adapter.file.inbound.Publisher.publishMessage(Publisher.java:419)
    at oracle.tip.adapter.file.inbound.InboundTranslatorDelegate.xlate(InboundTranslatorDelegate.java:484)
    at oracle.tip.adapter.file.inbound.InboundTranslatorDelegate.doXlate(InboundTranslatorDelegate.java:121)
    at oracle.tip.adapter.file.inbound.ProcessorDelegate.doXlate(ProcessorDelegate.java:388)
    at oracle.tip.adapter.file.inbound.ProcessorDelegate.process(ProcessorDelegate.java:174)
    at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:349)
    at weblogic.work.ContextWrap.run(ContextWrap.java:41)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/wsdlPathAndName [ SynchRead_ptt::SynchRead(Empty,body) ] - WSIF JCA Execute of operation 'SynchRead' failed due to: No Data to process.
    No Data to process.
    File /root/oracle/domains/osb/11.1.1.4/cluster/data/osb2/FolderName/Filename.txt to be processed was not found or not available or has no content ; nested exception is:
    BINDING.JCA-11007
    No Data to process.
    No Data to process.
    File /root/oracle/domains/osb/11.1.1.4/cluster/data/osb2/FolderName/Filename.txt to be processed was not found or not available or has no content Please make sure that the file exists in the specified directory.
    at oracle.tip.adapter.sa.impl.JCABindingReferenceImpl.request(JCABindingReferenceImpl.java:259)
    at com.bea.wli.sb.transports.jca.binding.JCATransportOutboundOperationBindingServiceImpl.invoke(JCATransportOutboundOperationBindingServiceImpl.java:150)
    ... 56 more
    Caused by: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/wsdlPathAndName [ SynchRead_ptt::SynchRead(Empty,body) ] - WSIF JCA Execute of operation 'SynchRead' failed due to: No Data to process.
    No Data to process.
    File /root/oracle/domains/osb/11.1.1.4/cluster/data/osb2/FolderName/Filename.txt to be processed was not found or not available or has no content ; nested exception is:
    BINDING.JCA-11007
    No Data to process.
    No Data to process.
    File /root/oracle/domains/osb/11.1.1.4/cluster/data/osb2/FolderName/Filename.txt to be processed was not found or not available or has no content Please make sure that the file exists in the specified directory.
    at oracle.tip.adapter.sa.impl.fw.wsif.jca.WSIFOperation_JCA.performOperation(WSIFOperation_JCA.java:662)
    at oracle.tip.adapter.sa.impl.fw.wsif.jca.WSIFOperation_JCA.executeOperation(WSIFOperation_JCA.java:353)
    at oracle.tip.adapter.sa.impl.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:312)
    at oracle.tip.adapter.sa.impl.JCABindingReferenceImpl.invokeWsifProvider(JCABindingReferenceImpl.java:350)
    at oracle.tip.adapter.sa.impl.JCABindingReferenceImpl.request(JCABindingReferenceImpl.java:253)
    ... 57 more
    Caused by: BINDING.JCA-11007
    No Data to process.
    No Data to process.
    File /root/oracle/domains/osb/11.1.1.4/cluster/data/osb2/FolderName/Filename.txt to be processed was not found or not available or has no content Please make sure that the file exists in the specified directory.
    at oracle.tip.adapter.file.outbound.FileReader.readFile(FileReader.java:277)
    at oracle.tip.adapter.file.outbound.FileReader.executeFileRead(FileReader.java:181)
    at oracle.tip.adapter.file.outbound.FileInteraction.executeFileRead(FileInteraction.java:331)
    at oracle.tip.adapter.file.outbound.FileInteraction.execute(FileInteraction.java:395)
    at oracle.tip.adapter.sa.impl.fw.wsif.jca.WSIFOperation_JCA.performOperation(WSIFOperation_JCA.java:529)
    ... 61 more
    Edited by: 842347 on Jul 6, 2011 3:11 AM

    I face the same issue and I have given all permissions to the folder for OS user.
    Because of this error my server is not starting up . Is there any way I can undeploy this composite to get my server running.
    I cant do this from EM because SOA server is failing to start up.
    I have tried removing it from $DOMAIN_HOME/deployed-composites but still when i try restarting the soa server the composite comes up there. Do we need to delete the entry some where else too. Kindly help.
    Thanks,
    Sri.

  • Synchronous File Read on Invoke Problem

    I am trying to invoke file adapter to read the file once(Synchronous File Read) as described in Bpeltechadapter guide.
    Read about Synchronous File Reading Capability here download.oracle.com/otndocs/products/bpel/bpeltechadp.pdf
    Also read this: Re: Help! Three questions about FileAdapater. .
    I get this process generation failed when i try to build it. The Empty_msg in inputvariable of invoke works but problem is with Charges_msg in output variable.
    I am sure its something to do with ns but not getting it to work.
    PL_FileInbound.WSDL code*********************
    <definitions
    name="PL_FileInbound"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/PL_FileInbound/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/file/PL_FileInbound/"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
    xmlns:imp1="http://TargetNamespace.com/FA_ReadFile"
    xmlns:hdr="http://xmlns.oracle.com/pcbpel/adapter/file/"
    >
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/file/" location="fileAdapterOutboundHeader.wsdl"/>
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/PL_FileInbound/">
    <import namespace="http://TargetNamespace.com/FA_ReadFile" schemaLocation="PipeDelimitedNIX_Charges.xsd" />
    <element name="empty"><complexType/></element>
    </schema>
    </types>
    <message name="Chargesheet_msg">
    <part name="Chargesheet" element="impl:Chargesheet"/>
    </message>
    <message name="Empty_msg">
    <part name="Empty" element="tns:empty"/>
    </message>
    <portType name="SynchronousRead_ptt">
    <operation name="SynchronousRead">
    <input message="tns:Empty_msg"/>
    <output message="tns:Chargesheet_msg"/>
    </operation>
    </portType>
    <binding name="SynchronousRead_binding" type="tns:SynchronousRead_ptt">
    <jca:binding />
    <operation name="SynchronousRead">
    <jca:operation
    PhysicalDirectory="C:\Incoming"
    InteractionSpec="oracle.tip.adapter.file.outbound.FileReadInteractionSpec"
    FileName="abcl.txt"
    DeleteFile="false"
    OpaqueSchema="false">
    </jca:operation>
    <input>
    <jca:header message="hdr:OutboundHeader_msg" part="outboundHeader"/>
    </input>
    </operation>
    </binding>
    <service name="PL_FileInbound">
    <port name="SynchronousRead_pt" binding="tns:SynchronousRead_binding">
    <jca:address location="eis/FileAdapter" />
    </port>
    </service>
    <plt:partnerLinkType name="Read_plt" >
    <plt:role name="Read_role" >
    <plt:portType name="tns:SynchronousRead_ptt" />
    </plt:role>
    </plt:partnerLinkType>
    </definitions>
    BPEL Source ******************************************
    <!--
    // Oracle JDeveloper BPEL Designer
    // Created: Sat Apr 29 16:52:43 CDT 2006
    // Author: dpatel
    // Purpose: Synchronous BPEL Process
    -->
    <process name="SynchronousFileRead"
    targetNamespace="http://xmlns.oracle.com/SynchronousFileRead"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/file/PL_FileInbound/"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:client="http://xmlns.oracle.com/SynchronousFileRead"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <!-- ================================================================= -->
    <!-- PARTNERLINKS -->
    <!-- List of services participating in this BPEL process -->
    <!-- ================================================================= -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="client:SynchronousFileRead"
    myRole="SynchronousFileReadProvider"/>
    <partnerLink myRole="Read_role" name="PL_FileInbound"
    partnerRole="Read_role" partnerLinkType="ns1:Read_plt"/>
    </partnerLinks>
    <!-- ================================================================= -->
    <!-- VARIABLES -->
    <!-- List of messages and XML documents used within this BPEL process -->
    <!-- ================================================================= -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable"
    messageType="client:SynchronousFileReadRequestMessage"/>
    <!--
    Reference to the message that will be returned to the requester
    -->
    <variable name="outputVariable"
    messageType="client:SynchronousFileReadResponseMessage"/>
    <variable name="Invoke_1_SynchronousRead_InputVariable"
    messageType="ns1:Empty_msg"/>
    <variable name="Invoke_1_SynchronousRead_OutputVariable"
    messageType="ns1:Chargesheet_msg"/>
    </variables>
    <!-- ================================================================= -->
    <!-- ORCHESTRATION LOGIC -->
    <!-- Set of activities coordinating the flow of messages across the -->
    <!-- services integrated within this business process -->
    <!-- ================================================================= -->
    <sequence name="main">
    <!-- Receive input from requestor.
    Note: This maps to operation defined in SynchronousFileRead.wsdl
    -->
    <receive name="receiveInput" partnerLink="client"
    portType="client:SynchronousFileRead" operation="process"
    variable="inputVariable" createInstance="yes"/>
    <!-- Generate reply to synchronous request -->
    <invoke name="Invoke_1" partnerLink="PL_FileInbound"
    portType="ns1:SynchronousRead_ptt" operation="SynchronousRead"
    inputVariable="Invoke_1_SynchronousRead_InputVariable"
    outputVariable="Invoke_1_SynchronousRead_OutputVariable"/>
    <!--outputVariable="Invoke_1_SynchronousRead_OutputVariable"-->
    <reply name="replyOutput" partnerLink="client"
    portType="client:SynchronousFileRead" operation="process"
    variable="outputVariable"/>
    </sequence>
    </process>
    I would really appreciate your help here.

    I face the same issue and I have given all permissions to the folder for OS user.
    Because of this error my server is not starting up . Is there any way I can undeploy this composite to get my server running.
    I cant do this from EM because SOA server is failing to start up.
    I have tried removing it from $DOMAIN_HOME/deployed-composites but still when i try restarting the soa server the composite comes up there. Do we need to delete the entry some where else too. Kindly help.
    Thanks,
    Sri.

  • Synchronous file adapter sender side configuration in sap pi

    Hi Experts
    synchronous file adapter sender side configuration in sap pi
    can you explain any one tell me step by step procedure?
    Regards
    Sagar

    Hi,
    You can use RequestResponseBean in the sender file adapter module .
    RequestResponseBean (SAP Library - SAP Exchange Infrastructure)
    Request/Response Bean for IDOC_AAE adapter
    Instead of IDOC_AAE adapter you can use FILE adapter.
    Regards,

  • How shall I use my IMac and MacBookPro, with synchronized files

    Hi, how shall I use my IMac and MacBookPro, with synchronized files? I used to work at home and office with those to machines and finally always have different version of my documents. Is there any dispositive that I should use, where all my files are moving with me? os there is something to synchronized the computers using WiFi or bluetooth?

    The following has instructions: OS X Mavericks: Share your Internet connection

  • Synchronous File Read in a High Availability Scenario

    Hi All,
    We have Oracle SOA Suite 10.1.3.4 which is a High Availability instance. As per Oracle's doc Id 730515.1 we have edited the bpel.xml file with the property for Adapter cluster only in the cases where a BPEL process was polling for a file and instantiating the process to avoid the race around condition.
    However, we have not made this change for BPEL process which contain a synchronous read. As I understand, such processes(which contain a synchronous read) are already instantiated before the file is read and hence the race around scenario does not exist.
    Please correct me if my understanding is incorrect. Also, will I need to make any changes for the process in such a case.
    Thanks and regards.

    Hi Marcio,
    The Oracle Document I mentioned available on Metalink states:
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Applies to:
    Oracle9i AS Integration Platform - Version: 10.1.3.3
    Information in this document applies to any platform.
    Goal
    You have installed BPEL cluster. However, you expect that adapters doing the same work on two different nodes might encounter a race condition. So you would like to configure a singleton adapter. This note describes how to do it.
    Solution
    1. In collaxa-config.xml change from
    <property id="clusterName">
    <name>Cluster Id</name>
    <value>machine_name:port</value>
    <comment>
    to
    <property id="clusterName">
    <name>Cluster Id</name>
    <value>bpelCluster</value>
    <comment>
    The value: 'bpelCluster'
    can be anything but has to be the same on both instances.
    2. Multicast host and port in jgroups-properties.xml have to be same on both instances.
    3. To enable a singleton adapter add the following property in bpel.xml of the process using the adapter in question:
    <property name="clusterGroupId">adapterCluster</property>
    where the actual value - 'adapterCluster' in this case can be anything but has to be different from the value used before (bpelCluster) when configuring BPEL cluster. The reason for that is that BPEL engine and an adapter will use different communication channels.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    I would Like to know if this is applicable incase we have a BPEL Process which contains a synchronous read.
    Thanks and Regards.

  • Synchronous File- Soap scenario with fault message

    Hi!
    I have a File to Soap synchronous scenario.
    All is right when no exception is returned by the web service.
    I want to use fault messages to catch thoses exceptions, so I have added fault message in message interfaces and in the mapping program in the interface mapping.
    Now, when the web service return an exception like :
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
       <soap-env:Body>
          <soap-env:Fault>
             <faultcode>soap-env:Client</faultcode>
             <faultstring xml:lang="en">NOT_CREATED</faultstring>
             <detail>
                <n0:Z_WS_CREATE_WAGON.Exception xmlns:n0="urn:sap-com:document:sap:rfc:functions">
                   <Name>NOT_CREATED</Name>
                   <Text> does not have packaging material type and is therefore not a pack.mat.</Text>
                   <Message>
                      <ID>HUSELECT</ID>
                      <Number>041</Number>
                   </Message>
                </n0:Z_WS_CREATE_WAGON.Exception>
             </detail>
          </soap-env:Fault>
       </soap-env:Body>
    </soap-env:Envelope>
    I get the following error :
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
       <SAP:Category>XIServer</SAP:Category>
       <SAP:Code area="MAPPING">NO_MAPPINGPROGRAM_FOUND</SAP:Code>
       <SAP:P1>http://www.arcelormittal.com/radis/rad IM_RAD_to_ZWsCreateWagon</SAP:P1>
       <SAP:P2 />
       <SAP:P3 />
       <SAP:P4 />
       <SAP:AdditionalText />
       <SAP:ApplicationFaultMessage namespace="" />
       <SAP:Stack>Interface mapping http://www.arcelormittal.com/radis/rad IM_RAD_to_ZWsCreateWagon does not exist in runtime cache</SAP:Stack>
       <SAP:Retry>N</SAP:Retry>
    </SAP:Error>
    My mapping program for fault message is well defined (I tested it with the exception message received from the web service).
    I have also refresh caches, but without success...
    Can anyone help me ?
    Thanks in advance,
    Laurence

    Hey Laurence,
    A File adapter is aysnchronous u cant use for synchrous because it cant acknwlodge the response it gets or itt sends.
    regarding two asynchoronus
    1. file to SOAP asychn.
    2. triggger the second one if SOAP has exception then pass the error from SOAP to New File.
    using BPM we have to use Transportion level acknowledgments
    please reward points if it helps
    Regards
    Sreeram.G.Reddy

  • SOAP-PI-File scenario: synchronous file pickup possible without ccBPM?

    Hi,
    is it possible that I pick up a file synchronous without usage of ccBPM? What I'd like to achieve: I'd like to send a filename in the body of a SOAP request. Depending on that filename, I'd like to collect that file on the filesystem and send it back as the message body of the SOAP response. From my understanding, the receiver file adapter can just write files. In my scenario, I'd need the receiver file adapter for picking up a file (which is normally a sender file adapter).
    Anybody with a good hint how to achieve something like that?
    Best regards
    Holger

    Hi colleagues,
    I am facing a similar requirement.
    Provide file content via synchronous Webservice (trigger)
    Webservice (sender) <-> PI <-> File (receiver)
    Is there a possibilty to use File/FTP Adapter, which is normally asynchronous by default in such a scenario e.g. by using a SAP adapter module.
    Or are there any other standard PI functions to meet this requirement.
    Otherwise a specific Webservice have to be created which will read the file and return it´s content within the webservice response. Do you see a possibility to deploy such a service on the PI Java server?
    Due to development effort I would prefer a standard function instead of creation of specific Webservice.
    Thanks for sharing your thoughts.
    Best regards,
    Jochen

  • Saving Synchronized Files Status

    I'm converting all my Dreamweaver sites from CS3 to CS6 (Cloud). Since all the site info has to be rebuilt, Dreamweaver shows all the files on the site as un-synchronized, even though they haven't changed since the conversion. When selecting all the files in the list that it wants to synchronize, and then clicking the "Mark All Files As Already Synchronized" and clicking okay, it doesn't appear to save it anywhere. When selecting "Synchronize with Remote Server" again, all the same files are displayed. I have a bunch of sites, with thousands of files and really don't want to spend hours re-sending them. Any suggestions?
    Thanks!
    jancointl

    How did you move/ migrate your site definitions from CS3 to CS6? Did it automatically adapt them or did you manually configure them?

  • BPM Synchronous file to file scenario

    Hi All,
    Could anyone please guide me for BPM Synchronous FILE2FILE steps. I am learning BPM.
    Design: I want the sender file to be put to receiver. and from receiver i need to fetch the same output file and give back to the sender after transforming back to sender structure.(I want to learn the flow.).
    Regards,
    Senthilprakash.

    Hi guys and my old friend Navneet,
    File doesnt support Sysnchronous as we all know. and when we try to achive Synhronous via BPM. It will not execute the Synchronous Send Step Interface in the BPM. As this step will require a Sync Interface so this interface will require Response Message(Target to Source) immediately once it process the request message(Source to Target).
    Thou we will schedule the CC and have another Seder Adapter from (Target to Sender). The Synchronous interface in the syn Send step inside the BPM will fail as File wont Trigger any Response Message for the Sync Interface once the Request Message is processed.
    File to File is not possible with a Synchronous Interface.
    We can acheive the design with BPM in a way that it sends from Source to Target with a Asynchronous Interface(Source to Target).
    and anohter Interface with scheduled CC to pick the file from Target to Source with another Asynchronous Interface(Target to Source).
    NOTE: Above all can be done without BPM also. But as i had already told i just wanted to Design and check a BPM :).
    Regards,
    Senthilprakash.
    Edited by: senthilprakash selvaraj on Nov 12, 2008 4:12 AM

  • Synchronizing Files Over a LAN&amp;mdash;What's Best?

    We're a small outfit trying to figure out the best way to work locally, yet keep our files synchronized on a central server without having to invest in a CMS. Simply trying to remember to copy the file over to the appropriate folder on the network doesn't work. How best to go about it just using the Mac Finder or something cheap and easy?
    Our setup is fairly simple and straightforward. There are two Mac workstations, with our files on a central Synology NAS drive, which is also used by other parts of our organization for their purposes. We both have Time Machine backups to our local machines using external hard drives attached to each of them respectively. (As an aside, I am wary of backing up to the NAS drive using Time Machine because I don't want to cause problems for the other departments in our organization who also rely on using space on the drive.) I like this setup because were I to do the obvious thing and work off the NAS drive, it slows me down, even over Gigabit Ethernet (Word is especially awful in this regard).
    So the question is, how do my colleague and I keep files we work on (the same file) locally synced on the network?

    You say you are not an audiophile but you own a pair of AKG Q701s--pretty respectable kit if you are listening to 256kbps iTunes and, frankly, a waste of cash. You will not get your money's worth out of such a nice set of cans without a headphone DAC / amp. so I think you raise a good question.
    I have a DAC/headphone amp (Nuforce Icon HDP) hooked up to a Mac Mini used as a music server then out to my ancient Hitachi main amp via USB2. I ripped CDs into lossless format (limited by CD format of 44.1 khz / 16bit) and iTunes is aided by a third party piece of software called Bitperfect (in the app store $4.99). That may be an option for you though it sounds like $500 is too much for your purposes. If not...
    I play the same lossless library from my iPad and iMac using a tiny but excellent portable DAC/amp called the Fiio E10 (only US$80). Check out this review. Again you use your USB to output from the Mac. I would avoid the headphone jack unless you are using the optical option built-in. If you are not an audiophile but want to improve your sound considerably for little cash then this, for me anyway, has been a good solution. Again, lossless is the way to go. I do not buy iTunes anymore--life is too short to listen to compressed tunes, esp. Jazz, solo piano or string quartets. One extra tip--avoid the digital volume control in iTunes. Go into MIDI settings and turn the volume up to 100% then use the DAC/ Amp to control the volume.   Here is a helpful article from Benchmark.
       Cheers.

  • Dreamweaver CS5.5 hangs when synchronizing files

    I work with a non-profit that has just bought two CS5.5 Design Premium licenses. One of our first tasks is to manage an organizational website in Dreamweaver CS5.5
    We need both users to be able to do updates, one on a Mac (me), and the other user on a PC in a different office.
    Attempt 1: Use the Subversion features, to allow collaboration and versioning. Hmmm — after much research it appears setting this is not meant for anyone but Unix power users.
    Attempt 2: Use the simpler "Synchronize" and "Check In/Out" features. Trouble here too, and many hours now down the drain. It's a fairly large site. Dreamweaver hangs almost immediately on trying to mark a long list of files as already synchronized, while using roughly 100% of a CPU.
    This should be a simple startup task — set up two users' copies of the site as synchronized with the server version, so we can safely begin checking files in and out and making changes from two locations.
    Can anyone give me guidance on how to get this to work?

    You will have to have Live view turned on for BrowserLab to work.
    Gramps

  • Trouble putting or synchronizing files/site

    Hi everyone. It's been a long time since I dabbled in
    dreamweaver, but I keep getting a crash when I try to synchronize
    or put a file to the server. It sometimes gives a 5xx error or just
    hangs up. I am using MX on a Windows XP system. The computer is
    brand new. I had been using MX on an older PC with no crashes or
    problems until a virus, but since changing over to the new
    computer, I have had trouble getting things to flow smoothly. I'm
    sure it's just me doing something wrong, but is MX typically buggy?
    I updated it to the 6.1 version, and it did not help. Is
    DreamWeaver 8 better, less problematic, worth the upgrade? What are
    some frequent errors of synchronizing?
    Any help would be appreciated.
    Philip

    Hi, thank you for taking the time to help me.  I'm embarrassed to admit that I don't know what site definitions are and no I did not do anything with them that I know of.  I am a complete novice.  I set up my site by following a list of instructions I found on a website.  I don't remember anything about site definitions. I see a folder next to my site in the files list.  When I test my connection on the FTP set up page it says it is working fine.  I'm going to try to figure out where the remote site definition fields are.  Thank you so much for helping me with this.

  • Synchronizing files between an iMac and MacBook

    Hi I was wondering if there's an utility that can let me keep synchronized my personal files between my iMac and my laptop.
    Thanks
    Percy
    iMac 17" 2Ghz Intel core 2 duo   Mac OS X (10.4.9)  

    Percy,
    Read the review for ChronoSync on Mac360.
    ;~)

  • FileLock vs. synchronized(file)

    Hi,
    In a web app I have a servlet that writes several files to disk if they don't already exist--a cache. I have enclosed the write operation in a synchronized block like the following to prevent collisions:
    File outFile = new File("file.txt");
    FileOutputStream out;
    synchronized (outFile) {
    out = new FileOutputStream(outFile);
    [write stuff to stream];
    out.close();
    It dawned on me that maybe I should be locking the file instead of using the synchronized block, however, no other application, or servlet for that matter, would ever write these files. Also, the way my web app is structured, it's impossible that another servlet would try to read the files unless they already have been written (otherwise the writing servlet is invoked and the worst case is that the second, slightly later thread, re-writes the exact same file--not really a problem).
    What are the considerations?
    At what moment would a test for the existence of the file from another thread return true--at the completion of "out.close();"? I hope so, or that will be a problem for threads trying to read the incomplete file.
    Thanks.

    Hiya. What I would do is have a counter
    int read_access_count; // This would be 0 or higher.
    boolean file_blocked // true or false
    Every time someone opens the file for reading the read_access_count gets incremented by one, and when someone finishes reading the file it goes down by one.
    So when someone wants to write to the file they first make sure read_access_count is 0. If read_access_count is say for example 5, then the thread marks the file_blocked as true and waits for the read_access_count to go to 0. Once 0 it opens the file and writes to it. Then it finishes and sets file_blocked to false. Now all the files waiting to read can read and increment read_access_count by one again.
    A thread that wants to read the file must check file_blocked to make sure it isn't true. This prevents reading incomplete files and all sorts of situations.
    And you are correct to use synchronization in the methods controlling these variables, read_access_count and file_blocked.

Maybe you are looking for

  • Issue in Datasource creation Transaction data

    Hi, While creating the Datasource for the Transaction Data , we have info objects custom defined with length NUMC & length4 , but when in the proposal tab when saying the Load example data the data type and length are changing to INT2 and 5 like wise

  • Using Spaces with Audio Units?

    I was trying to figure out if it is possible to have specific audio unit device displays in separate "spaces". It would be nice to have an entire screen designated for each window. all i've tried so far is dragging the window, but it only seems to fo

  • Is it possible to write in this Way....?

    Dear All, I'm very new to Oracle Pl/SQL My store proc is as below.. I have a table Name: test_synch Note: test_synch has the data that needs to be updated in multiple tables. and it has multi columns along with destination table and column name and n

  • How to insert GMT in ORACLE.

    Hi All, select TO_TIMESTAMP_TZ('Tue May 24 20:11:20 +05:30 2011', 'DY MON DD HH24:MI:SS TZH:TZM YYYY') from dual; I am able to get the output for above select query. But my requirement is to have *"GMT"* as in the following query, which doesnt work.

  • PNP LDB Authorization skipping

    Hi Experts, We have a custom report reading data from  Infotype 0000,0001,0002 and 9001.This is working fine. There are many SAP users who will use the report. Users AAXX have 9001 authorization and user BBXX does not have 9001 authorization. Problem