Introducing a wait after Send step - file write in cc BPM

Hi
    We have a cc BPM - in which we have a send step - that writes a to a file system - we have a transport acknowledgement requested in this step  - which we receive in runtime - once the message is passed into the Adapter engine ( not after the file is written )
The requirement is that the next step after this send step should not be started until the file is written to the folder. We have an option of introducing a wait - but do not want to delay the BPM by a full minute ( the least wait time is a minute ) .
How do we make sure that the step after send step - file write executes only after the file is written to the folder in the send step ?
Any ideas, solutions, work arounds ?

we have a transport acknowledgement requested in this step - which we receive in runtime - once the message is passed
into the Adapter engine ( not after the file is written )
Transport Ack sends back the ACK when the message is successfully delivered from the Adapter Engine (channel) to the end system.....and not when the message is transferred to Adapter Engine....if there is any error in sending message to AE then the BPM does not need Transport Ack logic to ctach it....only Exception Branch is enough then
is there any other way of introducing a wait - less than a minute
The Wait step of BPM cannot go below the minimum limit of 1 minute......if you want to introduce a delay of some seconds then in a mapping use the Thread.sleep logic and check.....this will slow down (stop) the processing....for more info refer:
Re: Delay in MM possible ?
Regards,
Abhishek.

Similar Messages

  • Reuse message after send step in integration process

    Hi all,
    I have a strange problem....
    In my integration process, after some steps, I send a message asynch (in config an FTP receiver). After this I need to reuse the message just sent for a transformation, but the ip dumps. If I delete the send step, everything ends without error!
    Is it possible that I cannot reuse a message after a send step? If so, why?
    Thanks for any help...
    Ilaria

    > ReceiveTransformAToBSendBTransformBToCSendC
    TransformAToB...ok
    But in Step TransformBToC...you have to specify the Interface Mapping..it means
    the Interface mapping should be between Outbound Interface for B and Inbound Interface C.
    So u can store the B Abstract Message in the Container.
    SO your BPM Look like this way...
    <b>StartReceiveTranAtoBSendToBContainerToStoreTheValueofBTranBtoCSendtoC--Stop</b>
    ContainerToStoreTheValueofB store the value of transformed message(that is B )
    THen in TranBtoC (source=message stored in container and Target = C message)
    I do hope it will work as per your requirement.
    Thanks
    Farooq.

  • Should I wait after sending a remote device wipe command before removing an ActiveSync partnership?

    The process for terminating users at the company I'm presently working for includes remotely wiping any ActiveSync devices and then removing the ActiveSync relationship. I'm writing a PowerShell script to automate the process and, when I send the remove-ActiveSyncDevice
    cmdlet after sending the clear-ActiveSyncDevice cmdlet, I get a warning that "the device is waiting to be wiped".
    If I remove the device, does that cancel any pending wipe commands?
    I've done as much web searching as I can in order to find the answer and I'm just having no luck. I would assume that Exchange would give me a more informative warning if removing the device would cancel the wipe request, but since there's so little detail
    in the warning I just can't be sure.
    I've read the technet references on the commands and the technet articles on managing mobile phones - none answer this question.
    MS
    Technet reference on clear-activesyncdevice
    MS Technet reference on remove-activesyncdevice
    MS Technet reference on Managing Mobile Devices
    I have done numerous web searches with multiple search engines using keywords I would expect for this query. I have also searched these forums. I've also asked several of my colleagues at work, all of whom assume that the wipe command is still processed after
    removing the partnership, but none of them have any references to back that up.
    As a note, I'm using Exchange 2010, but I assume that it shouldn't be too different between 2010 and 2013.

    Well, it seems no one knows the answer.
    I dug up an old phone and tested. Here is my test scenario:
    Add the account to the phone and sync with Exchange
    Power off the phone
    Send wipe command from EMC
    Remove partnership in EMC
    Power phone back on
    Open e-mail and sync with Exchange
    The result was that the e-mail client on the phone reconnected the mailbox and created a new partnership with Exchange. The wipe command was not queued and was obliterated along with the first partnership.
    So the answer is: Yes, wait until confirmation that the phone has been wiped before removing the partnership.

  • Reader 10.0.1 not closing after sending a file to print

    Hi all,
    We have an application that uses the windows file handlers for printing out a report. Since upgrading to Reader X 10.0.0 or to 10.0.1 (using group policy) from Reader 8 or 9 this feature doesnt work. After Reader Opens the file prints out but leaves the reader application sitting at the screen please select a file to open. This stops the next report from being printed out until the application is closed. This is the same if you right hand click on the file in windows and select print. FIle Prints but leaves the application open. Is there some magical IT trick to correct this?? I have turned of the protected at start up. The report prints fine so I dont think it is a font issue.
    Clients are WIndows XP SP3 on Domain and fully patched according to WSUS last week.
    Thanks in advance

    I get a message saying it can't open the patch. I have tried everything
    I can think of to remove and reinstall but can't remove because it can't open the patch

  • File sender adapter:FILE to IDOC without BPM, can't see in SXMB_MONI.

    Hi all
    I have a FILE - XI - IDOC Async scenario without BPM.
    I configured FILE sender adapter and IDOC receiver adapter. I made a mapping to transfer file data to the structure of IDOC.
    Now when i am trying to load the file using command prompt, i cud see nothing in the monitoring. Whereas if i go to the communication channel monitoring of runtime workbench, i saw that CC is polling correctly and was reading the file also.
    And also wen i saw in the processed folder which i mentioned in the CC configuration for the ARCHIVE DIRECTORY, i saw that file got transferred to the folder also.
    I don't understand why i cant see anything in the monitoring.
    Could anybody help me to rectify the problem. Is there anything i m missing ?
    Regards
    Naina

    Rajesh/Amar
    TCode:: SXMB_ADM->Integration engine configuration->specific configuration->runtime
    Trace_Level = 3 then you can get all MONI PIPELINE Steps also
    I did this change but cudn't see anything in SXMB_MONI.
    This is how i have configured my process:
    http://wiki.sdn.sap.com/wiki/display/XI/FiletoMultipleIDOCSplittingwithoutBPM
    But instead of IDOC splitting i have simple FILE - XI -IDOC scenario.
    I have configured everything exaclty the same way it is mentioned here. But for me the process is not visible at all.
    I can't even see the first request message in the monitoring.
    This is the message i can see in the communication channel monitoring:
    2010-05-24 09:07:41 Success Channel CC_*: Entire file content converted to XML format
    2010-05-24 09:07:41 Warning Channel CC_*: Empty document found. Proceed without sending message
    2010-05-24 09:07:41 Success File "/xyz/ABC.txt" archived after processing
    Is there any problem with the file and that could be the reason it cant convert the file to the request message MT_REQUEST and thus am not able to see anything in monitoring.
    help me guys....this is a simple process and i m stuck...its frustrating
    Regards
    Naina

  • Sending other files to ipod

    I have some video files of my own on my computer. Itunes will not open the files in itunes, so I manually sent the files from the folder to my ipod. Now I can't find the files. If you know where they go or how to find them, please anything would help.
    I know they're on my ipod somewhere because after sending the files to my ipod the orange other bar increased a lot.

    You can't find them on your iPod. I did the same thing and the video you put on is probely not in the right format meaning you need to convert it. So even though it shows up in other you can't get to it on you iPod. To get the "other" off your iPod do th following...
    This bar should not take more than few megabytes so you must have used your iPod in disk mode and added files through My Computer. To delete these go to My Computer > iPod (make sure your iPod "disk use" is enabled in iTunes) and delete the files you added there. DO NOT try to delete any files/folders that you did not create as it will mess up your iPod.
    If this post solved or helped you problem please mark so thanks, Zack

  • Subcribers not sending CDR files to Publisher in the cluster.

    HI,
    We have call manager cluster 8.6 version and there are 5 nodes in the cluster.
    I could see CDR files generated in the subscriber nodes but it is not uploaded publisher node CDR repository .
    I am not seeing any CDR files in Publisher preserve folder.
    2014-05-06 19:43:41,517 DEBUG [main] cdragent.cdrAgent (cdrAgent.java:213) - After failure to send files in the previous attempt. Creating new ftpClient object
    2014-05-06 19:43:41,517 DEBUG [main] sftpapi.ftpClient (ftpClient.java:148) - ftpClient constructor
    2014-05-06 19:43:41,517 DEBUG [main] sftpapi.ftpClient (ftpClient.java:150) - host = 166.98.48.155
    2014-05-06 19:43:41,517 DEBUG [main] sftpapi.ftpClient (ftpClient.java:151) - user = ccmservice
    2014-05-06 19:43:41,517 DEBUG [main] sftpapi.ftpClient (ftpClient.java:153) - localDir = null
    2014-05-06 19:43:41,518 DEBUG [main] sftpapi.ftpClient (ftpClient.java:154) - remoteDir = null
    2014-05-06 19:43:41,518 DEBUG [main] sftpapi.ftpClient (ftpClient.java:155) - secureFTP = true
    2014-05-06 19:43:41,518 DEBUG [main] sftpapi.ftpClient (ftpClient.java:156) - permKey = true
    2014-05-06 19:43:41,518 DEBUG [main] sftpapi.ftpClient (ftpClient.java:157) - Component Name : cdragent
    2014-05-06 19:43:41,518 DEBUG [main] cdragent.cdrAgent (cdrAgent.java:216) - After creating the ftpClient object
    2014-05-06 19:43:41,518 DEBUG [main] sftpapi.ftpClient (ftpClient.java:179) - connect()-->
    2014-05-06 19:43:41,518 DEBUG [main] sftpapi.ftpClient (ftpClient.java:182) - connect(): connect for SFTP
    2014-05-06 19:43:41,518 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:94) - Inside the SFTPConnection Constructor
    2014-05-06 19:43:41,518 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:364) - checkConnection for Publisher using Key Authentication-->
    2014-05-06 19:43:41,519 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:365) - checkConnection: UserName : ccmservice
    2014-05-06 19:43:41,519 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:366) - checkConnection: hostname : 166.98.48.155
    2014-05-06 19:43:41,519 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:215) - getSshClient-->
    2014-05-06 19:43:41,519 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:272) - getSshConnector-->
    2014-05-06 19:43:41,520 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:227) - SSH Connection object obtained
    2014-05-06 19:43:41,566 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:405) - Trying to authenticate using Private Key File : /home/ccmservice/.ssh/id_dsa
    2014-05-06 19:43:41,576 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:428) - The User is Authenticated. Need to get the SftpClient
    2014-05-06 19:43:41,616 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:432) - SftpClient is obtained Successfully
    2014-05-06 19:43:41,617 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:453) - <--checkConnection for Publisher using Key Authentication
    2014-05-06 19:43:41,617 DEBUG [main] sftpapi.ftpClient (ftpClient.java:194) - The status of checkConnection : true
    2014-05-06 19:43:41,617 DEBUG [main] sftpapi.ftpClient (ftpClient.java:217) - connect():Successfully connect to 166.98.48.155
    2014-05-06 19:43:41,617 DEBUG [main] cdragent.cdrAgent (cdrAgent.java:224) - After attempt to get ftpClient connection
    2014-05-06 19:43:41,617 DEBUG [main] cdragent.cdrAgent (cdrAgent.java:237) - Sleeping for 60 seconds
    2014-05-06 19:44:41,628 INFO  [main] cdragent.cdrAgent (cdrAgent.java:199) - waking up
    2014-05-06 19:44:41,628 INFO  [main] cdragent.cdrAgent (cdrAgent.java:384) - handleCDRFiles -->
    2014-05-06 19:44:41,663 INFO  [main] cdragent.cdrAgent (cdrAgent.java:285) - At the moment, # of files ready to be transfered to Publisher is 14011
    2014-05-06 19:44:41,763 DEBUG [main] cdragent.cdrAgent (cdrAgent.java:426) - sendFile(): Try bldSendFileCmds
    2014-05-06 19:44:41,763 DEBUG [main] cdragent.cdrAgent (cdrAgent.java:430) - FtpManager - sendFile() : The Parent directory of the remote directory send the files : /var/log/active/cm/cdr_repository/
    2014-05-06 19:44:41,764 DEBUG [main] sftpapi.ftpClient (ftpClient.java:849) - bldSendFileCmds(): -->
    2014-05-06 19:44:41,764 DEBUG [main] sftpapi.ftpClient (ftpClient.java:862) - bldSendFileCmds(): - no need to build command file
    2014-05-06 19:44:41,764 DEBUG [main] sftpapi.ftpClient (ftpClient.java:863) - local directory: /var/log/active/cm/cdr/
    2014-05-06 19:44:41,764 DEBUG [main] sftpapi.ftpClient (ftpClient.java:864) - remote directory: /var/log/active/cm/cdr_repository/trans/
    2014-05-06 19:44:41,764 DEBUG [main] sftpapi.ftpClient (ftpClient.java:865) - final remote directory: /var/log/active/cm/cdr_repository/tmp/
    2014-05-06 19:44:41,764 DEBUG [main] sftpapi.ftpClient (ftpClient.java:867) - file: cdr_Dublin_03_201404250000_140996
    2014-05-06 19:44:41,764 DEBUG [main] sftpapi.ftpClient (ftpClient.java:869) - bldSendFileCmds(): return <--
    2014-05-06 19:44:41,764 DEBUG [main] cdrrep.Util (Util.java:102) - checkJVMFreeMemory(): -->
    2014-05-06 19:44:41,764 DEBUG [main] cdrrep.Util (Util.java:158) - checkJVMFreeMemory(): <--
    2014-05-06 19:44:41,764 INFO  [main] cdragent.cdrAgent (cdrAgent.java:433) - CDRAgent before sending the file: JVM status: [Max = 227.56MB, Total = 58.44MB, Free = 48.29MB (82.64%), Used = 10.15MB (17.36%)]
    2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:499) - sendFiles(): -->
    2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:510) - sendFiles(): file to send = /var/log/active/cm/cdr/cdr_Dublin_03_201404250000_140996
    2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:511) - sendFiles(): remoteDirectory = /var/log/active/cm/cdr_repository/trans/
    2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:518) - sendFiles():remoteDirectoryFinal(NOT NULL)=/var/log/active/cm/cdr_repository/tmp/
    2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:519) - sendFiles():remoteFilePathFinal=/var/log/active/cm/cdr_repository/tmp/cdr_Dublin_03_201404250000_140996
    2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:521) - sendFiles(): localFilePath = /var/log/active/cm/cdr/cdr_Dublin_03_201404250000_140996
    2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:522) - sendFiles(): remoteFilePath = /var/log/active/cm/cdr_repository/trans/cdr_Dublin_03_201404250000_140996
    2014-05-06 19:44:41,765 DEBUG [main] sftpapi.ftpClient (ftpClient.java:526) - sendFiles(): uploadFile
    2014-05-06 19:44:41,765 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:163) - sendFileThroughSFTP -->
    2014-05-06 19:44:41,765 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:174) - Running put command to copy the file
    2014-05-06 19:44:41,767 ERROR [main] sftpapi.SFTPConnection (SFTPConnection.java:194) - Sftp Status Exception : com.maverick.sftp.SftpStatusException: Permission denied.: Permission denied
    2014-05-06 19:44:41,768 DEBUG [main] sftpapi.ftpClient (ftpClient.java:538) - Sftp Status Exception
    2014-05-06 19:44:41,768 ERROR [main] sftpapi.ftpClient (ftpClient.java:539) - SFTP error in transferring file to another machine.
    2014-05-06 19:44:41,768 ERROR [main] sftpapi.ftpClient (ftpClient.java:540) - com.maverick.sftp.SftpStatusException: Permission denied.: Permission denied
    2014-05-06 19:44:41,768 ERROR [main] sftpapi.ftpClient (ftpClient.java:559) - Exception while sending files: com.maverick.sftp.SftpStatusException: Permission denied.: Permission denied
    2014-05-06 19:44:41,768 DEBUG [main] cdrrep.Util (Util.java:102) - checkJVMFreeMemory(): -->
    2014-05-06 19:44:41,768 DEBUG [main] cdrrep.Util (Util.java:158) - checkJVMFreeMemory(): <--
    2014-05-06 19:44:41,768 INFO  [main] cdragent.cdrAgent (cdrAgent.java:443) - CDRAgent after sending the file: JVM status: [Max = 227.56MB, Total = 58.44MB, Free = 47.77MB (81.74%), Used = 10.67MB (18.26%)]
    2014-05-06 19:44:41,768 ERROR [main] cdragent.cdrAgent (cdrAgent.java:509) - sftp failed for file cdr_Dublin_03_201404250000_140996
    2014-05-06 19:44:41,768 ERROR [main] cdragent.cdrAgent (cdrAgent.java:519) - Alarm: Unable to successfully send file to repository node.
    2014-05-06 19:44:41,768 INFO  [main] cdragent.cdrAgent (cdrAgent.java:548) - raising alarm CDRAgentSendFileFailureContinues
    2014-05-06 19:44:41,769 INFO  [main] alarmInf.AlarmSender (AlarmSender.java:107) - alarmName: CDRAgentSendFileFailureContinues
    2014-05-06 19:44:41,769 DEBUG [main] alarmInf.AlarmSender (AlarmSender.java:113) - paramName[0] = CDRRepositoryNodeAddress -> paramValue[0] = 166.98.48.155
    2014-05-06 19:44:41,769 DEBUG [main] alarmInf.AlarmSender (AlarmSender.java:113) - paramName[1] = CDRAgentNodeAddress -> paramValue[1] = DUB2IPTCCMPIN22/166.98.48.157
    2014-05-06 19:44:41,769 DEBUG [main] alarmInf.AlarmSender (AlarmSender.java:119) - sendAlarm ...
    2014-05-06 19:44:41,769 INFO  [main] cdragent.cdrAgent (cdrAgent.java:575) - <-- handleCDRFiles
    2014-05-06 19:44:41,769 DEBUG [main] sftpapi.ftpClient (ftpClient.java:283) - disconnect(): <-ftpClient->
    2014-05-06 19:44:41,769 DEBUG [main] sftpapi.ftpClient (ftpClient.java:287) - disconnect(): SFTP Connection -->
    2014-05-06 19:44:41,769 DEBUG [main] sftpapi.SFTPConnection (SFTPConnection.java:492) - disconnect(): SFTP Connection -->

    Could you please check with TAC whether your CUCM version is also affected by the bug CSCsz99841 as I see "ccmservice" user in your logs too?
    Description
    Symptom:
    Cluster Manager will update ccmservice user SSH security keys whenever a new node is added or removed from the cluster
    Conditions:
    CDR Agent cannot send CDR files from sub to pub using sftp.
    This is because SFTP is initiating a connection using the user 'ccmservice'
    Workaround:
    i) Stop CDR Agent service on Call Processing Node
    ii) Gain root access via remote access support account. And then
    Copy over the authorized keys in the specific user's SSH directory:
    /home/sftpuser/.ssh/authorized_keys file to
    /home/ccmservice/.ssh/authorized_keys
    Root CLI command:
    cp /home/sftpuser/.ssh/authorized_keys /home/ccmservice/.ssh/authorized_keys
    iii) Start CDR Agent service on Call Processing Node.
    Further Problem Description:
    This was caused by changes that were made to tighten up file permissions around the CUCM file structure

  • After reinstalling MAC OS 10.6.8, config the permissions to read/write/no access, my MacMini [mid 2010] refuses to reboot. I tried to reboot in safe mode with fsck, but after the steps to be taken, it says fscs not done, root device is read only

    After reinstalling MAC OS 10.6.8, I config the permissions to read/write/no access, my MacMini [mid 2010] refuses to reboot. I tried to reboot in safe mode with Command+S and fsck, but after the steps to be taken, it says fscs not done, root device is read only. I also tried to bypass the Mac firmware password by taking one Ram card out and reboot the macmini while holding COMMAND+OPTION+P+R. But no luck. The macmini is not able to see the mac OSX installation CD.
    Please help ??

    f.fromleiden wrote:
    After reinstalling MAC OS 10.6.8, I config the permissions to read/write/no access, my MacMini [mid 2010] refuses to reboot.
    How and where did you change which permissions? And what was the goal?
    Do you have a complete backup of your system? and more importantly data files?
    What happened that prompted the need to reinstall the 10.6.8 update?
    The immediate road forward would be to boot from the optical drive and revert the changes you made.
    What happens when you boot with the install cd and hold down C or hold down the option key?
    [Off topic: I've been to Leiden a few times ]

  • File BPM Webservice IDOC .........Error in BPM workflow(Sync send step)

    Hi all,
                      I have the same type scenario that is file initiates the bpm that invokes the Webservice.the file data goes into bpm as the input data of the webservice and webservice gives the response and then the web-service response is mapped to
    idoc and finally posted to R/3.
    The interface sI created:
    1.outbound Async  -
    >for file
    2. Abstract async----
    >bpm reciever step.
    3.Abstract sync----
    >bpm sync send step.
    4.inbound sync -
    >for the webservice to recieve the reqst and to send the response to Abstract sync
    5.Abstract async----
    >to send the data out of BPM
    6.inbound async----
    for idoc
    created 3 communication channel.
    1.file adapter: sender
    2.SOAP adapter: Recv
    3.IDOC adapter: Recv
    created 3 reciever determination
    Business process instance in ID
    reciever agreement(2)
    interface determaination
    But getting a problem in BPM.
    I think the scenario is logically correct as I have seen previous
    SDN suggestions.
    But getting the problem in BPM's sync step.and the SOAP rec channel is also inactive.in BPM workflow I can see the recv step is getting file req data but after that in the sync send step
    its stuck up.getting error.
    Please sir suggest me.

    Remove the interface you created for Idoc that is inbound async one. use the imported Idoc itself as the interface and also as the message type. Everything else looks good though i did not really evaluate ur ID configuration..
    VJ

  • I can't rate or write a review for app on the app store. It allows me to write out the review but does not diplay my review after sending it. Can anyone point me in the right direction to get answer as apply refuse to reply or solve my problem. Thanks

    I can't rate or write a review for app on the app store. It allows me to write out the review but does not diplay my review after sending it. Can anyone point me in the right direction to get answer as apply refuse to reply or solve my problem. Ps thanks apple for ur ignorance

    I have the same problem with another TeamLava app, Fashion Story.

  • Sync Send step after transformation step in BPM

    Hi Gurus,
    I have an interface where I am loading the data into an Oracle database and getting the response back (insertcount) from the database. Based on the response, I have to execute a stored procedure in another sync send step.
    I am doing perfectly alright until the transformation step. The sync send step after this step has the following entries.
    Sync interface: MI_LG_SP_INPUT_ABS
    Request Message: sp_lg_rec
    Response Message: sp_lg_snd
    While doing 'check(F7)', I am getting the following error.
    <b>Interface MI_LG_SP_INPUT_ABS for element sp_lg_poc_step2 is not abstract/asynchronous</b>
    The request message for this sync send step is the target message of the transformation step.
    This error is bugging me since 2 days. Please help me with this.
    Thanks
    Kalyan

    Sravya,
    I know what I did now. For my send sync interface which is MI_LG_SP_INPUT_ABS, I have unnecessarily created a container element and which caused this problem. From your post, I rechecked it and found that I don't need a container element for my abs/sync interface as I already have container elements for request and response which are abs/asynch.
    I gave you full points, thinking that you will come for my rescue in the future (just kidding!!!).
    Thanks again,
    Kalyan

  • Best way to write objects in an xml and send the file?

    hello all
    i am making some objects, which i conver to xml using the XStream and then i am saving them to a file, call a function to send the file to a servant (basically i do this by sending bytes and this may be the problem). In the servant i take the data i write them to a file and then i read them again to make them objects...
    i have the following code in the client
            XStream xstream = new XStream(new DomDriver());     
            xstream.alias("Jobb", WorkflowFramework.Jobb.class);
         String xml = xstream.toXML(translation);
               FileWriter fw = new FileWriter("translation.xml");
               ObjectOutputStream out = xstream.createObjectOutputStream(fw);
               out.writeObject(new Jobb("ougk2", "Walnes",null));
               out.close();
               File file=new File("translation.xml");
               byte buffer[]=new byte[(int)file.length()];
               try {
                    BufferedInputStream input=new BufferedInputStream(new FileInputStream("translation.xml"));
                    input.read(buffer,0,buffer.length);
                    input.close();
               } catch(Exception e) {
                      System.out.println("Error: "+e.getMessage());
                       e.printStackTrace();
               theRemoteObjRef.translationService(theCallbackObjectRef, buffer);i write the file and then i read it so as to have a buffer of bytes (there should be a better ways..)
    the last line sends an objectRef (we dont care about that) and the file in bytes to a server (to be specific to a servant of a server)..
    in the servant i do the following
    public void translationService(TheCallbackInterface objRef, byte data[]){
              try{
                        File file = new File("translation2.xml");
                    BufferedOutputStream output = new BufferedOutputStream(new FileOutputStream("translation2.xml"));
                  output.write(data, 0, data.length);
                  output.flush();
                  output.close();
              } catch(Exception e) {
                        System.out.println("Error: " + e.getMessage());
                        e.printStackTrace();
               XStream xstream = new XStream(new DomDriver());
               try { // If an error occurs, go to the "catch" block
                    FileReader fr2 = new FileReader("translation2.xml");
                    ObjectInputStream in = xstream.createObjectInputStream(fr2);
                    Jobb newJob = (Jobb)in.readObject();
                   System.out.println(newJob.getObjServerRef());
                   System.out.println(newJob.getForTranslation());
                   System.out.println(newJob.getTranslated());
                    }catch (Exception e) {  
                         System.err.println("File input error"+e);
                    Jobb testJob=new Jobb("ougka","mpougka","falalala");
                    System.out.println(testJob.getObjServerRef());
                       System.out.println(testJob.getForTranslation());
                    System.out.println(testJob.getTranslated());
    the problem is that in the first group of System.out.println i get the error File input errorcom.thoughtworks.xstream.mapper.CannotResolveClassException: Jobb : Jobb
    but the second group of printlns, prints the correct results...
    do you know what is the problem? Why can i read the content of the file and get the objects from there?
    do you have any suggestions of writing and reading the file in an another way or to send it by NOT using a bytes array?
    do you have an alternative way of making the xml file?
    many thanks!

    Hi,
    I would suggest to reconsider building of your document so that it doesn't contain duplicates if you don't need them. And it doesn't have much to do with DB XML then.
    Also you could insert your document with duplicates and use XQuery Update facilities to delete undesirable nodes.
    Vyacheslav

  • Sending step in Integration Process waiting for Acknowledgement infinitely

    In process I had to send an MATMAS, CLFMAS and CNPMAS. The data for
    this IDoc comes in one message from third party system. So, my
    Integration Process has receive step (to collect a data), and three
    send-steps (for MATMAS, for CLFMAS, for CNPMAS), one by one. The
    receive-step catch an inbound message and then (without transforms)
    send this message to each of this three send-steps in Asynchronous
    mode. The inbound message transforms in Interface Determination to
    IDoc. Three steps, one Interface Determination with three conditions,
    that looks
    like «ProcessStep=send_matmas», «ProcessStep=send_clfmas», «ProcessStep=s
    end_cnpmas», and in this place I set a mapping to transform inbound
    message to IDoc. All send-steps has property Acknowledgement, which set
    to Transport value. So in first send-step MATMAS goes to R3, then R3 in
    response send ALEAUD IDoc (trans WE05 shows an incoming MATMAS and
    outgoing ALEAUD); ALEAUD comes to XI (trans IDX5 shows inbound and
    outbound messages), but ALEAUD didnu2019t transforms to XI Acknowledgement.
    And there is no any CLFMAS or CNPMAS, because all processes sleeps in
    their first send-steps (trans SWWL shows a many STARTED processes).
    Each send-step waits for event u2018SEND_OK_TRANSPORTu2019. Moreover, if I use
    trans sxmb_moni to monitor this situation and if I press refresh (F5
    button) every time, sxmb_moni every time requests a status of
    Acknowledgements, XI transform ALEAUD to Ack, send-step in process
    catch this status, process wake up and moves to next send-step (which
    sends an CLFMAS and waits for Ack). By continuously pressing refresh
    (F5) in sxmb_moni all process becomes COMPLETED (trans SWWL), all
    ALEAUD transforms to XI Ack and all IDocs goes to R3. But pressing F5
    itu2019s not a solution for integration.

    Hi Igor,
    I dont think your manual refresh changes the status . The status changes is the status change of GUI . The system will take how much so ever it needs to take and not as per your manual refresh.
    Regards
    joel

  • Send step with TRANSPORT Ack. fails in BPE after default client change

    Hi all,
    I had to change default client in my PI (7.0 sps 13) system from 001 to xxx. I did it according to note 940309.
    After this some probelms appears, for example my IPs becomes unworked and I have to repeat automatic customizing for BPE and re-activate in cache my IPs.
    But some of them sill doesn't work. I found that this IPs fails on send steps with transport acknowledgements. When I switch off transport ack. in send step, it become works fine.
    Please provide me with some solution, because I need transport ack. in my IPs.
    Maxim.

    Additional info:
    BPE monitoring shows that send step fails with errors:
    EXECUTE_METHOD_OBJECT_SYNC
    Work item 000000057118: Object CL_SWF_XI_SRV_SEND_ASYNCHRON method SEND_ASYNCHRON cannot be executed
    Maxim.

  • Sync send step after transformation step

    Hi Gurus,
    The send step I have after transformation step is not getting the input message. I am splitting the message into 2 messages in the trans step and using one of them as input message in send step. I am getting 'empty container is send to the send step' error.
    Please help me with this problem. I am not sure what I am missing.
    Thanks
    Kalyan

    Kalyan,
    Just adding to the disucussion, you might have  specified a source and 2 target msgs in the transformation step.
    Make sure it is one of the 2 target msgs that you have specified for the send step.
    You can view the 2 target msgs in SXMB_MONI.
    Use Michal's blog for reference.
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    Regards,
    Jai Shankar

Maybe you are looking for

  • No light showing on my Apple Tv when i connect power lead. I have restored ATV with I tunes but still no luck when connected to power.

    No light showing on my Apple Tv Unit when connected to power source. I have restored and updated via i tunes light comes on whilst in this mode but as soon as i connect power cable and plug in nothing happens?

  • Switching to Game mode: no MIC in

    I've got this annoying problem: When I use Mode Switcher (that program where there is a thread about here) or manually switch mode (which in the end is the same since mode switcher just simulates some mouse clicks) to Game Mode, my microphone on Mic2

  • Essbase number of days calc

    We have a Time dimension which has the below member. NumDays      Q3Days            Oct (31)            Nov (30)            Dec (31) The values for Oct, Nov and Dec are hard coded as 31, 30, and 31 respectively. But I want them to return the actual n

  • Configuring Static Routing

    Hi, I have some issues configuring my WRT54G in my business, I've already got 2 networks and i want to create a new one with my router.. The main network where all our servers are is the 192.168.1.0/24 (gateway 192.168.1.1), second network is 192.168

  • Missing the Index:  Photoshop CS5 Help Documentation (photoshop_cs5_help.pdf)

    I have downloaded and use the Photoshop help PDF (photoshop_cs5_help.pdf) fairly extensively, but it's missing one key element: the index.  The index, of course, is invaluable when trying to search for a solution to a problem.  The previous PDF for c