Problem while creating some files

Hi,
I want to create several files dynamically using the following snippets of code:
do
fileName.append("BS"+num);
     num++;
      BufferedWriter outputWriter  = new BufferedWriter(new FileWriter(fileName.toString()));
      outputWriter.newLine();
     outputWriter.write("something");
     outputWriter.newLine();
     outputWriter.close();
} while(1);The files created by this way don't appear in the directory until I stop the program.
What should I do to create this files on real time?

Flush.
Kind regards,
  Levi

Similar Messages

  • Problem while Creating Control files while Cloning the Oracle DB

    Hi,
    I am failrly new to Oracle Administration. I have got the task of cloning our Production database into a new machine. With the help of various articles found over the web I have followed the below mentioned steps
    1)Executed the Alter database command for getting the control file copy.
    2) Taken the Datafiles,Control and redo log files copies into the Target machine.
    3) Copied the Pfile with the neccessary changes into the target machine.
    4) Edited the Create Control file syntax (generated from step 1) and executed the same on the target machine.
    Now the problem I face is that I get the following error while executing the create Control file syntax
    a)ORA-01503 - Creation of Controlfile failed.
    b) ORA-00219 - Required controlfile size 41760 exceeds max allowable size 20000.
    I am really stuck. Both my machine configurations and O/S installed are the same.
    Please advice me on how to Proceed... Thanking you all in advannce.
    Rgds,
    SN.

    Hi Jaffer,
    This is my code........ The control file has been generated by executing the syntax alter database backup controlfile to trace at the source db .
    STARTUP NOMOUNT pfile=ORADATA:ORAHOME1\ADMIN\ORACLE\PFILE\INIT.ORA;
    CREATE CONTROLFILE set DATABASE "ORACLE" RESETLOGS NOARCHIVELOG
    MAXLOGFILES 32
    MAXLOGMEMBERS 2
    MAXDATAFILES 32
    MAXINSTANCES 16
    MAXLOGHISTORY 65535
    LOGFILE
    GROUP 1 'ORADATA:ORAHOME1\ORADATA\ORACLE\LOG2ORCL.ORA' SIZE 200K,
    GROUP 2 'ORADATA:ORAHOME1\ORADATA\ORACLE\LOG1ORCL.ORA' SIZE 200K
    DATAFILE
    'ORADATA:ORAHOME1\ORADATA\ORACLE\SYS1ORCL.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\USR1ORCL.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\RBS1ORCL.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_DATA.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_INDEX.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_KAN_DAT.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_KAN_INDEX.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_KIS_DATA.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_KIS_INDEX.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_LUB_DATA.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BIMBJ01.DBF',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BIMAT01.DBF',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BITPA01.DBF',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BLUBFSINDEFX01.DBF',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\TEMP01.DBF',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_TOOLS.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\IMPORT1.DBF'
    CHARACTER SET WE8ISO8859P1
    # Recovery is required if any of the datafiles are restored backups,
    # or if the last shutdown was not normal or immediate.
    #RECOVER DATABASE
    # Database can now be opened normally.
    #ALTER DATABASE OPEN;
    # No tempfile entries found to add.
    #

  • Problem while creating JAR file for my swing application

    Hi...
    Using my swings application I am trying to Run different software�s .
    My program is Running fine from command prompt. If I create JAR file
    It is giving error like �Failed to load Main-Class manifest attribute from .jar�
    Can anybody help me to creating JAR file
    Thanks in advance
    Cheers
    Mallik

    hi,
    User following command
    jar-cmf textfile_name.txt Jarfile_name *
    here you have to make manifest file
    and making jar file you have reach there by command promt
    and manifest file have some constraint also as well as format
    format are
    Manifest-Version: 1.0
    Class-path: jar file name which are using in app separed by space
    Created-By: 1.5.0 (Sun Microsystems Inc.)
    Main-Class: Main class name
    and end of file is not have carriage return

  • Problem while creating metadata files

    I created metadata files to add styles to Photoshop Elements 8 (in Windows 7) and included them in the C:\Program Data\Adobe\Photoshop Elements\8.0\Photo Creations\layer styles folder.  The first several worked great and successfully showed up in the Styles Palette.  Later, when I was trying to add more styles I received a message in PSE 'Could not load styles because the file could not be found'.  I closed PSE.  Now every time I open Editor I receive this message and it locks up the program.  The only way I can close PSE is through Task Manager.
    Any suggestions on how to correct this?

    I put a copy of the third party styles in the Photoshop Elements Preset/styles folder and in the Photoshop Elements 8.0/Photo Creations/layer styles folder.  From the Photo Creations/layer styles folder I selected an existing metadata file and copied it to my desktop.  I changed the first part of the file name to the name of the new style (example: glitter 001.metadata).  I then right clicked and opened with Notepad.  When I found the name of the existing file I was using, I changed the name before the equation sign to the name of my new layer style with no spaces between words.  Then I changed the name after the equation sign to the name of the new style with spaces between words (glitter001=glitter 001).  I then deleted the lines below this except for the line /PSEContent leaving one space between the lines.  I saved and closed the document.  I then put the saved file in the Photo Creations/layer style folder.  When I started PSE I held down the sift key when I selected Editor.  As I said, the first two I did showed up fine.  The next ones is where I had the problem.
    I did all of this in the Admin account.  When I go into my user account, PSE works but now I am afraid to try to add the layer styles.

  • Internal error while creating pdf files

    Good morning.
    I have problems while creating pdf files from FM documents,using FM9: I get an internal error, see here an example:
    === Header Begin ===
    Internal Error: 9004, 6921628, 9677518, 0
    FrameMaker 9.0.0 for Intel
    Build: 9.0p255
    Window System: MSWindows
    Operating System: Windows NT 5.1 (major.minor.build: 5.1.2600 Service Pack 3)
    Generated on: venerdì 30 marzo 2012 11.38.51
    To file: C:\Documents and Settings\itgzeanlo\Dati applicazioni\Adobe\FrameMaker\9\FrameLog_12.03.30_11.38.51.txt
    === Header End ===
    === Stack Trace Begin ===
    $699d9c
    $93aace
    === Stack Trace End ===
    === Open Window List Begin ===
    # not implemented
    === Open Window List End ===
    === Recent Commands Begin ===
    === Recent Commands End ===
    === Recent API Calls Begin ===
    # not implemented
    === Recent API Calls End ===
    === Windows Relocation Information Begin ===
    Application: 00400000
    FrameMaker.exe: 00400000 00979000
    ntdll.dll: 7c910000 000b8000
    I don't have a clue of what's wrong. I tried to uninstall the software and then to install it again, with the same result.
    Can you please help me?
    Kind regards.
    Antonio Locati

    > Getting back to your issue - how are you trying to create a PDF? Save As or printing to the AdobePDF printer instance?
    I've tried in both ways, and it's exactly the same: I get the error.
    > If XP, have you installed the MS hotfix?
    Windows is regularly updated through Windows Update.
    > What's in your FM doc?
    The document is based on some tables (it's a pricelist for our products), there are also some links to some .eps files (which are correctly displayed on screen, so the path is correct).
    > Did it work before or has it changed and now errors out?
    The file (or better the book made of about fifteen FM files) was created by someone else, on another PC. When I open it, I get the error. When I send my files to another person, he can create pdf files without any problem.
    > Does it update without any errors?
    Yes, I regularly update Framemaker without any error.
    Thanks for your help!!

  • CS5 "a problem occured while extracting some files...."

    I used both Firefox and IE to download the update for CS5. All seemed to successfully download to my desktop where I wanted them. When I double clicked on the .exe file, it began to extract and got to 99% (sometimes 100%) before giving me the error "A problem occured while extracting some files. Check availabile space on your computer and the write privilages on the destination folder."
    I am using Windows XP, I'm the admin so I'm not sure what privilages I need.
    I have 66 G of free space
    *I tried using 7zip to extract the files, did not work.
    *I tried to just get into the folder which was created during the extract and clicked on set-up.exe - it gave me the message "We've encountered the following issues: Installer failed to initialize. File not found. Please download Adobe Support Advisor to detect the problem." including a link to where I can do that. I did that and so far, it is stuck on "please wait while the application initializes." I'm thinking it's not going to happen so I've come here.
    Any ideas would be appreciated!

    First of all, let me correct an incongruency in your post, Mr. Cox: you say it works for "almost everyone" yet also state that it fails "only" for me. These can't both be correct, and of course we all know the latter is clearly incorrect because we can see from this thread that someone else has also had the problem.
    Also, I am not sure that the problem has been attributed with absolute certainty to a "bad download", although I tend to agree that it's the most likely explanation. Has it?
    Now consider this: I posted here for the exact reason that Adobe needs to know this is not a problem with only one computer and one user. I took some time out of my work day because I appreciate Adobe.
    They might want to know that I had the problem on a fresh install on my home computer, one that was only days ago running CS5 from ym first install, which went without a hitch. In solving this, I am happy to post any system information, error logs, checksums, or ANYTHING that Adobe would like to see that would result in the resolution of this problem. As you know I can solve the problem myself because I have the original uncorrupted files here at work. But, really, being as Adobe has decided to use a special download and installation package, which I know can be somewhat quirky from past experience, I think it is Adobe's responsibility to listen to download/installation problems. AND as their customer service has never been anything but exemplary in the past, Mr. Cox, this is exactly why I posted here. Because they do listen.
    What should they do? It seems to me, although I'm no programmer, that in this day and age there is no reason that a download should be completed and still not function. There are solutions aplenty that ensure data is transmitted without error, and I quite frankly do not understand why they have not already used such a solution (if bad download is in fact the problem here). For example, can they not make a downloader that runs a checksum for us, and tells us if we have a bad download, or runs packets through one to make sure that everything is coming in correctly as we download? Can corrupted packets be discarded and redownloaded automatically so that crappy connections still get their software in pristine condition, and nobody has to post or call in about stuff like this?
    That would seem to be a good idea.
    Cheers,
    o.0

  • Hi all, i'm new and facing a problem while creating a new file for Xcode. I can't select the box "with XIB for user interface" if the subclass is "UIViewController".this problem happen after i upgrade Xcode to 4.6 version.Appreciate for any help rendered.

    Hi all, i'm new to Mac book & Xcode. I'm learning and facing problems while creating a new file for Xcode. Before i upgrade the software, i have no issue to create simple steps in apps. After upgrade Xcode to 4.6 version, i'm facing lot's of issue eg.
    1) "the identity "iphone developer" doesn't match any valid certificate/ private key pair",
    2) can't select the box "with XIB for user interface" if the subclass is "UIViewController"..
    Appreciate for any help rendered.

    Mikko777 wrote:So what is the best?
    I wouldn't judge. I've been to Arch for a week, you know? But as said, it's VERY close to it.
    What I dislike after a week is makepkg not handling dependencies automatically (which would be overhead, so probably not appropriate).
    Mikko777 wrote:Also theres KDEmod for modular kde, dunno if its for 64 bits tho.
    Don't actually need that as said ... I see no real benefit of having that other than not beeing a KDE user or having Gentoos useflags.
    Mikko777 wrote:PS:You produce a lot of text and welcome smile
    Yeah. Wonder why I'm still employed? So do I ...

  • Photoshop CS3 extended error on Installation("A Problem occurred while extracting some files....

    Hi guys. I dont know if youve experienced this but I get this error whenever I try to install Photoshop CS3 Extended. The error popup message goes like this:
    "A Problem occurred while extracting some files. Check available space on your computer and the write privileges on the destination folder."
    Any idea? :(
    thanks in advanced.
    Cheers!

    Welcome to the forum.
    where is the file to download it directly?
    With CS3, there might not be one any longer. CS4 has been out for some time. You might need to contact Adobe Customer Service for resolution. I know that they offer replacement media for a small fee, but do not know how far back they go with the versions.
    For me, I always purchase the full discs, and from Adobe, so I have little experience with downloaders and with the downloadable files. Maybe someone else can offer you more direct assistance.
    Good luck,
    Hunt

  • A problem while implementing a file to file senario

    hi all :
         There is some problem while implement a file to file senario. the file couldn't be sent or recieved.
          and as I try to check Check the Sender File Adapter Status  via
         Runtime Workbench -> Component Monitoring -> Communication Channel Monitoring ,
         It is found that Adapter Engine has error status with red light.  Is it why the file couldn't be sent?
        Could you please tell me how to make Adapter Engine  available?
        Thank you very much!!!

    Hi Sony
    Error getting JPR configuration from SLD. Exception: No entity of class SAP_BusinessSystem for EC1.SystemHome.cnbjw3501 found
    No access to get JPR configuration
    Along with what experts suggested
    What is the type of Business system is this. Standalone Java?
    JPR can have problem if you have a business system thats not ABAP/Java type if this system is not having a SAP TS in landscape then create Java type.
    Thanks
    Gaurav

  • Problem while dowloading the file from Application Server

    Dear Experts,
                 I am facing the Problem while downloading the file from Application server.
    We done the automatic function while saving the invoice, this will create an idoc, and this idoc is written in the Application Server.
    I am running the Transaction AL11 and select the record, and from menu --> List, i am downloading into TXT format.
    But for some segments, the length is long, and so the last 3 to 4 fields values are not appearing in the File. Even though i am unable to view the values in the file before downloading. But i can view in IDOC.
    Please help me to solve this issue.
    Thanks & Regards,
    Srini

    but our user will use the Txn. AL11 and they will download from there
    Educate the user On a serious note, tell him this is not how data from app server should be downloaded. You can ask him to talk to the basis team to provide him access to the app server folder where the file is being stored.
    I can set the Variant and put this in background, But always the file name will be change, Like we use Time stamp in the File name.
    You can't automate this process by scheduling in BG mode. This is because the in BG mode you can't dwld the file to presentation server.
    Hope i'm clear.
    BR,
    Suhas

  • Problem while creating CAF project in NWDS workspace

    Hi Experts,
    We are facing a problem while creating CAF project in NWDS workspace. Even though we have tried in new workspace we are facing the issue. Find the below build error.
    We are not getting any error when we build from CBS.
    [javac] ERROR: C:\sap\test_VC_DC.jdi\0\DCs\test.com\ja\bl\journal\ejbmodule\_comp\src\com\test\ja\bl\journal\modeled\ModifyJournalLineItemRequestMessage.java:7: cannot find symbol
    [javac] ERROR: symbol  : class JournalLineItemDetail1
    [javac] ERROR: location: package com.test.ja.cm.util.modeled
    [javac] ERROR: import com.test.ja.cm.util.modeled.JournalLineItemDetail1;
    when we expand com.test.ja.cm.util.modeled there is no file with name JournalLineItemDetail1 and the actual file exists is JournalLineItemDetail but we are not able to understand why 1 is appending to the file JournalLineItemDetail. Can somebody throw some light on this?
    Regards,
    Pradeep

    Have you checked out the topics at the right in the More Like This section?
    OT

  • Problem in creating a file on Application Server

    Hi,
    I am facing an issue while creating a file on the application server.
    I am creating a file with sales data from SAP and saving it on the application server.
    At the end of this operation, I am calling a Unix script to push this file from SAP to an external system.
    The issue I am facing is - at every month end, when I run a job for creating the file (its a custom program which is scheduled to run periodically), I get a strange scenario where a BLANK FILE gets created on the application server even though the data tables are not blank.
    Also the user id gets changed to UID = 1400 when I run this job for the first time when a BLANK FILE gets created.
    When I delete this file and run the job again, though, the file gets created WITH DATA.
    The user name remains DEVADM (Dev Admin), as it should be for the scheduled jobs.
    What could be the possible reasons for this?
    Please help me in this direction.
    Thank you.
    Regards,
    Keerthi

    Hi,
    You are using OPEN DATASET ? And what is the sy-subrc ?
    Can you post some lines of your code?
    Best regards,
    Leandro Mengue

  • Error while creating logical file using transaction FILE

    Hello there,
    I am facing an error while creating Logical File name definition using transaction FILE
    This is the input which I'm trying to give
    Logical file name: ZTEST
    Name : ZTEST
    Physical file : ZTEST_1<DATE><TIME>.csv
    Data format: ASC
    Application area: BW
    Logical path:ZTEST_1_DATAOUT
    when I tried to save it throws me an error like  ASSIGN_SUBSTRING_NOT_ALLOWED
    Please help.

    Hi,
    Please check the OSS Notes :
    Note 792061 - SP Case Locator: Dump: ASSIGN to a substring isn't allowed.
    SAP Note 1297989 - Short dump ASSIGN_SUBSTRING_NOT_ALLOWED
    Hope this solves the problem.
    -Vikram

  • Error while creating cap file

    while creating Cap file through converter , error is coming Class helloworld does not belong to this package while giving the same package path where it is existing physically. i m using javacard version 2.2.1 and J2SE 1.4

    Hi Joseph
    Thanks and accept my regards. Now I am able to create the .cap file. but I am facing another problem. I am developing a sim application but I am not able to find the sim.toolkit libraries. Can you plz guide me, where i would find the libraries.

  • Problem while creating URL iview (in EP7.0)

    Hi,
    I encountered a problem while creating URL iview (in EP7.0) as when I selected the iview template for creating the URL iview, the content area got displayed as
    "No templates to display. You are not assigned to any existing templates."
    please assist me in this regard.
    Thanks,
    Suri

    Hi Manoj,
    Thank you for your reply.
    I am still getting the same messages even after creating the iview template in EP7.0
    Created through:
    content Admin --> portal content --> <folder>new --> iview  --> seleting "Portal component - create an iView from a portal component contained in a deployed portal archive (PAR file)" <next> --> seleting "com.sap.portal.appintegrator.sap" <next> --> webdynpro <next> --> finish.
    Open object for editing...--> Object is a Template to Yes.
    Result :
    content Admin --> portal content --> <folder>new --> iview --> seleting "iview template- create an iView from an existing iView template" <next> which displays the same message.
    "No templates to display. You are not assigned to any existing templates."
    Rgrds,
    Suri.

Maybe you are looking for

  • Need to split the document in 950 line iteam record in LSMW

    HI ALL, I am posting documents using LSMW  for Tcode FB01. But some documents having more no of line items like 1000. But SAP will allow only 950 line tems for each documents. In this sistuvation we need to split the data as 950 and 50. we need to po

  • I photo won't open after updates.

    I photo will not open. Maverick installed then downloaded i hoto update 9.5.1, will not repair library permissions.

  • SOD in PS and Oracle

    Hi, A company is using Oracle Applications as well PeopleSoft and they want to have a comprehensive tool for doing SOD analysis. Using ICM I know that the SOD can be checked for both OA and PS as well, but preventive mechanism in ICM, can that be use

  • Database slow on moving to 8.17

    Hi, we have upgraded from 8.16 to 8.17, with the XML packages enabled. Since doing so when certain intensive reports are run my system grinds to almost a halt. The slowdown seems to be associated with disk activity. Lots of it. I have these line to t

  • I cant register my laptop Satelite L505-GS6002

    The thing is i reinstalled my laptop and ten downloaded all its drivers.All the drivers fit properly but the display driver does not seem to fit it pop ups a error message tat "Application error registoring one or more components".I had conntacted su