How to output java logging only to a log file except stderr?

I create a file logging and noticed that java logging output a log file and stderr simultanously. How to output the logging message only to the log file?
Thanks.

HarishDv wrote:
I dont have indesign  installed on my system. I only have the binary , which needs modification and i have to save back to the DB as indd.
Can't be done, for a realistic assessment of "can". InDesigns documents cannot reliably be created or modified without InDesign itself. (*)
If you need to do this on native InDesign documents, you have to buy and install it.
* "Not true, there is always IDML". But that's not a 'binary'; and you cannot (**) "convert" a binary INDD to IDML and back again without InDesign.
** Again, for a remotely realistic value of "can".

Similar Messages

  • How to output a query results into a text file

    How to output a query results into a text file instead of outputing it to the screen..
    is there a way for us to write a SQL query which specifies to output the query results to a text file.
    Pls let me know how to do it
    Thanking u in advance
    regards
    Muraly

    Muraly,
    If you are using SQL*Plus 8.1.6 or later, you can also spool output to a file in HTML format, eg
    SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON
    SPOOL c:\temp\report.html
    SELECT DEPARTMENT_NAME, CITY
    FROM EMP_DETAILS_VIEW
    WHERE SALARY>12000;
    SPOOL OFF
    SET MARKUP HTML ENTMAP OFF
    In iSQL*Plus 9.0.1 (the browser-based interface to SQL*Plus) onwards, you can also send the HTML output to a new web browser window, or an html file -- much easier than the command line method.
    Alison

  • Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?

    Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?
    I'm developing an application where a file is need to be saved as pdf. But, if there is already a pdf file with same name in the specified directory, I wish to overwrite it. And in the overwrite case, read-only files should not be overwritten. If the duplicate(old) file is opened in windows (Win7) explorer preview, it is write protected. So, it should not be overwritten. I tried to get the '
    FILE_ATTRIBUTE_READONLY' using MS API 'GetFileAttributes', but it didn't succeed. How Adobe marks the file as read-only for preview? Do I need to check some other attribute of the file?
    Thanks!

    Divya - I have done it in the past following these documents. Please read it and try it it will work.
    Please read it in the following order since both are a continuation documents for the same purpose (it also contains how to change colors of row dynamically but I didnt do that part I just did the read_only part as your requirement) 
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b?quicklink=index&overridelayout=true
    thanks!
    Jason PV

  • How to install java stack ,only  abap ,basis patch level 9 installed

    how to install java stack ,already installed abap ,basis patch level 9,please any one guide me and please give me installation steps for java stack.

    Hi,
    From sapinst, install Java Add-on.
    check installation guide.
    Thanks
    Sunny

  • JNI - how to use java access function in TypeLibrary( .tlb file) HELP ME PL

    Hey All
    I got one project which can be done by calling up functions in xxxx.tlb
    (window type library) file, that is no problem.
    How to use java to access those functions???
    I know there are some classes which can be used to access function in
    DLL file e.g. JAWIN.
    Is the .tlb file related to one DLL file??? if so, how to locate the
    DLL file through .tlb file???
    Thanks a lot.
    Steve

    Use JNI to create a link between Java class and a DLL, then you can load that DLL (or TLB) from that class.
    Read the JNI Tutorials.

  • How to STOP JAVA ENGINE ONLY

    Hi,
    I installed NW2004S with both JAVA+ABAP stack and both are up and running i have some memory issues here.So i want to run only ABAP Stack now and how can i start the ABAP stack only.
    Can any one suggest me how to do this..and explain the procedure.
    And also can any one suggest me hwo to change the memory parameters for increasing the performance.I have 2 GB ram in my system.Can u tell whcih papameter files i have to edit..
    Regards,
    surya

    Hi surya,
    the parameter makes your java system not to start automatically when ever you start the abap engine so you are having the following message in MMC
    <b>message server connected status ok,J2EE status info unavailable</b>
    java takes much of your CPU resources so if you stop JAVA engine your system sure to behave good rest keep the default as itis dont try to change those parameters unless some critical issue comes
    Samrat

  • How to add watermark (print only) for  a indd file in java ?

    Hi EveryOne ,
    I have a few indd files in the database .
    I want to write  a java class , that puts a water mark (print only) on a few indd files based on some parameters.
    I  have the binary , which after modification will have to be saved back to the DB as indd.
    Can anyone suggest a way how this can be done.
    Thanks in advance.
    Harish -

    HarishDv wrote:
    I dont have indesign  installed on my system. I only have the binary , which needs modification and i have to save back to the DB as indd.
    Can't be done, for a realistic assessment of "can". InDesigns documents cannot reliably be created or modified without InDesign itself. (*)
    If you need to do this on native InDesign documents, you have to buy and install it.
    * "Not true, there is always IDML". But that's not a 'binary'; and you cannot (**) "convert" a binary INDD to IDML and back again without InDesign.
    ** Again, for a remotely realistic value of "can".

  • How come the numeric keypad only works in log-in and not in normal progs?

    I've searched this forum for all things numeric keypad related and come up blank on this problem so I'm putting this question out there for anyone else who knows the answer.
    The numeric keypad on my iMacs only work it seems in typing in numbers in the password box at log-in, but in any other program, including Safari, I get nothing when I push those keys. Why is this and how can it be easily corrected with or preferably without the use of strange hacks if this is not some kind of missed setting? This one really bothers me. Why have a keypad at all if it isn't useful the majority of the time? I find the same problem on the Aluminum and plastic, wired, and wireless versions of the keyboard. If Apple didn't intend us to use the keypad in substitute for the number keys whenever we feel like it, wouldn't it make more sense to downsize the keyboards and sell them without one? The keypad only seems to work when set for use as a mouse-substitute, and nothing else.

    It's strange that it doesn't work on my desktops, but it works fine on my MacBook (but of course I have to use the f(x) key to make it work on that because it isn't really a separate keypad).
    Does anyone have any idea what settings under Tiger could cause the keypad not to function? It seems the problem is Tiger-related as the Leopard desktops don't exhibit the same problem.. Which keyboard is connected and by what method does not seem to make a difference.

  • HOW TO VIEW PAGE OF ONLIE BOOK IN PDF FILE

    i HAVE A PDF FILE THAT i AM TRYING TO OPEN AND READ IT IS A ONLINE MANUAL THAT ONLY SHOWS 8 PAGES OF A BOOK THAT IS ABOUT 400 PAGES CAN i VIEW THE RESET OF THESE PAGE BY CONVERTING THE FILE OR NOT?

    I just figured out how to view the body of the SOAP error. (I just needed to cast the Exception as a SOAPFaultException to view the details).
    This is the error I consistently get: Internal Error: Session is not available. Aborting. (SBL-ODU-01006)
    So now my question - has anybody else run into this?
    I log in - get my session id. Try to call a method and get (2 or 3 times in a row) this 'Session not available' error and then it works. I try and make another method call and get 2 or 3 more 'Session not available' errors.
    I thought it might be a timing issue (where I am making too many requests/second) so I added a little 'sleep' time between method calls with no difference in response.
    Ideas?

  • How to call Java API classes from Javafx Main.fx?

    Hi
    Can anybody let me know how to include java.util.StringTokenizer in Main.fx file of Javafx?
    I need to split a concatenated String in Javafx. Is there any example available with anybody on this?
    When I use the split() of Javafx, I get error while assigning the value returned by split() to both String and String[] variables:
    1. var name = "test|string";
    2. var names: String[];
    3. var splitName: String = "";
    4. names[0] = name.split("|");
    5. splitName = names.split("|");
    6. var storeName: String[];
    Later I need to put the splitName into another String array to have a collection of all the concatenated string in one array.
    insert splitName into storeName;
    But I get error in line 4 and 5. The split() in javafx returns a String []. Is there anything that I missing here.
    Any reply to this post will be highly appreciated. I need this quite urgently.
    Thanks & Regards
    masrrev

    Hi Phil
    Thanks for the immediate response. I tried the code but getting the following exception, which I was getting earlier too.
    Inside on Mouse Clicked...
    Uncaught exception: java.lang.Error: 137_*
    - xing.Xing$2.lambda(), bci=43
    - xing.Xing$2.invoke(), bci=2
    - xing.Xing$2.invoke(), bci=5
    - javafx.scene.Node.mouseClicked$impl(), bci=68
    - javafx.scene.Node.mouseClicked(), bci=3
    - com.sun.fxme.runtime.FXNodeDelegate$4.run(), bci=6
    - com.sun.fxme.runtime.RunnableQueue$Manager.run(), bci=86
    - com.sun.fxme.runtime.RunnableQueue.run(), bci=38
    And the code in onMouseClicked Event is reproduced below:
    onMouseClicked: function(e : MouseEvent) : Void {
    println("Inside on Mouse Clicked...");
    def sample = "Sherlyn|masrrev|Other";
    var names = sample.split("\\|");
    println("{names.toString()}");
    // splitString();
    sceneNew = Scene {
    content: [nextScreen]
    Regards
    masrrev

  • How to enable ping service on java-stack only system

    I have installed SAP NetWeaver 7.0 - Java Trial on local host.
    How can you activate the ping service there?
    It should work under "http://localhost:50000/sap/bc/ping"
    (I know how to activate it with transaction SICF in an abap system, but I have java-stack only here, so I can't call transactions. I can only use the Visual Admin, right?, but there I could not detect a ping service so far)
    More detailed:
    I created system "SAP_WebDynpro_XSS". (this is necessary for connecting to ECC abap backend for ESS Packages) and set following parameter:
    template:"SAP system using connection string"
         category: Web Application Server
              Web AS host name: chrisSAP:50000
              Web AS path: /webdynpro/dispatcher/
              Web AS protocol: http
    But when I test the "SAP Web AS Connection" for this system, I got following error:
    7. The Web AS ping service http://chrisSAP:50000/sap/bc/ping was not pinged successfully. If the ping service is not activated on the Web AS, you can try to call the ping service manually.
    8. An HTTP/S connection to http://chrisSAP:50000/webdynpro/dispatcher/ was not
    obtained successfully; this might be due to a closed port on the Firewall.
    I guess step 8 did not pass because step 7 failed, and not because of a closed port or firewall (I made sure everything is open.)
    The strange thing is that the connection test fails, but the connection seems to work fine!
    I mean I can see the front ESS page in the portal when logging in with an ESS-user, and there are no errors in the log. If I change the SAP_WebDynpro_XSS parameters to some other made-up values, then the front ESS page does not come up and some errors appear with "SAP_WebDynpro_XSS" inside.
    That proofs that the connection is working despite the failed connection test, right?. But what can I do that the connection test passes? It seems that somehow SAP has hardcoded the path "/sap/bc/ping" which usually exists on an abap system. But I have java-stack only, so how can I tell that the function that runs the test?
    A system connection test fails, but the connection is working fine!
    If someone could explain that to me...

    Dear Srini Nookala,
    thank you for your answer. Unfortunately I don't understand the relation of my question to your answer.
    >> check with OSS note 1019335 SAP NetWeaver AS Java 6.40 SP21
    I have Version 7.0 SP14. I read the OSS note, but there are around 100 changes listed. I read them all, but couldn't figure out one that has to do with ping and system test. So which sentence inside the note are you referring to?
    >> The problem is due to JCo parameters configuration not properly, Ask Basis team, they will do it.
    I am basis team. I configured the JCo properly as described in manual and tested them afterwards. They run successful. Also all the links that you gave refer to JCO connections about how to set them up and test them. But what have JCO connections to do with System-connection tests? As far as I know JCO-connections are not used for system connectivity tests. You can set them up independent. I understand that JCO-connections are used for getting data from backend servers. But the system "SAP_WebDynpro_XSS" is defined for determing the webdynpros on localhost (frontend, not backend).
    So please can you explain me what JCO-connections which refer to remote hosts have to do with a ping service on local host that cannot be reached? And which part would be not configured "properly"? Timeouts? user?
    To define my question more properly:
    Is it possible to make the connection test work on a java-stack only host for a system that refers to itself (localhost)? Or is it a known bug?
    Some sub-questions
    Am I using the right system template (I am using "SAP system using dedicated application server")
    I have no abap on local host (chrisSAP). Only java stack. Usually path ..sap/bc/ping refers to an abap system, right? So in my opinion I have 3 possibilities:
    - install abap-stack on local host (portal) and activate ping service.
    - somehow install a ping service that runs under the given URL in Visual Admin (how?)
    - somehow tell the connection test to skip pinging and continue test. (How?)
    Any additional advice would be highly appreciated.

  • How do I retrieve call history from my iPhone 4S? It only seems to log for about a month and I need an earlier date?

    How do I retrieve call history from my iPhone 4S? It only seems to log for about a month and I need an earlier date?

    If you have backup of your files, you can get your call history back as long as you sync iPhone with iTunes frequently.
    OK, the first thing you are required to do is close the function of "prevent iPhone from syncing automatically." in iTunes, avoiding to sync iPhone again.
    Now, connect your iPhone to pc and open iTunes.
    iTunes> preferences> devices
    All the backup data in iTunes will be displayed.
    Then,click the File menu and select Devices > Restore from Back up
    your iPhone will restart and you can find them back.
    This method only can find back the latest history, to get back the old, you should turn to a third party program for help.

  • How to output money number by text in java?

    How to output money number by text in java?
    Example: input: 1234 $
    output: one thousand two hundred thirty four dollar.

    try this...
    import java.text.DecimalFormat;
    public class EnglishNumberToWords {
      private static final String[] tensNames = {
        " ten",
        " twenty",
        " thirty",
        " forty",
        " fifty",
        " sixty",
        " seventy",
        " eighty",
        " ninety"
      private static final String[] numNames = {
        " one",
        " two",
        " three",
        " four",
        " five",
        " six",
        " seven",
        " eight",
        " nine",
        " ten",
        " eleven",
        " twelve",
        " thirteen",
        " fourteen",
        " fifteen",
        " sixteen",
        " seventeen",
        " eighteen",
        " nineteen"
      private static String convertLessThanOneThousand(int number) {
        String soFar;
        if (number % 100 < 20){
          soFar = numNames[number % 100];
          number /= 100;
        else {
          soFar = numNames[number % 10];
          number /= 10;
          soFar = tensNames[number % 10] + soFar;
          number /= 10;
        if (number == 0) return soFar;
        return numNames[number] + " hundred" + soFar;
      public static String convert(long number) {
        // 0 to 999 999 999 999
        if (number == 0) { return "zero"; }
        String snumber = Long.toString(number);
        // pad with "0"
        String mask = "000000000000";
        DecimalFormat df = new DecimalFormat(mask);
        snumber = df.format(number);
        // XXXnnnnnnnnn
        int billions = Integer.parseInt(snumber.substring(0,3));
        // nnnXXXnnnnnn
        int millions  = Integer.parseInt(snumber.substring(3,6));
        // nnnnnnXXXnnn
        int hundredThousands = Integer.parseInt(snumber.substring(6,9));
        // nnnnnnnnnXXX
        int thousands = Integer.parseInt(snumber.substring(9,12));   
        String tradBillions;
        switch (billions) {
        case 0:
          tradBillions = "";
          break;
        case 1 :
          tradBillions = convertLessThanOneThousand(billions)
          + " billion ";
          break;
        default :
          tradBillions = convertLessThanOneThousand(billions)
          + " billion ";
        String result =  tradBillions;
        String tradMillions;
        switch (millions) {
        case 0:
          tradMillions = "";
          break;
        case 1 :
          tradMillions = convertLessThanOneThousand(millions)
          + " million ";
          break;
        default :
          tradMillions = convertLessThanOneThousand(millions)
          + " million ";
        result =  result + tradMillions;
        String tradHundredThousands;
        switch (hundredThousands) {
        case 0:
          tradHundredThousands = "";
          break;
        case 1 :
          tradHundredThousands = "one thousand ";
          break;
        default :
          tradHundredThousands = convertLessThanOneThousand(hundredThousands)
          + " thousand ";
        result =  result + tradHundredThousands;
        String tradThousand;
        tradThousand = convertLessThanOneThousand(thousands);
        result =  result + tradThousand;
        // remove extra spaces!
        return result.replaceAll("^\\s+", "").replaceAll("\\b\\s{2,}\\b", " ");
       * testing
       * @param args
      public static void main(String[] args) {
        System.out.println("*** " + EnglishNumberToWords.convert(0));
        System.out.println("*** " + EnglishNumberToWords.convert(1));
        System.out.println("*** " + EnglishNumberToWords.convert(16));
        System.out.println("*** " + EnglishNumberToWords.convert(100));
        System.out.println("*** " + EnglishNumberToWords.convert(118));
        System.out.println("*** " + EnglishNumberToWords.convert(200));
        System.out.println("*** " + EnglishNumberToWords.convert(219));
        System.out.println("*** " + EnglishNumberToWords.convert(800));
        System.out.println("*** " + EnglishNumberToWords.convert(801));
        System.out.println("*** " + EnglishNumberToWords.convert(1316));
        System.out.println("*** " + EnglishNumberToWords.convert(1000000));
        System.out.println("*** " + EnglishNumberToWords.convert(2000000));
        System.out.println("*** " + EnglishNumberToWords.convert(3000200));
        System.out.println("*** " + EnglishNumberToWords.convert(700000));
        System.out.println("*** " + EnglishNumberToWords.convert(9000000));
        System.out.println("*** " + EnglishNumberToWords.convert(9001000));
        System.out.println("*** " + EnglishNumberToWords.convert(123456789));
        System.out.println("*** " + EnglishNumberToWords.convert(2147483647));
        System.out.println("*** " + EnglishNumberToWords.convert(3000000010L));
         *** zero
         *** one
         *** sixteen
         *** one hundred
         *** one hundred eighteen
         *** two hundred
         *** two hundred nineteen
         *** eight hundred
         *** eight hundred one
         *** one thousand three hundred sixteen
         *** one million
         *** two millions
         *** three millions two hundred
         *** seven hundred thousand
         *** nine millions
         *** nine millions one thousand
         *** one hundred twenty three millions four hundred
         **      fifty six thousand seven hundred eighty nine
         *** two billion one hundred forty seven millions
         **      four hundred eighty three thousand six hundred forty seven
         *** three billion ten
    }

  • How to make the Java Logging to create the log file

    Hey,
    I need some help. Below is my code that create a log file for my application however, there is no log file being created when i perform a MarsLogger.log.info("test") in my code for my application.
    * LogManager.java
    * Created on April 10, 2006, 11:42 AM
    package comp1.mars.beans.ejb.util;
    import java.util.logging.*;
    import java.io.*;
    public class LogManager {
    /** Creates a new instance of LogManager */
    public LogManager() {
    protected static Logger getLogManager()
    //String dir = "C:/Sun03/studio5u1_se/appserver7/domains/domain1/server1/logs/an/my.log";
    String dir = "my.log";
    Logger logger = Logger.getLogger("compl1.mars.bean.ejb");
    try {
    // Create an appending file handler
    boolean append = true;
    FileHandler handler = new FileHandler(dir, append);
    //FileHandler(String pattern, int limit, int count, boolean append)
    // Add to the desired logger
    logger = Logger.getLogger("compl1.mars.bean.ejb");
    logger.addHandler(handler);
         logger.setLevel (Level.ALL);
    } catch (IOException e)
    e.printStackTrace();
    } catch(SecurityException se)
    se.printStackTrace();
    return logger;
    }//end of method
    }//end of class
    * MarsLog.java
    * Created on April 10, 2006, 3:24 PM
    package comp1.mars.beans.ejb.util;
    import java.util.logging.*;
    * @author Administrator
    public class MarsLogger extends LogManager {
    /** Creates a new instance of MarsLog */
    public MarsLogger() {
    public static Logger log= getLogManager();
    }

    What is the level of thte handler?
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/logging/Handler.html#setLevel(java.util.logging.Level)

  • SAP NetWeaver 7.01 Java installation on MSCS and Log shipping for DR

    Hi Experts,
    Can anyone please explain if below is possible :
    - We have installed Netweaver 7.01 Java application server on Microsoft clustering which is working perfectly ok.
    -Now we are looking at building a DR solution for the above installation using SQL Server 2008 Log-shipping. The DR site has the same MSCS configuration as the primary site.
    -If we log-ship the production database and create a secondary database in "standby" or "norecovery" mode, how do we install a Passive SAP Central instance in case we want to failover from the primary to secondar ?
    - We know that we have the primary database log-shipped to the secondary site and in the event of failure we can switch the roles and make secondary as primary and then perform the system copy steps on the MSCS. the drawback here is that it will take a long time to bring the system online if we perform the system copy. Our RTO is one hour only so this is not acceptable.
    Question : Is there anyway we can install the Central Services and Applicaiton servers beforehand on the secondary site on the secondary log-shipped database so that in the event of failure all we do is bring the secondary database primary and then start the SAP on the secondary site ?
    If yes then can anyone point me the any SAP note or documentation that has the details of how to do this.
    I have already looked at 1101017, 965908 but its not clear how we can perform the installation on the JAVA stack only.
    We want to implement similar to what is shows in the below diagram :
    http://help.sap.com/saphelp_apo/helpdata/en/fc/33c028d58511d386ee00a0c930df15/content.htm
    Appreciate if someone can assist in resolving the above query.
    Thank you.
    RA

    Thanks Markus for your reply.
    I did looked at the HA web page from SAP and configured MSCS for HA but there's no information regarding DR setup. All it says is setup a log shiping which we already know but there's no procedure to setup SAP on the DR site(Passive SAP central instance)
    My original question still stands :
    - Is system copy the only option that we need to perform at the DR site in the event of failure ( Assumption is that we ieve make the secondary database as primary and also sync file system for JAVA using SAN replication technologies)
    - We have to achieve an RTO of 1 hour which is not possible in this case as performing system copy using MSCS HA option will take few hours to setup and test.
    -The link "http://help.sap.com/saphelp_apo/helpdata/en/fc/33c028d58511d386ee00a0c930df15/content.htm" shows that we can have SAP PAssive central instance. Whats the procedure of installing this Passive instance on the secondary site so in the event of failure all we do is make the secondary database primary and bring the SAP system online(installed already - no system copy performed) and also file system is already is sync.
    Thank you.
    RA

Maybe you are looking for