Logger creates two file...why ?

Hello,
actually I'm working on a program and I want to log the errors occuring during several runs. To log the errors I'm using a Logger object in combination with a file handler so all logging messages are written to a .txt file. Now I have two problems:
1) the .txt is in XML-format which isn't really bad at all...but I'd better like to create a 'real' .txt file without the XML-tags.
2) there are always 2 files created: the .txt file and a LCK-file. Can anybody explain me where I need the LCK-file for, because it's always empty. Do I need this file because all information I want to lock appears in the .txt file and if no, how can I avoid the creation of this file ?
Thank You very much,
Findus

I'm looking for a solution to the .lck file problem too.
Changing the log file format is easy, just install a different Formatter on the handler that's generating the file:
fileHandler.setFormatter(new java.util.logging.SimpleLogFormatter());

Similar Messages

  • When I try to save a new file from numbers, I'm given the error of it can't create a file. why would that be?

    when I try to save a new file from numbers, I'm given the error of it can't create a file. why would that be?

    Try using /Applications/Utilities/Disk Utility to repair file permissions.
    Bob

  • CS4 Save as creates two files

    When "saving" or "saving as" legacy files two files get saved. One has the suffix added as "-01". Is there a preference to turn off because I have to keep going back to kill the duplicate file.
    Mac OSX 10.4.11
    Illustrator version 14.0.0 (CS4)
    Thanks in advance, Bob

    do you have more than 1 artboard?  Uncheck the option of saving artboards. But think, if you do this, you are going to save the current artboard and lose the others....

  • Saving a PDF creates two files - one I named and one with a gibberish name

    I'm hoping someone can help me.  I got a new HP laptop (Windows 7) and downloaded Acrobat Standard 9 from the Adobe website when I couldn't find my install disc.  When I save a PDF, it saves correctly.  However, a second file is created with a gibberish name composed of three letters and five numbers (i.e. aab05176).  When I try to open the mystery file, my laptop asks what program it should use.  If I choose Adobe, it will open and the mystery file is a copy of the PDF that's also saved under the name I told it to Save As.  So, essentially, when I save, I get two copies every time, and always in the same destination folder. 
    Can anyone help me fix this?  When I'm working on a PDF, I like to save often, so my work won't be lost.  When I'm done, I have tons and tons of these gibberish files to delete.
    Thank you in advance!

    The filie with the funky name is a temp file that is created that is eventually made into the file you are saving as a pdf. You do not say where the file is being stored, the it should be in a temp folder that periodically gets cleaned out. However, sometimes one does have to manually cleanup the temp folder.

  • Exporting media creates two files.

    I am trying to export an AVC HD video file I imported off my video camera and edited. I go to File >> Export >> Media and select MPEG2 Blue-ray as that is the HD format I want to export the file into and later burn to a disk. It says it is going to export the file as an .m2v file, which it does just fine. However, it also creates a second .wav file for the videos sound. The video file does not have any sound in it at all. I looked through the settings on Premiere Pro to see if there was some setting that was causing this. I did not find anything.
    Hopefully someone has a fix for this.
    Thanks
    Sean

    If you want a muxed file, you will need to also set the multiplexing in the Multiplexing tab. What is it set to now?
    Good luck,
    Hunt

  • When I create a file, why does the PDF have text aligned on different pages than my word document?

    I am trying to create a PDF of a Mac Word document.  In the conversion process text seems to shift - what was on the bottom of the first page in the word document shows up on page 2 of the pdf.  Any thoughts?

    Hi svht,
    Would you send your document to [email protected] as an email attachment?
    I will check it from my end.Please add the link to this forum post for reference.
    Regards,
    Florence

  • Dynamic Configuration for two file adapters communication channels

    Hello Experts!!!!!!
         In one of the interface in my landscape, I am using two file adapters for creating two files with different names and at two different destination on F.T.P.
    However the receiver service for both the communication channel are same.
    In message mapping I am using multi mapping to create two files out a single message.
    Now i have a requirement of changing file path and file name using dynamic configuration for both the comm channel.
    When i doing dynamic coniguration for both the comm. channel. My interface is creating two files but with same name and on same destination which is set for second communication channel through dynamic configuration.
    Here, I guess the second dynamic configuration is over writing the first dynamic configuration and hence creating two files with same name and at same destination.    
    Please suggest, if separate dynamic configuration for separate communication channel of same receiver service can be done?
    Thanks & Regards,
    Amol

    Thanks for your prompt responses!!!!!
        Is there any way, By which in dynamic configuration I can find out the communication channel name and then change its parameter.
    I mean if iam using say comm. channel A and B.
    Then in dynamic configuration for A, I will first take communication channel A by calling it and then change its path/file name.
    and then do samething for comm. channel B in its dynamic conf.
    Regards,
    Amol

  • Using a for loop to create multiple files ???

    I have the below code. I want to make a file for every element stored in the array. How do I do this?
    Vector files = new Vector();
    for (int i = 0; i<files.size(); i++)
         //System.out.println(files.elementAt(i));
    }

    Not much. Are the files being created by processes on multiple hosts? If not, adding the host name and IP seem useless. Are the files being created by multiple processes and/or multiple threads on same host? If so, then the former isn't helpful. Is it possible for two threads or processes to create a file in the same millisecond - if not IMPOSSIBLE then it is possible and 99.99% chance that they won't isn't good enough. If so, then that won't work either. What if a single thread quickly creates two files in same millisecond - remember the millisecond value may not change for several milliseconds due to host system architecture.
    So, I guess it depends on your requirements.

  • After formatting and creating two partitions on my external HD, why is Time Machine taking 25x longer to perform a backup?

    Hi.
    I bought a macbookpro 13"retina, new two weeks ago and a G-tech 1TB external drive from the apple store. It's my first mac.
    I performed a backup, using Time Machine, which copied 18 GB onto he 1TB external HD in around 20 minutes.
    After a little more reading, I realised I should use Disk utility to partition the 1TB external G-tech drive into a 250gb partition, and a 750gb partition.
    [My MBP has a 250gb flash HD. I'll use the other 750gb for storage of my other files, like photos, music etc.]
    So, using disk utility I formatted the 1TB exernal drive, then created two partitions.
    However, I've started backing up my data using time machine again, onto the 250gb partition, on the external drive, and its now taking 5 hours to copy the 19.81GB
    So why is it taking 25x longer than the first time I did it? [First time it took 20 minutes]
    Thanks

    Since performing the fist backup, a couple of days ago, which took twenty minutes, and the second backup, which is taking 5 hours, I installed MS office for Mac 2011 and Silverlight.
    Dont know if thats responsible?

  • HELP!EXPORTING FROM KEYNOTE TO QUICKTIME AND IT CREATES TWO DIFFERENT FILES

    I made a presentation in keynote, adding music from my itunes library and need to send it to a client (who owns a PC) ASAP.
    When I export my keynote file to QT, it creates two separate files on my computer. One is the project and one is the "soundtrack.mov"
    1. Why does it create two separate files?
    2. How can I send the ENTIRE presentation in one?
    3. How can I send it to a PC user?
    4. Why did it tell me on my last music selection that I added to keynote (After I exported) that I would have to open it in itunes???
    Totally NEED HELP ASAP!
    Thank you
    ML

    Yeah, me too. Bump. Can anybody explain this behavior?!?

  • FAQ: Creating PDF Files from FrameMaker v.6 & earlier Documents -- Why you should not use "save as PDF"! -- Windows & MacOS Only!

    An issue that has come up over and over again on several FrameMaker and Acrobat/PDF email lists as well on the corresponding Adobe User-to-User forums is that of creation of PDF files. FrameMaker 5.5.6 and 6 have what looks like a convenient feature that is supposed to allow you to create PDF files via simply saving the document as a PDF file. I have gone on record as advising end-users not to use this approach for reliable creation of PDF files from FrameMaker documents under Windows and MacOS with FrameMaker 6 and earlier. Why do I most vociferously offer this advice and why doesn't the problem get fixed? And how SHOULD you create PDF files from FrameMaker?
    GOOD NEWS
    I will start with the good news. The "next major version" of FrameMaker will indeed have "save as PDF" re-implemented in a manner that it will be as reliable as printing to the "Acrobat Distiller" printer instance under Windows or the "Create Adobe PDF" desktop printer under MacOS. I am personally working with the FrameMaker development organization to make sure this really happens and is fully and properly tested and debugged! Furthermore, this next major revision of FrameMaker, unlike FrameMaker 6, will come with a Distiller installer that will properly install the "Acrobat Distiller" printer instance under Windows and the "Create Adobe PDF" desktop printer on the Macintosh (of course assuring that the latest PostScript driver is also automatically and correctly installed).
    DON'T USE "SAVE AS PDF"
    But what's wrong with "save as PDF" as currently implemented?
    The following are some of the SYMPTOMS reported over the last few years by FrameMaker users that were traced back to use of "save as PDF" under FrameMaker:
    (1) No PDF file is produced at all, possibly with a log file showing not-readily apparent PostScript errors during distillation.
    (2) The PDF file "loses" color in images. All or some images (raster, bitmap images, NOT vector artwork) appear in the PDF file in grayscale.
    (3) The resultant PDF file is on the wrong paper size, i.e., the document's logical page size does not match the output page size as seen in Acrobat or Acrobat Reader.
    (4) Some or all text in the resultant PDF file is blotchy looking or overly bold.
    (5) Some or all text in the resultant PDF file cannot be searched or indexed.
    (6) Some or all text in the resultant PDF file appears in Courier or in some other substitution font.
    (7) Interword or intercharacter spacing is a bit irregular in the resultant PDF file.
    (8) Content is missing in the margin areas of the page, i.e. you cannot do full-page bleeds.
    (9) Some or all page content is missing (other than margin areas).
    (10) Relatively inefficient PDF is generated.
    If this list by itself isn't enough for you, please note that some of these symptoms are very subtle and may escape attention when the PDF is first viewed or printed. Oftimes, it is when one attempts to manipulate the PDF file in Acrobat or repurpose its content or even view or print on a system other than the one on which the PDF file was created, that some of these symptoms make themselves obnoxiously visible (or invisible in some cases I won't make any bad jokes here about graphic examples!).
    It is important to understand that FrameMaker does NOT have its own native ability to create PDF. Any and all PDF created from FrameMaker documents is actually done by creating PostScript via the PostScript driver and having the Acrobat Distiller create PDF from that PostScript. The only exception to this is creation of PDF via the Acrobat PDFWriter driver, which is likewise not recommended (see below).
    In order for "save as PDF" to work correctly, FrameMaker must do the equivalent of calling Printer Setup and selecting the "Acrobat Distiller" printer instance under Windows or the "Create Adobe PDF" desktop printer under MacOS followed by setting the driver's options correctly for paper size, page range, etc., followed by sending the proper commands to the driver to create PostScript.
    Contrary to popular belief, PostScript as generated by the Windows and MacOS PostScript drivers is VERY device-dependent. The information in the PPD file associated with a printer driver instance provides critical parameters for generation of PostScript including:
    Whether the printer supports color (Acrobat Distiller does)
    What PostScript language level is supported (Acrobat Distiller 4.x and Acrobat Distiller 5.x are both PostScript language level 3)
    Whether native TrueType support is available (Acrobat supports native TrueType as Type 42 fonts)
    Available binary communications (Acrobat Distiller supports pure binary and ASCII, but NOT TCP, TBCP, or PJL)
    Resident fonts (Acrobat Distiller doesn't really have resident fonts)
    Available paper sizes and custom paper size availability (Acrobat Distiller supports a wide range of predefined sizes and continually variable "custom" sizes up to 200" by 200")
    Margins / printable areas (for PDF and the Acrobat Distiller, there are no margins in which imaging is not permitted)
    Device resolution (Acrobat Distiller can be set to any value from 72 to 4000 dpi; as a convenience, the Acrobat Distiller PPD provides a series of values for use by the driver. Since there is no inherent "resolution" of a PDF file, this parameter is used only for purposes of allowing PostScript programs that query for such a value to be satisfied and for the driver to be able to communicate this value to the operating system and/or application as required.)
    Paper handling (totally irrelevant to Acrobat Distiller if input or output tray selection via "setpagedevice" is found in the PostScript stream, it is ignored by Acrobat Distiller)
    Thus, if the wrong printer driver instance is selected (i.e., it isn't associated with the Acrobat Distiller PPD file) or that driver instance is improperly configured, improper PostScript will result and one or more of the symptoms described above can occur. As currently implemented, FrameMaker depending upon version will not necessarily choose the correct printer driver instance and/or correctly parameterize the print job via driver setup options. In fact, FrameMaker 5,5,6 might even try to generate PDF via calling a PCL driver, FAX driver, or even a non-PostScript inkjet printer!
    DON'T USE PDFWRITER
    The Acrobat PDFWriter is a relic of older versions of Acrobat. In fact, it is no longer installed by default in the "easy install" or the "typical install" of Acrobat 5. It hasn't really be updated since Acrobat 3 and only supports PDF 1.2. It is a GDI (Windows) / QuickDraw (MacOS) driver that directly generates PDF without any intermediary PostScript. Since it is not a PostScript printer driver, applications cannot pass through EPS graphics and/or PDFMark information (used for a wide variety of purposes by FrameMaker). For EPS graphics, most applications will send the low resolution TIFF (or PICT) EPS header in lieu of the PostScript text, if they send anything at all, to the driver. Forget about links, structure, or any other PDF "goodies." Expect that PDFWriter will fully "bite the dust" in the next major version of Acrobat.
    SO HOW DO I GENERATE PDF FILES FROM FRAMEMAKER 6 & EARLIER?
    The ONLY method that is really reliable for producing PDF files with FrameMaker 6 and earlier requires the generation of PostScript via a properly set printer driver instance associated with the Acrobat Distiller PPD and distillation of the resultant PostScript by Acrobat Distiller.
    Case 1: FrameMaker and the Full Acrobat 4.05 or Acrobat 5.0x Products
    PDF file from a "chapter" -- print directly to the Acrobat Distiller printer instance (Windows) or the Create Adobe PDF desktop printer (MacOS) already installed by Acrobat. If you check the "Acrobat data" option, then make sure to UNcheck the "print to file" option that gets set at the same time. As a result, the driver will automatically send the generated PostScript to the Distiller for you and delete the intermediate PostScript when done.
    PDF file from a "book" -- print directly to the Acrobat Distiller printer instance with the "print to file" option checked (Windows) or the Virtual Printer desktop printer (MacOS) associated with the Distiller PPD (see details below under Case 2/MacOS). You will need to manually process the resultant PostScript file through the Distiller (or use a "watched folder" arrangement).
    In both the above sub-cases, the default driver options generally will be OK, but check on paper size and communication protocol (Use pure binary, not ASCII, for optimal performance AND no CTRL-D characters under Windows. Make sure to set Level 3 only and Binary under MacOS. Font inclusion "All" for Acrobat 4.05 and "None" for Acrobat 5 under MacOS.). With Acrobat 4.05, make sure you preset the Distiller to use the joboptions you want. With Acrobat 5, you can set this on a job-by-job basis via the driver printer setup interface (or print dialog on MacOS).
    Case 2: FrameMaker 6 and the Bundled Acrobat 4.05 Distiller
    Windows -- Create a new printer driver instance using the latest version of the Adobe Universal PostScript Driver Installer, downloadable from Adobe's web site AND the Acrobat Distiller PPD file (located in the XTRAS subdirectory of the Distiller directory). This driver instance should be set to print to the local port named "FILE:". Name this driver instance as "Acrobat Distiller". The default driver options generally will be OK, but check on paper size and communication protocol (use pure binary, not ASCII, for optimal performance AND no CTRL-D characters). Make sure you preset the Distiller to use the joboptions you want. Print directly to this Acrobat Distiller printer instance. Make sure that the "print to file" option is checked. You will need to manually process the resultant PostScript file through the Distiller (or use a "watched folder" arrangement).
    MacOS -- Install the latest version of AdobePS 8.7.x, downloadable from Adobe's web site. In FrameMaker, go to Page Setup and select the "Virtual Printer" and go to the "Virtual Printer" window pane. Select the Acrobat Distiller PPD file (located in the XTRAS subfolder of the Distiller folder). Print directly to the "Virtual Printer" (Make sure to set Level 3 only, Binary, and font inclusion "All".). Make sure you preset the Distiller to use the joboptions you want. You will need to manually process the resultant PostScript file through the Distiller (or use a "watched folder" arrangement).
    Case 3: Acrobat 3
    Acrobat 3 is not officially supported for the latest OS versions and I personally would no longer recommend its use for generation of PDF files given that Acrobat 5.0.5 is the current version of Acrobat.
    - Dov

    You're asking a lot of ancient Acrobat to work with an Office that never existed when it was made. "Just updated my office suite" is a massive change, and Window 8 didn't exist at that time either...

  • Create PDF from two files in sub folder automation

    I am looking to create an automation tool that does the following to help save time (the current process takes about 20 min):
    First, take two specific files (The first page is a single worksheet excel file that is fitted to one page.  The second is a word document.)  in a user defined location and combine them into one document.  Currently this is done manually through Acrobat 8 via the Create PDF function for each file then the Combine PDF function.
    Second, I would like to have the Bookmark and Attachment pane set for initial view, but there is not a preset option for this.  Is this even possible?  Currently, I set the initial view to bookmarks and page, and include a not one the first page on how to open the attachment pane.
    Third, all external links to documents, via hyperlinks, are added as attachements and the links are changed to point to the attachment so that all information is contained within one document.
    Lastly, this newly created document is posted to an intranet location.
    Any help in part or whole would be great.
    NOTE:  All code must be included as an add-in to Acrobat as this is within a corporate environment and server side scripts are not allowed.

    I have created the following script as a start to trying to figure this out, but I am getting unexpected results.  When I run this script, I get the two files, Temp and Combined.  The Temp file is, as expected, a pdf version of the last file in the array, but the Combined file is where the problem is.  With the Combined file, I have one blank page, then my single worksheet from the workbook, and then only the first page of the word document which is 26 pages.  Any idea what I am doing wrong?
    In addition, is there a way to prompt the user to select the filepath through a Windows Explorer interface?
    Current code:
    var filepath = "/c/filepath/"
    // Create a new PDF document for Profile:
    doc = app.newDoc();
    doc.saveAs({ cPath: filepath + "Temp.pdf" });
    doc.closeDoc(true);
    doc = app.openDoc({cPath: filepath + "Temp.pdf" })
    // List of files of different extensions
    aFiles = new Array( "Doc1.xls", "Doc1.doc");
    for ( var i=0; i < aFiles.length; i++) {
    // Open and convert the document
    newDoc = app.openDoc({
    oDoc: doc,
    cPath: aFiles[i],
    bUseConv: true
    // Save the new PDF file to a temp folder
    newDoc.saveAs({ cPath: filepath + "Combined.pdf" });
    // Close it without notice
    newDoc.closeDoc(true);
    // Now insert that PDF file just saved to the end of the first document
    doc.insertPages ({
    nPage: doc.numPages-1,
    cPath: filepath + "Combined.pdf",
    nStart: 0

  • Pick activity is not working properly while creating two or more file adapt

    Hi,
    pick activity is not working properly while creating two or more file adapter for bpel process.
    bpel process compiled and deployed succesfully but while observing the wsdl file of deployed process you can find only one file adapter. so it polls only from that location.
    can anybody help on over this? or it's limitation of jdev to use only one file adapter at time while using Pick.
    Thanks
    sagar

    Does anybody tried this?
    Thanks
    sagar

  • Create two different DME files in FBWE

    Hi all,
    I'd like to create two different DME files in FBWE transaction, depending on payment metod (or depending on account used for bills of exchange receivable).
    Could anyone tell me where and how can I solve this problem?
    Many thanks
    Regards
    Francesca

    Dear Fransca,
    when You run FBWE and You get the list, then You have several tab:
    Cust   Bill/ex data   Presenting bank  Totals   Posting params
    Please go to Posting params -->
    there is a frame named --> Create DME file
    here You can choose the DME type
    Usually for Italy we use IT01 that will produce the file on the base of CBI officila format.
    By the report RFWEDX00 You can download the file in the correct way.
    I hope this can.
    Mauri

  • Why do I get error 'Could not create temporary file. No space left on device" when I use the Engine Installati​on Wizard in TestStand?

    The process gets to the NIVISA\SETUP.INI step, then I get this error.
    I've tried with installing the MDAC and not, and it happens both times.
    The drive I'm trying to create the file to has 7.4GB open on it, so I'm not sure why this is happening.
    Thank you,
    Dave Neumann

    Dave,
    This is documented in the KnowledBase 2D6A63VW titled: "Error: Could Not Create Temporary File, No Space Left on Device".
    As RByrd suggested, you might need to free up some memory space in your System Temp directory, OR you may change the location of your System Temp directory to one with more space (such as the directory where you want the TestStand Engine files to be saved). The Knowledbase shows how to do this step by step. This is its URL:
    http://digital.ni.com/public.nsf/3efedde4322fef198​62567740067f3cc/46f99e55650d8d5b86256ac00059018e?O​penDocument
    Regards,
    Carlos Leon

Maybe you are looking for

  • ICloud email needs a lot of work

    Does anyone know if/where Apple has a place to report bugs with iCloud.com apps? The email app is pretty unstable.  Most of the time, searching doesn't work at all.  It just spins for a while and then tells me that it can't complete it right now.  Mo

  • HT201303 Change country and payment settings

    need to change account settings to show new country and payment details. In my account settings doesn't want me to select different country ie other countries don't come up for selection, does anyone know why?

  • Videos not playing in landscape mode after upgrading my Z10 software to latest version

    Hello, Videos in my Z10 iss not playing in the Landscape mode after upgrading my Z10 smart phone software with the latest version.  I think it is not sensing when i turn my phone. Is it a bug in the upgraded software or do i need to do any changes in

  • HT4796 Windows Migration Assistant problem, files wont transfer to the macbook

    When i start the copying it says copying movies but after that nothing happends, it stood like that for 12 hours. What should i do

  • Process Chain Bug

    Hello experts, Perhaps this subject was already treated, I canu2019 find any answer in SDN, for this reason I am posting my question here. I have an issue with a process chain, when I launch it, I see the job in transaction SM37, it is reported like