Force file to write into Hard disc

Hi
I am using Filewriter to write a XML file which is generated in my program flow to write into HD. and I will pass the file path to a EJB for further processing. The problem is EJB throws XML format error . The file is not written immediately to HD even I flush it.. Please help..

As long as the writer and the EJB are on the same computer. The data only has to be written to memory. The data is written to memory as soon as you call flush.
Is it possible the EJB starts to read the data before the file has finished writing?

Similar Messages

  • I am not able to open few files from my external hard disc in snow lepord

    i am not able to open few files from my external hard disc in snow lepord

    Need more information. Is there a message when you try to open them?

  • How to read from one file and write into another file?

    Hi,
    I am trying to read a File and write into another file.This is the code that i am using.But what happens is last line is only getting written..How to resolve this.the code is as follows,
    public String get() {
         FileReader fr;
         try {
              fr = new FileReader(f);
              String str;
              BufferedReader br = new BufferedReader(fr);
              try {
                   while((str= br.readLine())!=null){
                   generate=str;     
              } catch (IOException e1) {
                   e1.printStackTrace();
              } }catch (FileNotFoundException e) {
                   e.printStackTrace();
         return generate;
    where generate is a string declared globally.
    how to go about it?
    Thanks for your reply in advance

    If you want to copy files as fast as possible, without processing them (as the DOS "copy" or the Unix "cp" command), you can try the java.nio.channels package.
    import java.nio.*;
    import java.nio.channels.*;
    import java.io.*;
    import java.util.*;
    import java.text.*;
    class Kopy {
         * @param args [0] = source filename
         *        args [1] = destination filename
        public static void main(String[] args) throws Exception {
            if (args.length != 2) {
                System.err.println ("Syntax: java -cp . Kopy source destination");
                System.exit(1);
            File in = new File(args[0]);
            long fileLength = in.length();
            long t = System.currentTimeMillis();
            FileInputStream fis = new FileInputStream (in);
            FileOutputStream fos = new FileOutputStream (args[1]);
            FileChannel fci = fis.getChannel();
            FileChannel fco = fos.getChannel();
            fco.transferFrom(fci, 0, fileLength);
            fis.close();
            fos.close();
            t = System.currentTimeMillis() - t;
            NumberFormat nf = new DecimalFormat("#,##0.00");
            System.out.print (nf.format(fileLength/1024.0) + "kB copied");
            if (t > 0) {
                System.out.println (" in " + t + "ms: " + nf.format(fileLength / 1.024 / t) + " kB/s");
    }

  • How to export my file to wav on hard-disc rather than burning a CD

    Hi i have tried to figure this out..I guess its looking me straight in the face but here's hoping someone can help!
    I have recorded a talk imported it into WB and have added tracks to make it easier to navigate. I have successfully written it to cd. Now what i really want is to be able to export my wav files to a folder and then import those wav files into my Rimage cd duplicator. It was so easy with audition but am trying to wean myself off the PC and so am trying out Logic/wave burner. Though not perfect i tried to read the files on the cd copy them into a folder..but the files have a cda extension a sort of shortcut file I think. But i cannot get the files (wav) to copy. As i say I would prefer anyway to export direct to the file rather than using the cd as it It leaves open the possibility of file copying problems due to transferring it first onto a cd. Any help would be greatly appreciated ! Thank you Paul

    Hi thanks so much for all your advice. I would have replied earlier but for some reason couldn't logon! Anyway i am in so back to WB...
    Yes my initial request was 2 fold really- though i could have been clearer!
    1/ To export to my hard disc the wav files of the cd project i have created in wb
    2/ When exporting the lets say 1 hour talk - that the exported wav files be separate wav files reflecting the cue files i have placed on the time line in wb. In this way each separate wav file could then be imported into my rimage cd duplicator software to create my cd project. e.g cue1.wav cue2.wav etc
    now in Audition this can be done easily by opening the cue window selecting the cues hitting merge then hitting batch and that's it, all done. In fact i went back to audition to do this ie I exported the wb file imported it to audition that recognised it no problem and then finally exported to wav which is done automatically during the above process.
    I may be missing something , but it looks like this 'slicing' of one long audio file isn't as easily done in wb.... i do want to get off the pc for all this so any further help or perhaps a simple what to do summary would be great. I a aware all the answers could be in your replies already but i am getting into somewhat of a tizzy!! Thanks Paul

  • Recurrent corrupt file system of internal hard disc

    Hi,
    on my MacBook Pro Late 08 I get some file system corruption over and over again. Normaly I would guess having a defect hard disc but I have already tried three different discs. The problem always comes back.
    I recognize the corruption by having multiple crashes of several applications (Firefox, iPhoto, iWorks, ....) having some exception type of EXCBADACCESS. This type seams to indicated that something cannot be read correctly anymore. After repairing the disk everything works fine again.
    Is it normal that MacOS filesystem is not that stable and gets corrupt from time to time? I cannot find out any reproduction pattern so far.

    I have exchanged the original disc to a larger 500GB/7200 2 month after getting the new MacBook. To narrow down the problem I switched to a 500GB/5400 another 6 month later. I always moved with a SuperDuper Backup from disk to another. My disc usage is about 90%.
    I tent do believe it has something to do with the power management of the Mac. Between a healthy file system and a corrupt one is always one or more system sleeps.
    But the output of the disk utility is also weird. Three successive runs state at the end:
    1)
    Invalid node structure
    The volume MacBookPro internal could not be verified completely.
    Error: This disk needs to be repaired. Start up your computer with another disk (such as your Mac OS X installation disc), and then use Disk Utility to repair this disk.
    2)
    The volume MacBookPro internal was found corrupt and needs to be repaired.
    Error: This disk needs to be repaired. Start up your computer with another disk (such as your Mac OS X installation disc), and then use Disk Utility to repair this disk.
    3)
    The volume MacBookPro internal appears to be OK.

  • Reading Data from Unix file and write into an Internal table

    Dear all,
                     I am having an requirement of reading data from unix file and write the same into an internal table..how to do that ...experts please help me in this regard.

    Hi,
    do like this
    PARAMETERS: p_unix LIKE rlgrap-filename OBLIGATORY.
    DATA: v_buffer(2047) TYPE c.
    DATA: BEGIN OF i_buffer OCCURS 0,
            line(2047) TYPE c,
    END OF i_buffer.
    * Open the unix file..
    OPEN DATASET p_unix FOR INPUT IN TEXT MODE.
    <b>IF sy-subrc NE 0.
    *** Error Message "Unable to open file.
    ELSE.</b>
       DO.
         CLEAR: v_buffer.
         READ DATASET p_unix INTO v_buffer.
         IF sy-subrc NE 0.
            EXIT.
         ENDIF.
         MOVE v_buffer TO i_buffer.
         APPEND i_buffer.
      ENDDO.
    ENDIF.
    CLOSE DATASET p_unix.
    <b>Reward points if it helps,</b>
    Satish

  • How to read the data file and write into the same file without a temp table

    Hi,
    I have a requirement as below:
    We are running lockbox process for several business, but for a few businesses we have requirement where in we receive a flat file in different format other than how the transmission format is defined.
    This is a 10.7 to 11.10 migration. In 10.7 the users are using a custom table into which they are first loading the raw data and writing a pl/sql validation on that and loading it into a new flat file and then running the lockbox process.
    But in 11.10 we want to restrict using temp table how can we achieve this.
    Can we read the file first and then do validations accordingly and then write to the same file and process the lockbox.
    Any inputs are highly appreciated.
    Thanks & Regards,
    Lakshmi Kalyan Vara Prasad.

    Hello Gurus,
    Let me tell you about my requirement clearly with an example.
    Problem:
    i am receiving a dat file from bank in below format
    105A371273020563007 07030415509174REF3178503 001367423860020015E129045
    in this detail 1 record starting from 38th character to next 15 characters is merchant reference number
    REF3178503 --- REF denotes it as Sales Order
    ACC denotes it as Customer No
    INV denotes it as Transaction Number
    based on this 15 characters......my validation comes.
    If i see REF i need to pick that complete record and then fill that record with the SO details as per my system and then submit the file for lockbox processing.
    In 10.7 they created a temporary table into which they are loading the data using a control file....once the data is loaded into the temporary table then they are doing a validation and updating the record exactly as required and then creating one another file and then submitting the file for lockbox processing.
    Where as in 11.10 they want to bypass these temporary tables and writing it into a different file.
    Can this be handled by writing a pl/sql procedure ??
    My findings:
    May be i am wrong.......but i think .......if we first get the data into ar_payments_interface_all table and then do the validations and then complete the lockbox process may help.
    Any suggestions from Oracle GURUS is highly appreciated.
    Thanks & Regards,
    Lakshmi Kalyan Vara Prasad.

  • How to create new Sheet in Excel file and write into it

    Hi to all, my requirement is this:
    I have an excel file (.xls) with multiple sheets (three sheets for precision: sheet1, sheet2 and sheet3).
    I must create in the same excel file new sheet, say sheet4, read data from sheet1, sheet2 and sheet3 and write them into sheet4.
    How to realize this in SSIS?
    Expecially, Is it possible to realize this in SSIS?
    thanks in advance.

    You need to create the sheet with the required metadata. There's no use creating blank sheet.
    Also metadata has to be fixed using a sample sheet prior to start of the package for setting the mapping. You may create a excel template for this purpose to just set the mapping at design time.
    At runtime pass actual excel sheet path for ExcelFilePath property of the source to point to correct file.
    Also the create table statement should include the same metadata info (columns)
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    Hi, well it works fine! I have used a sample sheet prior to start of the package for setting the mapping.
    Next at run time  pass actual excel sheet path for ExcelFilePath property of the source to point to correct file.
    However I have set also ValidateExternalMetadata properties of the Excel Destination to false and DelayValidation properties of the package to true.
    Now my problem is the following:
    I stored the three sheets name (sheet1, sheet2, sheet3) in the Object type user variable through a script task and the foreach loop loops through the three sheets stored in the variable.
    Now, I want that at each iteration the CURRENT VALUE of the Object type user variable is mapped into another user variable wich in turn is given in input to the Excel Source.
    Resuming:
    -) I have to copy the content of three sheets (sheet1, sheet2, sheet3) of excel file into another new sheet,   sheet4.
    -) I stored the three sheets name (sheet1, sheet2, sheet3) in the Object type user variable.
    -) With a  foreach loop container I loops the three sheets stored in the Object type user variable.
    -) Within a foreach loop container I have a Data Flow Task that transfer data from source sheet (sheet1, sheet2, sheet3) into destination sheet, sheet4.
    -) PROBLEM: how to change dinamically at each iteration of the foreach loop the name of source sheet? In the destination excel Task the sheet is always the same at each iteration, sheet4. But in the source excel task the name of sheet musts change at each
    iteration. In particular at the first iteration the name of the source sheet must be "sheet1$", at the second iteration "sheet2$", in the last iteration "sheet3$".
    How to change sheet name dinamically at each iteration?
    thanks.

  • How to read XML file and write into another XML file

    Hi all, I am new to JAVAXML.
    My problem is I have to read one XML file and take some Nodes from that and write these nodes into another XML file...
    I solved, how to read XML file
    But I don't know how to Write nodes into another XML.
    Can anyone help in this???
    Thanks in advance..

    This was answered a bit ago. There was a thread called "XML Mergine" that started on Sept 14th. It has a lot of information about what it takes to copy nodes from one XML Document object into another.
    Dave Patterson

  • REP-50127 Cannot write into file

    Our situation:
    DB Oracle 10.2.0.3
    Reports server version: 10.1.2.0.2
    We are generating reports in PDF and storing them in the Oracle OCM (previous IFS) system.
    Once in a while we get an error.
    The report trace gives the following:
    [2010/9/29 7:10:9:739] Exception 50127 (): Cannot write into file Invoicexxx.PDF
    oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    at oracle.reports.utility.Utility.newRWException(Utility.java:758)
    at oracle.reports.utility.Utility.copyFile(Utility.java:469)
    at oracle.reports.server.DesFile.sendFile(DesFile.java:85)
    at oracle.reports.server.Destination.send(Destination.java:484)
    at oracle.reports.server.JobObject.distribute(JobObject.java:1594)
    at oracle.reports.server.JobManager.updateJobStatus(JobManager.java:2332)
    at oracle.reports.server.EngineCommImpl.updateEngineJobStatus(EngineCommImpl.java:134)
    at oracle.reports.server._EngineCommImplBase._invoke(_EngineCommImplBase.java:94)
    at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
    at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
    at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
    at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
    [2010/9/29 7:10:9:739] State 56016 (JobManager:updateJobStatus): Job 642218 status is: Executed successfully but there were some errors when distribute the ou
    tput
    REP-50159: Executed successfully but there were some errors when distribute the output
    REP-50127: FILE : Cannot write into file Invoicexxx.PDF
    [2010/9/29 7:10:9:740] State 56004 (EngineInfo:setState): Engine rwEng-1 state is: Ready
    [2010/9/29 7:10:9:741] Exception 50159 (): Executed successfully but there were some errors when distribute the output
    oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    at oracle.reports.server.JobManager.runJobInEngine(JobManager.java:1110)
    at oracle.reports.server.ExecAsynchJobThread.run(ExecAsynchJobThread.java:54)
    [2010/9/29 7:10:9:741] Exception 50159 (): Executed successfully but there were some errors when distribute the output
    oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    at oracle.reports.server.JobManager.runJobInEngine(JobManager.java:1110)
    at oracle.reports.server.ExecAsynchJobThread.run(ExecAsynchJobThread.java:54)
    There is enough diskspace available so that's not the issue.
    Does anybody know what triggers the error and how we can avoid it?
    Edited by: vccservice on Sep 30, 2010 11:02 AM

    no freespace in the tablespace is also the reason for this error

  • Trouble Importing from Hard Disc Cam

    Hi All,
    I am using the trial version of CS4. I moved the .mpg files from my cheap hard disc Sony DCR-SX41 camera onto my hard drive, When I try to import them in the media browser I get a message saying that the files are not supported. I set up my project as DV widescreen. What am I doing wrong?
    BTW- when I click on the .mpg files from my hard drive they play fine.
    Thanks, Stan

    Google is your friend. Search for a converter that will convert MPEG to DV AVI type2, but be aware that editing DV material is easy for the PC, even on a 5 year old one. Editing MPEG is much more strenuous, especially if it is a HD variant. Converting the material will give you no indication at all if your PC is up to the task. To really try whether your Alienware will work with your material, buy the full version and if you don't like it, use the 30 day refund period.

  • Not being able to create TDMS file and write to it

    I m new to labview and lately i have been trying to code a RT vi which allows me create a TDMS file and write into it. I have seen a couple of examples on web. and this is what i implemented (refer the snippet i attached) after going through them.
    Now the problem is, there is no file being created on my desktop. I dont understand what is wrong. I may be missing some simple part. Please help me to figure it out
    Solved!
    Go to Solution.
    Attachments:
    RT_write to TDMS.PNG ‏10 KB

    Hi Rex,
    usually "RT targets" are NOT capable of accessing your Windows PC desktop as they are computers of their own…
    Write to the RT storage and copy the files created there using FTP to your PC!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • The hard disc of my laptop has crashed and i lost all the data. Now I want to take back up of my I phone and transfer contacts , messages and music back into my laptop , how can I do that. Pl help

    The hard disc of my laptop has crashed and i lost all the data. Now I want to take back up of my I phone and transfer contacts , messages and music etc back into my laptop , how can I do that. Also let me know how I can transfer the contacts into Windows contacts from I phone. Pl help

    Your content will only be where you put it.  It has always been very basic to always maintain a backup copy of your computer.
    You can transfer itunes purchases from your iphone: File>Device>Transfer purchases.
    You can import your pics taken with the iphone as you would with any digital camera.
    You can e-mail the other pics to yourself, they will never be of the original quality.
    You can out a unique contact and calendar entry on the computer.  You should get the option to merge the data when you sync.

  • How can I save/write data on the hard disc of the Real-Time System?

    I would like to acquire huge size of data via LabView Real-Time System.
    Since data is so huge, I am now thinking that it might be good idea to
    write/save data on the hard disc of the Real-Time System first and then
    transfer the data file to a data processing PC using FTP etc.
    If you know how to save/write data on the hard disc of the Real-Time System
    (Ver. 7.1), please let me know.
    Thanks,

    Just to add to Aitortxo's good answer,
    Since you have only one Drive ( C:\) on your RT, just keep monitering the availible disc space.
    After every few set of file writes keep transferring Backups delete these files, so that you  keep C:\ drive space for running your applications.
    Regards

  • HT4889 Apple Store changed hard disc - created user account ("User"). I ran migration assistant / time machine. All files migrated but on "User" I can't open them. Help!

    I changed my Seagate 1 Tb hard disc under the Apple Exchange Program.I received the iMac and the Apple Store created a new account on my iMac ("User"). I connected the Time Machine and ran the migration assistant. All files etc. have migrated. I can see the Macintosh HD and my old user account but am not allowed to open them. How can I get back to my old settings etc.?

    what is the message that you get when you try to open a file?
    1.  You can try to change the permissions to see if they will allow you to write to the file(s).
    2.  Naviagte to your Home folder Macintosh HD-->Users-->Username and press command+i to get info and on the bottom of the screen click on the lock and unlock the security check, remove your current username and then re-add it and next to the minus symbol click and select apply to enclosed folders

Maybe you are looking for

  • Scenario strategy: conversion script purchase orders

    Hi, Can anybody email me an example of an conversion script regarding Purchase orders from an other system into SAP? I'am specially interested how to deal with open purchase orders in the old system, when they could not be closed in the old system. T

  • USB Visa driver stops responding

    I have currently developed a production test for a USB device but am coming across a very strange bug.  I go through a test sequence via case structure (i.e. Test 1 = Button 1 test, Test 2 = send command to device and read response back, Test 3 = but

  • Does MacKeeper help?, Does MacKeeper help?

    I have had problem with the storage on my lap top, and I was wondering if Mackeeper actually is a good thing to purchase or if it is a scam.

  • Oracle EBS HR and Fusion HCM comparison

    Hi All, Can someone give me comparison of EBS HR and Fusion HCM organization structure? For example, in EBS HR we have business group. What is the comparable object in Fusion HCM? Likewise, what are the other one to once comparison in organizational

  • What is j_security_check?

    I am new to Java and servlet? I am trying to setup a form based authintication. in every example, I find that page is calling for j_security_check. Can anyone please give some light on j_security_check? Thanks,