Why the output file invisible from JCreator??

i developed a program with JCreator. with the program, i intend to write something to an output file with the codes like:
FileOutputStream fos = new FileOutputStream("output.txt");
DataOutputStream dos = new DataOutputStream(fos);
for(int i=0; i<10; i++){       
String s = i+" ";           dos.writeChars(s);
fos.close(); dos.close();
how come when i open the output file from JCreator, i can not see anything there? yet, when i directly open the file "output.txt" from the directory storing the program source codes in the operating system, the output string "0 1 2... 9" is visible.
quite confused! could you please illumine?

I am not sure of my facts but I think the problem is as follows. DataOutputStream writes bytes of primitive information. You can use the method .writeUTF() which is an ASCII-compatible encoding, instead of .write().
However textual output should be done with PrintWriter (or PrintStream in Java 1.0). JCreator is expecting ASCII or text to read.

Similar Messages

  • Why the output file is so big?

    Dear All,
             I am trying to write some data to the binary file. But the output file is very big. When I write 1M*4kB ,the file will more than 20MB. I don't know why.
            This is my vi, Please help me to find the fault,OK? Thank you very much.
            Thanks.
    Attachments:
    question1.vi ‏105 KB

    It is NOT the same vi!!! You need to familiarize yourself with dataflow, LabVIEW does NOT execute left to right, any part can execute if all inputs have data.
    In your particular case, the "file info" will execute at the same time you are building the file path. In addition, you are measuring the size of the stripped path and not of the new file. Try execution highlighting!
    To fix your code:
    You need to get the "file info" from the path AFTER you add the new filename.
    Use the error cluster to enforce proper execution order as in my example. WIre the error out of "close" to the error in of "File info". Now the "File info" must wait until all inputs have data, which can only happen after "close" has completed.
    All clear?
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SizeTest.vi ‏29 KB

  • How to get the Output File Name as One of the Field Value From Payload

    Hi All,
    I want to get the Output file name as one of the Field value from payload.
    Example:
    Source XML
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_TEST xmlns:ns0="http://sample.com">
    - <Header>
      <NAME>Bopanna</NAME>
      </Header>
      </ns0:MT_TEST>
    I want to get the Output file name as " Bopanna.xml"
    Please suggest me on this.
    Regards
    Bopanna

    Hi,
    There are couple of links already available for this. Just for info see the below details,
    The Output file name could be used from the field value of payload. For this you need to use the UDF DynamicFile name with below code,
    //       Description: Function to create dynamic Filename
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    With this udf map it with the MessageType as
    (File Name field from Payload) > DynamicFileConfiguration>MTReceiver
    Thanks
    Swarup

  • Why is the output file jerky ?

    Hi there,
    I have AE CS5 on my Mac. My system is 27" iMac core i5 with 12 GB RAM DDR3 1333 MHz with quad core.
    I rendered a 40 seconds clip with an earth spinning.
    I output it to mov format in 1920 x 1080.
    When I did a RAM preview, it was fine & the earth was spinning smoothly.
    But the output file (in mov) - (I did thru Composition > Make movie) when I play using QuickTime player is jerky at 20th Sec to 29th sec.
    I then import this mov file into Final Cut, it look stuck in the Viewer but was perfect on the Canvas.
    When I render in Final Cut, the output file as mov and use the same Quick Time player to play it & it is perfect.
    Can I know what is the reason that it is not working in Quick Time the first time when it was fresh out from AE ?
    Thank you.
    Cheers

    The default render settings use Quicktime Animation codec at best quality. These files will not playback smoothly because the data rate is too high for the hard drives to keep up with. The animation codec is a lossless codec designed not designed for playback.
    Final Cut uses compressed codecs designed for playback as the default. I'd suggest that you open up the help files (F1) and read the entire section on Rendering and Exporting (link).

  • The output file  for your concurrent request is not initialized

    Application: Application Object Library(FND)
    Component Type: SERVICE_INSTANCE
    Component Name: Standard Manager(STANDARD)
    /*The output file for your concurrent request is not initialized.
    Cause: Your concurrent program execution was not preceded by calls to standard
    Application Object Library routines to initialize concurrent processing. FDPFOP
    received a return code of failure.
    Action: Change your concurrent program to initialize files by calling standard
    Application Object Library routines. */
    I got the mail with the above message from System ( Oracle Applicaitons Release 12.1.1)
    I have checked the following metalink document
    The Output File For Your Concurrent Request is Not Initialized: FDPFOP received a return code of failure [ID 296830.1]
    I can not undestand, why the alert sends mail?
    Could you please let me know..what happened to standard manager? how to resolve the above issue? why the above alert happened?
    The above meatlink note did not help much....

    Hi;
    >
    /*The output file for your concurrent request is not initialized.
    Cause: Your concurrent program execution was not preceded by calls to standard
    Application Object Library routines to initialize concurrent processing. FDPFOP
    received a return code of failure.
    Action: Change your concurrent program to initialize files by calling standard
    Application Object Library routines. */
    The Output File For Your Concurrent Request is Not Initialized: FDPFOP received a return code of failure [ID 296830.1]
    I can not undestand, why the alert sends mail? Could you please let me know..what happened to standard manager? how to resolve the above issue? why the above alert happened?I checked related note and it mention its internal bug which mean we cant say too many thing about issue.
    The above meatlink note did not help much....It helped or not? Issue still appear or not?
    Please run adadmin utulity >> from Maintain Applications Files>> Relink Applications programs
    Be sure it wont through any error message than retest issue
    Regard
    Helios

  • I have this following problem in Adobe Premiere Elements 11: Error of export: You don't have permissions to create or delete the output file.

    Hey guys,
    I have this following problem:
    When i export my movie to my desktop from premiere elements 11 it fails and says "Error of export: You are not permitted to create or delete the output file."
    This is the first time i had this problem.
    I have no ideas to solve this problem ... I don't found it on this page neither in the whole web -.-
    I look forward to get requests

    S
    QuickTime is a requirement for Premiere Elements (any version). Please download and install it so that we can continue this troubleshooting. Among other things, without QuickTime installed, you will not have QuickTime presets in Publish+Share and will not have available to you codecs supplied by that player.
    Please right click the Premiere Elements 11 desktop icon and apply Run As Administrator. Please review computer permissions..
    In the meanwhile, please reply to all the questions, including
    What is the description for your export choice and does it make a difference if your Export Save In location is the desktop or to Video Folder in Documents?
    What is a description of your computer resources?
    Please consider and supply details need to help us help you.
    We want you to succeed.
    Thank you.
    ATR

  • Input file should be deleted only after the output file is successful.

    Hi Experts,
    Could you pleas solve the below issue.
                           In  a file to file scenario, the input file will be picked from a directory location and after processing output file will be placed in the output directory location specified in the receiver communication channel.
    In the sender communication channel for the scenario mentioned above, if the processing mode is given as delete, the input file will be delete as soon as the file was successfully read by the adapter, but this will not ensure that the file processing is complete and the output file is being created.
    If we have a scenario in such as way that the input file should be deleted from the input folder only if the complete process is successful and the output is generated. how can we achieve this functionality?.
    And one more thing if we got the successful output the output file should be placed in one folder. and the if the output file is having errors it should be placed in other folder.

    Hi,
    In Receiver communication channel I have used the below command in Run Operating System
    .And I have kept the processing mode of sender communication channel as test.
    cmd.exe: /C "del /Leela/test.xml"
    You are running the comman line program configured in the receiver File Adapter,but in command line you mentioned the Sender File Folder , So i guess it's not getting processed.
    Try this:
    Try to run the command line in the Sender File Adapter Side
    "Place this in " --> Run OS Command After Message Processing.
    Hope this would work and get in parrallel with u r requirement.
    regards
    Srini

  • Why the menu to move from one page to another is not seen when the page is online?

    On my web, I have different pages like 'Homepage' or 'Contact' but when I publish my web I can not see the menu.
    why the menu to move from one page to another is not seen when the page is online?
    Thank you,
    Roger.

    Where are you publishing and how are you uploading the files?

  • Getting junk data in the output file in UNIX server due to UNICODE error.

    Hi All,
    I am working on an Upgradation project from 4.7 to mySAP ERP 2005.
    IN 4.7 we are using
    OPEN DATASET lv_filename FOR OUTPUT IN   BINARY MODE. and getting the file as required.
    In ECC 6.0 for the same OPEN DATASET statement ,the output file in unix server has the junk data having the characters like #<##d9{y#+G9###T>j(##^# #K## #q### #####.
    Pls help me in this issue to proceed further .
    Thanks,
    Chakradhar.

    Hi Markus,
    Below are the files data in both environments.
    In ECC 6.0
    001B2274001802007051                                 0  20070519CTLMEA      RPTIME00043900 #
    ###9##;c_5####Tj#y#.##'###u###<#<##d9{y#+##G9###T>j(###^###K####q##########C##dA4####&#1393;###x##
    R[#!#J##&#1698;w###u#-C#'Qho#&#31632;}j##w%##/#'ZhW##s###n&#1080;#&#1723;>-J#####&#1046;#tP}##Hu#}Q7###Sh_###C4<3nqk##i l#
    ####{############Qns###;####p##{si##y##@##&#1008;0####C###,###2&#973;#j&#830;########Q#f####;)k>lO#5#n###&#1852;#
    ####M##S##IM#z0#o##&#1325;####!#V#9###&#1722;#?s##[#####V&#&#756;s#&#56196;&#56590;[#l#s##&#48610;:#&#1334;{&#548;&#55960;&#57086;M-##v@#########v#&#2034;###s##
    9Q##!#d#####`#############Lc####J#######%?######E#HV3#(#N####Wl####}S#O######zA[##m####u/7#T
    ##2#s##Q#umF]##Z###}##&#1858;###a######z1#`#####&#46110;-###Q#o#####Q###x#######7Z[##?#V#e##nI####O1=u[#
    ##p##Kj#####]#####/5#20{####&#1244;##x##A#?###xa##/<^#Rj&#16741;#######xI#+j#%###$##$######p=##V#&#1290;
    #######k#K##yI#yI#!/)#y#z##-y######"/#e&#1717;##/############*###"/_##-##+##/#y9#####5#9/#yI#A#
    ###################J/yih=####u4i#K##t####&#1822;######=##AX###J##z#####KC&#48084;## /###G{#K#####
    In 4.7
    001B2274001802007051                                 0  20070519CTLMEA      RPTIME00043900
    ãÔ?®zåÖ#Iï-_Î-ør7##*Ódöã ²äÐÁSjòä`ëÏ©"yÿï¾E#[µºEW#g#2éu##a±¸u~#ZäTéR¯F&o#C·¼åÈÝÁ%½ß´y6+##¿
    íE#z!#â#ùG#>{#éJæ##jÅSM<±òxwÆüI¾jâ#µ#ù
    íQ ÕÈ###dÝ#/«#ycãA¼#ø#7#¿#¼#íxãý#y«#o#â¡ùéËÖ_C¼½À4ðÀó#Ð8?qÊ#O½Î¿_##b#xjÛÓ#OÜ#×gÌ#×ós##
    í¡ùh¿~ëÊÓü#ò#'¡#Á#â©#<áoú#'Ô®ü#»L»þ#y)hà#ç#Z[¡#'®Uy1?YC<Ýú#iÇÇ###Íç'Ô#§#Ù#O§#f<###B{#§##ñ
    #0H}¬#^##6¨7V¨7VÚX#M9&#A#øG º'õxOù§ø #W¨Å+Ðb#ÉÇ7#SôRXß\u00A7à#wE"#mê#óÀd# ¼##gn###:ô#E<#######ú
    ûJ¦H}#·¦Y½â>ºbò#xSSÿÿÕ«óG#ï#6²f´Ú¾fyqèhJÖçCOr´#Ý#S?##KËÄ×mâë¶x)º×ªh2Åw8&í####7 `Ùo#ö»#òöw$
    ½##Gê#ì#»#La)ì##Ý÷#{7í´éã»##ãî]¾[##{O#¾C##£¶G#û¼Eû#dL#ª:#PÉEÉ>Ó##ª:G#éaR^·BEµÏ+¹###y#N##ȱ
    DÕ##5#"9Ní>#íFo##kp#ÂðÆè5¿ð½F®¯M##þð1#îi##Z #Z #Z#ô-¾#§èH»û¹ö9é#Ôä#001B2274001802007051
    èÁ##<(#ÿ#¢²ÿ#è#éc#z¾vçÌá#¹#ý#x%ìÜ#çÌ##ùÍÙ#¹{ǯepmâí#¸Ö##¸=ÝÙ½¹uë·,ù#þ¼øl###£åg#,##-`q#ÿøæï
    viÁ#]3#.O#þÊöèR##=##L#LÊk###¤à##ó#'V052 øé]+####ã!ÁC#s#q###åLj##Á¯Æ4#.àíT#¸Þ¹µ·¶É)ç#Ïå#<#/ð
    Thanks,
    Chakradhar.

  • Exe file not producing the output files

    Could anyone please help me with my exe file. I have an exe file "exeFile" which takes more than one file as input from the source "c:/files" and produces some files as output into the destination "c:/files". Both my source and destination is same. My code given below is neither showing any error nor outputting any files. My code is:
    private static void compilingFiles() throws IOException
         String FirstParam = "C:/files";      
         String SecondParam = "C:/files";
         Process proc =Runtime.getRuntime().exec("cmd /c start /MIN C:/files/exeFile " + FirstParam, (String[])null, new File(SecondParam));
    }

    After going through The reference, I modified my code as under. My first exe file "tex" is doing the necessary as before, that is producing the output files to the destination, but the second exe file "fi2t1" is not producing the necessary output.
    My output after running this file is:
    <ERROR>
    </ERROR>
    Process exitValue1: 0
    <ERROR>
    </ERROR>
    Process exitValue2: 0
    <ERROR>
    </ERROR>
    Process exitValue1: 0
    <ERROR>
    </ERROR>
    Process exitValue2: 0
    <ERROR>
    </ERROR>
    Process exitValue1: 0
    <ERROR>
    </ERROR>
    Process exitValue2: 0
    So as per The reference, I think my code is right - "So, MediocreExecJavac works and produces an exit value of 2. Normally, an exit value of 0 indicates success; any nonzero value indicates an error.".
    So please tell me where am I wrong. My code is:
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.util.*;
    public class FontDriverCompile
         public FontDriverCompile()
         void compileFile(File newFile, String renameSub, File outputfile) throws IOException
              String FirstParam = "C:\\Temp\\sample\\font-driver.tex";  
              String FirstParam2 = "C:\\Temp\\sample";
              String SecondParam = "C:\\Temp\\sample";  
              try
                   Process proc1 =Runtime.getRuntime().exec("cmd /c start /MIN C:/Temp/sample/tex " + FirstParam, (String[])null, new File(SecondParam));
                   InputStream stderr = proc1.getErrorStream();
                   InputStreamReader isr = new InputStreamReader(stderr);
                   BufferedReader br = new BufferedReader(isr);
                   String line = null;
                   System.out.println("<ERROR>");
                   while ( (line = br.readLine()) != null)
                        System.out.println(line);
                   System.out.println("</ERROR>");
                   int exitVal1 = proc1.waitFor();
                   System.out.println("Process exitValue11: " + exitVal1);
              catch (Throwable t)
                   System.out.println("t.printStackTrace()_1");
                   t.printStackTrace();
              try
                   Process proc2 =Runtime.getRuntime().exec("cmd /c start /MIN C:/Temp/sample/fi2t1 " + FirstParam2, (String[])null, new File(SecondParam));
                   InputStream stderr = proc2.getErrorStream();
                   InputStreamReader isr = new InputStreamReader(stderr);
                   BufferedReader br = new BufferedReader(isr);
                   String line = null;
                   System.out.println("<ERROR>");
                   while( (line = br.readLine()) != null)
                        System.out.println(line);
                   System.out.println("</ERROR>");
                   int exitVal2 = proc2.waitFor();
                   System.out.println("Process exitValue2: " + exitVal2);
              catch (Throwable t)
                   System.out.println("t.printStackTrace()_2");
                   t.printStackTrace();
    }Message was edited by:
    sony_tj

  • Using Timestamp [TS] in the output file name

    Hello Everyone,
    i am trying to get the timestamp into the output file generated by the store file atom. Since my Outbound channel is void i thought i could use:
    [TS]
    or
    [yyyy][mm][dd][hour][min][sec]
    My File Specification is: C:\Temp\Out\blabla[TS].xml and unfortunatelythe outputfile are named: blabla[TS].xml
    What am I doing wrong? Can i not use those placeholders in an atom?
    Help is greatly appreciated
    Best regards
    Simon

    Hi Simon,
    Now I see, you're trying to maintain the timestamp in the SLD FILO section and not in a store file atom of an integration scenario.
    In this case, please check the following help document:
    filePattern
    To define the outbound file pattern, define the directory and the file specification. Enter the full path. The integration framework supports Microsoft Windows UNC (Universal Naming Convention) names. The directory you enter must exist in the file system. The user for directory access must have the necessary rights in the file system.
    You can use the following special characters and variables:
    Character/
    Variable
    Description
    To introduce  numbering in the file directory use ?.
    If you enter  for example data????.xml, the integration framework creates an outbound file called data0000.xml, if the directory is empty. If a file, following this naming  convention, already exists in the outbound directory, the next generated file  name is data<last  number>+1.xml. If data0000.xml already exists in the directory, the next file in the directory  is data0001.xml.
    [vbiu]
    This is a placeholder for a value you can  define in scenario package processing. If you use the value, add the b1im_filename attribute directly in the outbound payload.
    <xsl:template  name="transform">
          <xsl:attribute  name="b1im_filename">myName</xsl:attribute>
    </xsl:template>  
    [TS]
    To add a  timestamp to the file name, use the variable. This gives you another  possibility to define unique file names.
    [yyyy]
    Adds the  current year in four digits to the file name
    [yy]
    Adds the  current year in two digits to the file name
    [mm]
    Adds the  current month to the file name
    [dd]
    Adds the  current day to the file name
    [hour]
    Adds the  current hour to the file name
    [min]
    Adds the  current minute to the file name
    [sec]
    Adds the  current second to the file name
    You can also combine the variables. For example file[TS]??.[hour][min].txt
    Here is a screenshot of my SLD FILO definition and from the result:
    Best regards
    Bastian
    P.S.: just in case you need to define a filename in the integration step for the store file atom, here is a screenshot:

  • Why the db file is so big?

    hello,now i use BDB as my database;
    pdb->open(NULL, m_dbName, NULL, DB_QUEUE, DB_CREATE, 0);
    now, there have two processes , one is FEP, the other is DP
    FEP write 10000 datas to DB_QUEUE one second;
    DP read 10000 datas from DB_QUEUE one second;
    after the two processes run one hour, the db file become so big,
    the size of db file is 1,425,796KB ,but there is no record in db file;
    why the db file is so big?
    the db file will become little automatic?
    do you have some APIs to make the db file little?
    thank you!
    Edited by: 829357 on 2011-1-19 下午5:01

    Hello,
    Based on your description, it sounds like you didn't assign a queue extent size when you created the database.
    From the BDB Reference Guide, see the section on [Selecting a Queue Extent Size|http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/rq_conf.html#am_conf_extentsize]. It sounds like the behavior that you are looking for is the ability to automatically delete queue extents once they become empty. This feature should do what you're looking for. Refer to the C API Guide ( here ) on how to define a queue extent.
    If you do not want to use Queue extents for some reason, another option would be to call truncate() on the database. However, that will result in deleting any records that might be in the database as well as truncating it.
    Regards,
    Dave

  • Ordering the output file

    Is there a way to order the output files so the pieces come out in order by pallet so we don't get zero pallets in the middle of our container and address files?
    Thanks.

    Bill,
    You may want to take a look at Mailflow in Presort.  I think the below steps may give you the results you are looking for...
    VIEWS:
    1. Open presort job
    2. Double-click Execution options
    3. Select Sequence by Mailflow
    4. Click OK
    5. Expand Mailflow Setup
    6. Double-click Mailflow
    7. Select Alternate Mailstream Hierarchy Seq
    8. Click OK
    9. Double-click Alternate Mailstream Hierarchy Sequence
    10. Set Presort Scheme to 1
    11. Set Segment (or Entry Point) to 2 as desired
    12. Set Entry Point (or Segment) to 3 as desired
    13. Click OK
    JOBFILE:
    1. Open .pst in an editor
    2. Go to the Execution block
    3. Set the parameter + Sequence Output by Mailflow (Y/N) to Y
    4. Go to the Mailflow block (if block is not available, copy it from master.pst)
    5. Set the parameter Use Alt Mailstream Hierarchy Seq (Y/N) to yes
    6. Go to the Alternate Mailstream Hierarchy Sequence block (if block is not available, copy it from master.pst)
    7. Set Presort Scheme to 1
    8. Set Segment (or Entry Point) to 2 as desired
    9. Set Entry Point (or Segment) to 3 as desired
    Thanks,
    Kendra

  • Cannot see the output file in my first project

    Hi,
    I follow the instructions of Exercise in Chapter 4 of CAP-0501 to make the project. I wonder why I cannot see the output file in 'C:\CAPExercises\0501\exercises\Active_Project\Output'.
    There are two things I would like you know.
    1. I do not have the file 'prjFileXferInput.xml', but find and copy a xml file. Is this a problem? Does CAPS have any special requirement on schema for the input file?
    2. Is '\' and '/' a problem for Java CAPS? I notice the book using 'C:/CAPExercises/0501/exercises/Active_Project/Output�, while it is 'C:\CAPExercises\0501\exercises\Active_Project\Output' on windows. I am working on a standalone Windows 2000 computer.
    By the way, can anyone give me a confirmation that '/' and '\' is not a problem for Java CAPS, as the server or application take care of it? Is it true?
    Thanks,

    I am answering my own question. The project works.

  • Duration of the output file

    Hi,
    I have to export movies from a lot of still images (jpeg) with media encoder CS6.
    can I change the default duration of the output file? Actually it's 5 seconds but I need clip of 1 second.
    thank you.
    elena

    Hi Dima, thank you for you answer.
    Yes I know it, but I would like to save this option as a preset.
    I have a lot of images to export in this way and I can't set the duration manually for every export.
    Is it possible?
    thank you.

Maybe you are looking for