Redirect stdout to null

Hi,
can you redirect stderr and stdout of servants to /dev/null?
I'd like to avoid the overhead of writing to the stdout files.
Thanks,
Juergen

Hi,
probably you can try the two options in each server's command line option:
http://edocs.bea.com/tuxedo/tux100/rf5/rf5.html#wp1003290
[-e stderr_file]
[-o stdout_file]

Similar Messages

  • Redirecting stdOut to a JTextArea - Help!

    I want to redirect stdOut via System.setOut to a JTextArea - I'm most of the way there but I keep getting some strange errors. I'd really appreciate some help!
    I have a class called MainDebug which in its constructor calls
    System.setOut(new DebugStream((OutputStream)System.out));
    it also has a method
    public void appendMessage(String message)
    txtAreaDebug.append(message);
    where txtAreaDebug is the JTextArea to which I want to redirect stdOut.
    In MainDebug is another class called DebugStream (which is referred to in MainDebug's constructor). The entirety of that class is as follows:
    public class DebugStream extends java.io.PrintStream
    public void println(String x)
    MainDebug.this.appendMessage(x);
    public void write(int x)
    MainDebug.this.appendMessage(new Integer(x).toString());
    When I build I get these errors:
    pcgen\gui\MainDebug.java:63: cannot resolve symbol
    symbol : constructor DebugStream (java.io.OutputStream)
    location: class pcgen.gui.MainDebug.DebugStream
    System.setOut(new DebugStream((OutputStream)System.out));
    ^
    pcgen\gui\MainDebug.java:166: cannot resolve symbol
    symbol : constructor PrintStream ()
    location: class java.io.PrintStream
    public class DebugStream extends java.io.PrintStream
    For the first error, shouldn't DebugStream inherit the proper constructor from PrintStream? And I have no clue about the second error - I believe I've extended the class correctly.
    Pearls of wisdom appreciated! :)

    Constructors aren't inherited from superclasses, so you'll need to supply your own constructor for DebugStream.
    FWIW, I've done this before and here's my version of DebugStream:
       private class MyPrintStream extends PrintStream
          public MyPrintStream(OutputStream pOut)
             super(pOut);
          public void println(String pString) {
             if (mResultsPanel != null)
                mResultsPanel.append(pString);
             super.println(pString);
          public void println(Object pObject)
             if (mResultsPanel != null)
                mResultsPanel.append(pObject.toString());
             super.println(pObject);
       }where mResultsPanel has a reference to the JTextArea.
    Good luck,
    Tom

  • Redirecting stdout in 64 bit mode

    Hi,
    I have a problem. I wanted to redirect stdout to a text file and back. In 32 bit mode everything works fine using file member to struct FILE, but in 64 bit mode only data member FILE has long _pad[16]. Can anyone tell me how to use this to redirect stdout to file and visevesra. Thanks in advance.
    Amandeep

    By default in 10.6.8 it should be in 64 bit mode but to check and change it in Finder highlight Aperture, the application, and go command I to open the info window and look about 1/4 of the way down
    (Note this is from Lion so it is slightly different then what you will see)

  • Button URL Redirect - Issue passing %null% from LOV

    I have issue when attempting to pass %null% from a LOV to a subsequent target page. The URL Redirect works fine when a value in selected in the LOV but passes gibberish "?ll" when no value is selected from the LOV. Can anyone shed some light on what's is going on?
    Redirect looks like this:
    f?p=112:411:508326687872582::NO:RP,411:P411_AGENCY,P411_CATEGORY,P411_BUDGET_YEAR,P411_OIT_OFFICE,P411_DESCRIPTION:002,%null%,2012,1665,webJeff
    Edited by: jwellsnh on Jun 2, 2010 4:42 PM

    svk1965,
    Thank you for your response, I read many other threads and you are definitely on the right track. Got impatient though and took my project on a different track which ended being a better solution for me after all.
    Jeff

  • Redirecting stdout of third party API?

    Good Morning (or afternoon),
    I have an interesting problem with an application that I am writing.
    I am using my own classes, as well as a third party package that somebody developed, in this application.
    I have developed a GUI for ease of use and in this GUI I have a textarea component that shows all stdout messages.
    To achieve this I simply used System.setOut(PrintStream out) to redirect the output to my textarea. Now, all stdout messages display on my textarea. So far so good.
    The problem came when I used the third party package. The third party stdout still goes to the default (terminal).
    I have to use the third party package through it's main method so I am calling ThirdPartyPackage.main(thingToPass).
    Does anyone know why this occurs, or how I can get the third party classes to use the stdout that is currently in use by the calling class?
    I am very stuck and would really appreciate any help even theoretical.
    Thankyou in advance.

    I am doing exactly the same thing, here's the code that calls an external process and appends the output to a JTextArea:
    (txtOutput is the JTextArea I'm showing the output in)
              try
                   Process proc = Runtime.getRuntime().exec(progName);
                   InputStream procStdout = proc.getInputStream();
                   InputStream procStderr = proc.getErrorStream();
                   int exit = 0;
                   boolean processEnded = false;
                   while(!processEnded)
                        try
                             exit = proc.exitValue();
                             processEnded = true;
                        catch(IllegalThreadStateException e) {} // still running
                        int n = procStdout.available();
                        if(n > 0)
                             byte[] pbytes = new byte[n];
                             procStdout.read(pbytes);
                             //System.out.print(new String(pbytes));
                             //System.out.flush();
                             txtOutput.append(new String(pbytes));
                             txtOutput.setCaretPosition(txtOutput.getText().length());
                        n = procStderr.available();
                        if(n > 0)
                             byte[] pbytes = new byte[n];
                             procStderr.read(pbytes);
                             System.err.print(new String(pbytes));
                             System.err.flush();
                        try
                        Thread.sleep(10);
                        catch(InterruptedException e) {}
                   System.out.println();
                   System.out.println("Process exited with: " + exit);
              catch (java.io.IOException e)
                   System.out.println(e.toString());
              }

  • Redirecting stdout and stderr when starting a MS with the NM

    We are looking at using the Node Manager for stopping and starting the managed servers in some of our projects, to give the testers/developers the ability with operator role in the WLS console to save them calling someone.
    The only trouble is, with our existing shell start scripts we redirect shell level stdout and stderr to a file, i.e
    nohup ./startManagedWebLogic.sh test1-ms11 >> $OUTFILE 2>&1 &
    But how do you do the same when starting the same managed server using the node manager and the WLS Admin Console??
    There is the argument "-Dweblogic.log.RedirectStdoutToServerLogEnabled=true", but this only redirects on the JVM level.
    Is there a way around this problem to get the node manager outputing the same as our scripts do.
    Any direction would be great.
    Alistair.

    Gene
    Thanks for the replies and additional information.
    I was almost sure that one of the previously suggested troubleshooting steps would solve the problem but unfortunately that was not the case.
    So, let us look at the following factors....
    1. Delete the Adobe Premiere Elements Prefs file and, if that does not work, then delete the whole 12.0 Folder in which the Adobe Premiere Elements Prefs file exists.
    Local Disk C
    Users
    Owner
    AppData
    Roaming
    Adobe
    Premiere Elements
    12.0
    and in the 12.0 Folder is the Adobe Premiere Elements Prefs file that you delete. If that does not work, then you delete the whole 12.0 Folder in which the Adobe Premiere Elements Prefs file exists. Be sure to be working with Folder Option Show Hidden Files, Folders, and Drives active so that you can see the complete path cited.
    2. Try to open the Premiere Elements 12 Editor from its Adobe Premiere Elements.exe file rather than desktop icon which uses Adobe Premiere Elements 12.exe file.
    Local Disk C
    Program Files
    Adobe Premiere Elements 12
    and in the Adobe Premiere Elements 12 Folder is the Adobe Premiere Elements.exe file that you double click to open the Premiere Elements 12 Editor bypassing the Welcome Screen. If necessary, we could create a desktop shortcut for the Adobe Premiere Elements.exe file for future use to open the program.
    Also, look at the necessity to right click the desktop icon for the program and the .exe files and apply Run As Administrator to each even if you are running the program from a User Account with Administrative Privileges.
    3. Consider creating a new User Account with Administrative Privileges and install and running Premiere Elements 12 in it (I would save this consideration for the last.)
    Please review. We will be watching for the results.
    Thank you.
    ATR

  • (C) Redirecting stdout to a buffer

    I'm currently authoring a python binding for a third-party application. A function of the third-party applications allows users to set the filename to "-" which will then print the result to stdout. I'd like to be able to catch that output into a buffer and handle it entirely in memory rather than creating a temporary file on disk (that's why freopen does not fit for this). Can someone give me a hint?

    POSIX is fine. It may be great to have a platform-independent way for doing this, but I found my solution with glibc's open_memstream().

  • How to redirect stdout & stderr to a logfile

    Hello All,
    I'm new to java. I have to redirect all the output that get printed to a logfile (text) on my hard disk?
    Can anyone plz give me a pointer?
    thanks
    Sumanth

    He probably means this but doesnt know how to ask for it:
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html
    static void setErr(PrintStream err)
    Reassigns the "standard" error output stream.
    static void setIn(InputStream in)
    Reassigns the "standard" input stream.
    static void setOut(PrintStream out)
    Reassigns the "standard" output stream.

  • Redirecting stdout and stderr to GUI

    Hello,
    Is it possible to redirect System.out and System.err output to a JTextArea or a JLabel? This output will be coming from another class that is instantiated from within my GUI class.
    Any suggestions or otherwise would be appreciated,
    Thanks.

    you need to define a PrintStream for it.
    suggest you write a class extending OutputStream and in the flush() method include the writing to the text area.
    MyOutStream outStream = new MyOutStream();
    PrintStream ps = new PrintStream(outStream.getOutStream(), true);
    System.setErr(myPrintStream);
    System.setOut(myPrintStream);
    can get messy mind you.
    hope this points you in some useful direction.
    Takis

  • Piping stderr & stdout to /dev/null

    Hi,
    I've never worked with stderr and stdout before. I have an application that sends an obscene number of messages to the Console log, so implemented the following shell script to launch it in future:
    /Volumes/Storage/Shared/Games/UrbanTerror/ioUrbanTerror.app/Contents/MacOS/ioUrb anTerror.ub >> 2&>1 /dev/null
    No further entries appeared in the Console so I thought I was sorted, but then I discovered two files in the root of my Home directory called 1 and 2 respectively, and these contained the log outputs. I thought /dev/null was supposed to be the computer equivalent of "oblivion," so have I implemented the shell script incorrectly?
    Also, can someone further modify my script so that stdout goes to /dev/null and stderr goes to a log file in a location of my choosing?
    Many thanks,
    S.

    No further entries appeared in the Console so I thought I was sorted, but then I discovered two files in the root of my Home directory called 1 and 2 respectively, and these contained the log outputs. I thought /dev/null was supposed to be the computer equivalent of "oblivion," so have I implemented the shell script incorrectly?
    The >> should have been next to /dev/null, the & was in the wrong place, and the 2>&1 should follow the >>/dev/null. Understanding the 2>&1 behavior is a bit tricky.
    /Volumes/Storage/Shared/Games/UrbanTerror/ioUrbanTerror.app/Contents/MacOS/ioUrbanTerror.ub >/dev/null 2>&1
    You could have also just redirected stdout and stderr separately to /dev/null
    /Volumes/Storage/Shared/Games/UrbanTerror/ioUrbanTerror.app/Contents/MacOS/ioUrbanTerror.ub >/dev/null 2>/dev/null
    Also, can someone further modify my script so that stdout goes to /dev/null and stderr goes to a log file in a location of my choosing?
    /Volumes/Storage/Shared/Games/UrbanTerror/ioUrbanTerror.app/Contents/MacOS/ioUrbanTerror.ub >/dev/null 2>/location/of/your/choosing/file.log
    This will overwrite file.log every time you invoke the script. Or if you want to append to the file you can use:
    /Volumes/Storage/Shared/Games/UrbanTerror/ioUrbanTerror.app/Contents/MacOS/ioUrbanTerror.ub >/dev/null 2>>/location/of/your/choosing/file.log
    Or if you want to use dated log files for each running of the script:
    /Volumes/Storage/Shared/Games/UrbanTerror/ioUrbanTerror.app/Contents/MacOS/ioUrbanTerror.ub >/dev/null 2>/location/of/your/choosing/file.$(date +%Y%m%d%H%M).log
    Message was edited by: BobHarris

  • Capturing stdout from JVM process

    Hi,
    Using JNI native methods I call functions in a shared C library from my Java program. I do not have access to the shared library source code. The shared library writes informational messages to stdout. I want to be able to capture these messages and display them in my Java GUI as they occur. I need a cross-platform solution because the Java program needs to run on both Windows and Linux.
    I have googled and searched the JavaSoft forums but I cannot find an answer to what I am trying to do. I have seen answers on how to do it if you are using Runtime.exec methods, but I am not doing that. Also, redirection on the command line will not work since I want to show these messages as they occur in my GUI.
    I have thought of redirecting stdout to a pipe in the JNI code and using select to read the bytes off the pipe. Then sending the bytes up to a Java object. All this would run in a separate thread. But this seems overly complicated.
    Any suggestions?
    charlie

    I developed a solution to this problem using named pipes. It works well on Linux (2.6 kernel) and it may work on Windows but I don't know. Example code follows. I would be most interested in any feedback on this solution or on the code itself.
    There are 2 files, StdoutRedirect.java and StdoutRedirect.c.
    1) Compile the java file and run javah on it to get StdoutRedirect.h.
    2) Compile the C file into a shared library, here's a makefile:
    StdoutRedirect: StdoutRedirect.o
    gcc -shared -o libStdoutRedirect.so StdoutRedirect.o
    3) Run the java class file.
    charlie
    **** StdoutRedirect.java ****
    import java.io.FileNotFoundException;
    import java.io.IOException;
    * This class, along with its JNI library, demonstrates a method of redirecting stdout of the JVM process to a Java
    * Reader thread. Using this method the stdout bytes can be sent anywhere in the Java program; e.g., displayed in a GUI.
    * This has only been tested on a Linux 2.6 kernel.
    public class StdoutRedirect {
        static {
            System.loadLibrary("StdoutRedirect");
        final static public String NAMED_PIPE = "/tmp/stdoutRedirect";
        native private void setupNamedPipe();
        native private void redirectStdout();
        native public void someRoutine();
        // Flag to indicate to Reader thread when to terminate
        protected boolean keepReading = true;
        public static void main(String[] args) throws IOException {
            StdoutRedirect redir = new StdoutRedirect();
            redir.setupNamedPipe();
            // The first reader or writer to connect to the named pipe will block. So, the reader
            // must be opened first and must be in a new thread. We want it to be in a separate
            // thread anyways so we can receive data asynchronously.
            redir.openReader();
            // At this point, the reader thread is blocked on creating the FileInputStream
            // because it is the first thing to connect to the named pipe. We grab the lock
            // here and redirect stdout to the named pipe. This opens a writer on the named
            // pipe and the reader thread will unblock. We want to wait for the reader thread
            // to unblock and be ready to receive data before continuing.
            synchronized (redir) {
                redir.redirectStdout();
                try {
                    // wait for the reader thread to be ready to receive data
                    redir.wait();
                } catch (InterruptedException e) {
            // write some data to stdout in our C routine
            redir.someRoutine();
            // All done now, so indicate this with our flag
            redir.keepReading = false;
            // The reader thread may be blocked waiting for something to read and not see
            // the flag. So, wake it up.
            System.out.println("Shut down");
            // Make sure everything is out of stdout and then close it.
            System.out.flush();
            System.out.close();
            // stdout is closed. This will not be visible.
            System.out.println("Won't see this.");
         * Starts the reader thread which listens to the named pipe and spits the data
         * it receives out to stderr.
        private void openReader() {
            new Thread() {
                public void run() {
                    try {
                        int BUFF_SIZE = 256;
                        byte[] bytes = new byte[BUFF_SIZE];
                        int numRead = 0;
                        // At this point there is no writer connected to the named pipe so this statement
                        // will block until there is.
                        FileInputStream fis = new FileInputStream(NAMED_PIPE);
                        // The reader thread is ready to accept data. Notify the main thread.
                        synchronized (StdoutRedirect.this) {
                            StdoutRedirect.this.notify();
                        // Keep reading data until EOF or we're told to quit and there is no more data to read
                        while (numRead != -1 && (StdoutRedirect.this.keepReading || fis.available() != 0)) {
                            numRead = fis.read(bytes, 0, BUFF_SIZE);
                            System.err.print("Received - " + new String(bytes, 0, numRead));
                        if (fis != null) {
                            fis.close();
                        System.err.println("Receiver shut down");
                    } catch (FileNotFoundException e) {
                        e.printStackTrace();
                    } catch (IOException e) {
                        e.printStackTrace();
            }.start();
    } // class StdoutRedirect**** StdoutRedirect.c ****
    #include "StdoutRedirect.h"
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <stdio.h>
    #include <fcntl.h>
    #include <string.h>
    #include <errno.h>
    // The filesystem location for the named pipe
    const char *namedPipe = "/tmp/stdoutRedirect";
    * Create the named pipe we're going to redirect stdout through. After this
    * method completes, the pipe will exist but nothing will be connected to it.
    JNIEXPORT void JNICALL Java_StdoutRedirect_setupNamedPipe(JNIEnv *env, jobject obj) {
      // make sure there is no pre-existing file in our way
      remove(namedPipe);
      // create the named pipe for reading and writing
      mkfifo(namedPipe, S_IRWXU);
    * Redirect stdout to our named pipe. After this method completes, stdout
    * and the named pipe will be identical.
    JNIEXPORT void JNICALL Java_StdoutRedirect_redirectStdout(JNIEnv *env, jobject obj) {
      // Open the write end of the named pipe
      int  namedPipeFD = open(namedPipe, O_WRONLY);
      printf("Before redirection...\n");
      // make sure there is nothing left in stdout
      fflush(stdout);
      // duplicate stdout onto our named pipe
      if ( dup2(namedPipeFD, fileno(stdout)) == -1 ) {
        fprintf(stderr, "errno %s.\n", strerror(errno));
        fprintf(stderr, "Couldn't dup stdout\n");
      printf("After redirection.\n");
      // flushing is necessary, otherwise output does not stay in sync with Java layer
      fflush(stdout);
    * Do some random writing to stdout.
    JNIEXPORT void JNICALL Java_StdoutRedirect_someRoutine(JNIEnv *env, jobject obj) {
      int i;
      for ( i = 0; i < 3; i++ ) {
        printf("Message %d\n", i);
      printf("End of messages\n");
      // flushing is necessary, otherwise output does not stay in sync with Java layer
      fflush(stdout);
    }

  • /dev/null link destroyed. Need help

    I have Forms 6i applications deployed on the internet under Oracle 9iAS 1.0.2.2 on Solaris 2.9 64 bits OS.
    I am starting the 9iAS running the command "apachectl startssl" as 'root' because that's the only way I am able to grab port 443. However as soon as any output is redirected to /dev/null, the /dev/null link is broken and replaced by a /dev/null file writable to only by root.
    My question is what can I do to prevent that?

    Steve Walter (guest) wrote:
    : The "Deploying Applications on the WEB" docs are good for
    : release 2.1, but lack all detail in 6.0. Does anyone have a
    : guideline for building a forms cartridge in 6.0. I've
    followed
    : the 2.1 documentation, knowing it is a bit different, but I
    : still can't get it to work.
    : Thanks for any and all help.
    : Steve
    The error I recieve is Can not service this request, Please try
    again later
    null

  • Redirect not working of POST

    Hello,
    The post method needs a redirection. It shows the url in DEBUG but response gives the same html page & not the new redirect one.
    Here is the POST method:
        public String POST(String url, NameValuePair[] data) {
            String res = "";
            String URL =  ymailSinupUrl + "&_ylt=A9FJpMBjCkRHERcBDgCZ2PAI";
            NameValuePair formData[] = {
                new NameValuePair("u", _dsh), new NameValuePair("t", _t1),
                new NameValuePair("preferredcontent", this.preferLang), new NameValuePair("firstname", FirstName), new NameValuePair("secondname", LastName),  new NameValuePair("gender", this.gender), new NameValuePair("mm", this.bMm), new NameValuePair("dd", bDate), new NameValuePair("yyyy", bYyyy), new NameValuePair("country", loc), new NameValuePair("postalcode", postalCode),
                new NameValuePair("yahooid", Email), new NameValuePair("password", Passwrd), new NameValuePair("passwordconfirm", passwrdAgain),
                new NameValuePair("altemail", this.alterEmail), new NameValuePair("secquestion", selection), new NameValuePair("secquestionanswer", this.IdentifyAnswer), new NameValuePair("cword", newaccountcaptcha), new NameValuePair("cdata", this._continue),  new NameValuePair("tos_agreed", this.doAgree), new NameValuePair("IAgreeBtn", submitbutton)
            PostMethod postMethod = new PostMethod(URL);
            postMethod.setRequestBody(formData);
            int statusCode = 0;
            try {
                statusCode = client.executeMethod(hc, postMethod);
                System.out.println("Register Send: " + postMethod.getStatusLine().toString());
                postMethod.releaseConnection();
            }catch (HttpException e) {
                postMethod.releaseConnection();
                System.out.println("HTTP EXception : " + e.getMessage());
            }catch (IOException ie) {
                postMethod.releaseConnection();
                System.out.println("Error Exe Method - Post. Status Code = " + statusCode);
                ie.printStackTrace();
            // To find whether logon is suceeded is, retreive the cookie
            Cookie[] logoncookies = cookiespec.match(
                ymailSinupUrl, hc.getPort(), "/", false, client.getState().getCookies());
            System.out.println("Logon cookies:");   
            if (logoncookies.length == 0) {
                System.out.println("None");   
            } else {
                for (int i = 0; i < logoncookies.length; i++) {
                    System.out.println("- " + logoncookies.toString());
    // Save the url in lastUrl to keep track of
    try {
    lastUrl = postMethod.getURI().toString();
    } catch (HttpException he) {
    he.printStackTrace();
    statusCode = postMethod.getStatusCode();
    if ((statusCode == HttpStatus.SC_MOVED_TEMPORARILY) ||
    (statusCode == HttpStatus.SC_MOVED_PERMANENTLY) ||
    (statusCode == HttpStatus.SC_SEE_OTHER) ||
    (statusCode == HttpStatus.SC_TEMPORARY_REDIRECT)) {
    Header header = postMethod.getResponseHeader("Location");
    if (header != null) {
    String newUri = header.getValue();
    System.out.println("Header Location = " + newUri);
    if ((newUri == null) || (newUri.equals(""))) {
    newUri = "/";
    try {
    // REQUIRES RE-DIRECT
    System.out.println("RE DIRECTING TARGET .....");
    GetMethod redirect = new GetMethod(h.getValue());
    redirect.setRequestHeader("Cookie",logoncookies.toString());
    client.executeMethod(redirect);
    InputStream inputStream = null;
    BufferedReader input = null;
    try {
    inputStream = redirect.getResponseBodyAsStream();
    input = new BufferedReader(new InputStreamReader(inputStream));
    String str;
    StringBuffer response = new StringBuffer();
    while((str = input.readLine()) != null) {
    response.append((new StringBuilder()).append(str).append("\n").toString());
    res = (new StringBuilder()).append(res).append(str).toString();
    res = response.toString();
    input.close();
    } catch (IOException ie) {
    redirect.releaseConnection();
    ie.printStackTrace();
    System.out.println("Redirect: " + redirect.getStatusLine().toString());
    System.out.println("Redirect: " + redirect.getRequestHeader("path"));
    // release any connection resources used by the method
    redirect.releaseConnection();
    } catch (Exception e) {
    System.out.println("Exp in Redirecting:-" + e.getMessage());
    e.printStackTrace();
    } else {
    System.out.println("Invalid Redirect...........");
    System.exit(1);
    System.out.println((new StringBuilder()).append("Status Code = ").append(statusCode).toString());
    System.out.println("REPLY FROM POS = " + res);
    return res;
    tHE dEBUG of whole program is as follows:
    init:
    deps-jar:
    Compiling 1 source file to E:\Trupti\Projects\Sol Edad\Yname Maker\build\classes
    compile:
    2007/11/22 15:11:07:090 IST [DEBUG] HttpClient - Java version: 1.6.0_02
    2007/11/22 15:11:07:090 IST [DEBUG] HttpClient - Java vendor: Sun Microsystems Inc.
    2007/11/22 15:11:07:090 IST [DEBUG] HttpClient - Java class path: E:\Trupti\JakartaApache\commons-codec-1.3.jar;E:\Trupti\JakartaApache\commons-httpclient-3.0.1.jar;E:\Trupti\JakartaApache\commons-lang-2.3.jar;E:\Trupti\JakartaApache\commons-logging-1.1.jar;E:\Trupti\Projects\Sol Edad\Yname Maker\build\classes
    2007/11/22 15:11:07:090 IST [DEBUG] HttpClient - Operating system name: Windows XP
    2007/11/22 15:11:07:090 IST [DEBUG] HttpClient - Operating system architecture: x86
    2007/11/22 15:11:07:090 IST [DEBUG] HttpClient - Operating system version: 5.1
    2007/11/22 15:11:07:215 IST [DEBUG] HttpClient - SUN 1.6: SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores, JavaPolicy Policy; JavaLoginConfig Configuration)
    2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - SunRsaSign 1.5: Sun RSA signature provider
    2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - SunJSSE 1.6: Sun JSSE provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
    2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - SunJCE 1.6: SunJCE Provider (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, Diffie-Hellman, HMAC)
    2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - SunJGSS 1.0: Sun (Kerberos v5, SPNEGO)
    2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - SunSASL 1.5: Sun SASL provider(implements client mechanisms for: DIGEST-MD5, GSSAPI, EXTERNAL, PLAIN, CRAM-MD5; server mechanisms for: DIGEST-MD5, GSSAPI, CRAM-MD5)
    2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - XMLDSig 1.0: XMLDSig (DOM XMLSignatureFactory; DOM KeyInfoFactory)
    2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - SunPCSC 1.6: Sun PC/SC provider
    2007/11/22 15:11:07:231 IST [DEBUG] HttpClient - SunMSCAPI 1.6: Sun's Microsoft Crypto API provider
    2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.useragent = Jakarta Commons-HttpClient/3.0.1
    2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.protocol.version = HTTP/1.1
    2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.connection-manager.class = class org.apache.commons.httpclient.SimpleHttpConnectionManager
    2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.protocol.cookie-policy = rfc2109
    2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.protocol.element-charset = US-ASCII
    2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.protocol.content-charset = ISO-8859-1
    2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.method.retry-handler = [email protected]
    2007/11/22 15:11:07:231 IST [DEBUG] DefaultHttpParams - Set parameter http.dateparser.patterns = [EEE, dd MMM yyyy HH:mm:ss zzz, EEEE, dd-MMM-yy HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy HH:mm:ss z, EEE, dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM-yyyy HH:mm:ss z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE dd-MMM-yy HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z, EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy HH:mm:ss z]
    2007/11/22 15:11:07:246 IST [DEBUG] DefaultHttpParams - Set parameter http.protocol.version = HTTP/1.0
    2007/11/22 15:11:07:246 IST [DEBUG] DefaultHttpParams - Set parameter http.protocol.version = HTTP/1.0
    Landing on Signup Page
    2007/11/22 15:11:07:246 IST [DEBUG] DefaultHttpParams - Set parameter http.protocol.cookie-policy = null
    2007/11/22 15:11:07:293 IST [DEBUG] DefaultHttpParams - Set parameter http.method.rety-handler = [email protected]1b
    2007/11/22 15:11:07:309 IST [DEBUG] HttpConnection - Open connection to edit.yahoo.com:443
    2007/11/22 15:11:07:981 IST [DEBUG] header - >> "GET /registration?.intl=us&new=1&.done=http HTTP/1.0[\r][\n]"
    2007/11/22 15:11:07:981 IST [DEBUG] HttpMethodBase - Adding Host request header
    2007/11/22 15:11:08:012 IST [DEBUG] header - >> "User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20061201 Firefox/2.0.0.3 (Ubuntu-feisty)[\r][\n]"
    2007/11/22 15:11:08:012 IST [DEBUG] header - >> "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5[\r][\n]"
    2007/11/22 15:11:08:012 IST [DEBUG] header - >> "Accept-Language: en-US[\r][\n]"
    2007/11/22 15:11:08:012 IST [DEBUG] header - >> "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7[\r][\n]"
    2007/11/22 15:11:08:012 IST [DEBUG] header - >> "Keep-Alive: 300[\r][\n]"
    2007/11/22 15:11:08:012 IST [DEBUG] header - >> "Connection: keep-alive[\r][\n]"
    2007/11/22 15:11:08:012 IST [DEBUG] header - >> "Host: edit.yahoo.com[\r][\n]"
    2007/11/22 15:11:08:012 IST [DEBUG] header - >> "[\r][\n]"
    2007/11/22 15:11:09:652 IST [DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
    2007/11/22 15:11:09:652 IST [DEBUG] header - << "Date: Thu, 22 Nov 2007 09:41:08 GMT[\r][\n]"
    2007/11/22 15:11:09:652 IST [DEBUG] header - << "Set-Cookie: B=ef69pm53kajlk&b=3&s=q3; expires=Tue, 02-Jun-2037 20:00:00 GMT; path=/; domain=.yahoo.com[\r][\n]"
    2007/11/22 15:11:09:652 IST [DEBUG] header - << "P3P: policyref="http://p3p.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"[\r][\n]"
    2007/11/22 15:11:09:652 IST [DEBUG] header - << "Cache-control: no-cache[\r][\n]"
    2007/11/22 15:11:09:652 IST [DEBUG] header - << "Pragma: no-cache[\r][\n]"
    2007/11/22 15:11:09:652 IST [DEBUG] header - << "Expires: 0[\r][\n]"
    2007/11/22 15:11:09:652 IST [DEBUG] header - << "Connection: close[\r][\n]"
    2007/11/22 15:11:09:652 IST [DEBUG] header - << "Content-Type: text/html[\r][\n]"
    2007/11/22 15:11:09:699 IST [DEBUG] HttpMethodBase - Cookie accepted: "$Version=0; B=ef69pm53kajlk&b=3&s=q3; $Path=/; $Domain=.yahoo.com"
    Status Code = 200
    Got RESPONSE :-  *****************************  HTML CODE ****************************************
    Initial set of cookies:
    Ini Cookies: None
    Cookie = B = ef69pm53kajlk&b=3&s=q3
    Form Action = /registration;_ylt=A9FJq3.0TkVHN80ADgCZ2PAI
    Captcha URL - https://ab.login.yahoo.com/img/4.tPSeVZFemXYoQV0NICmWnGQ501fk1P1.dvnHUeJXY.iqAJA.in8Ne.4Q6e64fly4gkf3kRkQ--.jpg
    Continue = 4.tPSeVZFemXYoQV0NICmWnGQ501fk1P1.dvnHUeJXY.iqAJA.in8Ne.4Q6e64fly4gkf3kRkQ--
    DSH - U = c43neat3kajlk
    T1 = 0kGqAw2P05N6ep_jQ3V10QQtjOlDOl1TAvxdpkLTjgc1qW0i_V89yZbsoWFsk9Wl4KUh9vEmpnQ4_qp68PmUEimVv9mFLdRDUju7iDo8fQQ1hhbeL48NxPQD5i_aaZ3Pi6TJXAhoEuTL3QUqRn9CsKi6s.hqPg32AK_DBTCEwY0-~B
    Dracs =
    POSTING FORM ....
    2007/11/22 15:11:33:401 IST [DEBUG] HttpConnection - Open connection to edit.yahoo.com:443
    2007/11/22 15:11:33:760 IST [DEBUG] header - >> "POST /registration?.intl=us&new=1&.done=http&_ylt=A9FJpMBjCkRHERcBDgCZ2PAI HTTP/1.0[\r][\n]"
    2007/11/22 15:11:33:776 IST [DEBUG] HttpMethodBase - Adding Host request header
    2007/11/22 15:11:33:792 IST [DEBUG] HttpMethodBase - Default charset used: ISO-8859-1
    2007/11/22 15:11:33:995 IST [DEBUG] HttpMethodBase - Default charset used: ISO-8859-1
    2007/11/22 15:11:34:182 IST [DEBUG] header - >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
    2007/11/22 15:11:34:213 IST [DEBUG] header - >> "Host: edit.yahoo.com[\r][\n]"
    2007/11/22 15:11:34:229 IST [DEBUG] header - >> "Cookie: $Version=0; B=ef69pm53kajlk&b=3&s=q3; $Path=/; $Domain=.yahoo.com[\r][\n]"
    2007/11/22 15:11:34:245 IST [DEBUG] header - >> "Content-Length: 676[\r][\n]"
    2007/11/22 15:11:34:276 IST [DEBUG] header - >> "Content-Type: application/x-www-form-urlencoded[\r][\n]"
    2007/11/22 15:11:34:292 IST [DEBUG] header - >> "[\r][\n]"
    2007/11/22 15:11:35:370 IST [DEBUG] EntityEnclosingMethod - Request body sent
    2007/11/22 15:11:35:682 IST [DEBUG] header - << "HTTP/1.1 301 Moved Permanently[\r][\n]"
    2007/11/22 15:11:35:729 IST [DEBUG] header - << "Date: Thu, 22 Nov 2007 09:41:35 GMT[\r][\n]"
    2007/11/22 15:11:35:745 IST [DEBUG] header - << "Location: http://edit.yahoo.com/registration?.intl=us&new=1&.done=http[\r][\n]"
    2007/11/22 15:11:35:760 IST [DEBUG] header - << "Connection: close[\r][\n]"
    2007/11/22 15:11:35:776 IST [DEBUG] header - << "Content-Type: text/html[\r][\n]"
    2007/11/22 15:11:35:791 IST [DEBUG] HttpMethodDirector - Redirect required
    2007/11/22 15:11:35:791 IST [INFO] HttpMethodDirector - Redirect requested but followRedirects is disabled
    Register Send: HTTP/1.1 301 Moved Permanently
    2007/11/22 15:11:39:604 IST [DEBUG] HttpMethodBase - Should close connection in response to directive: close
    2007/11/22 15:11:39:619 IST [DEBUG] HttpConnection - Releasing connection back to connection manager.
    Logon cookies:
    None
    Header = http://edit.yahoo.com/registration?.intl=us&new=1&.done=http
    RE DIRECTING TARGET .....
    2007/11/22 15:12:02:384 IST [DEBUG] HttpConnection - Open connection to edit.yahoo.com:80
    2007/11/22 15:12:02:727 IST [DEBUG] header - >> "GET /registration?.intl=us&new=1&.done=http HTTP/1.0[\r][\n]"
    2007/11/22 15:12:02:743 IST [DEBUG] HttpMethodBase - Adding Host request header
    2007/11/22 15:12:02:759 IST [DEBUG] header - >> "Cookie: [Lorg.apache.commons.httpclient.Cookie;@e4776b[\r][\n]"
    2007/11/22 15:12:02:790 IST [DEBUG] header - >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
    2007/11/22 15:12:02:821 IST [DEBUG] header - >> "Host: edit.yahoo.com[\r][\n]"
    2007/11/22 15:12:02:837 IST [DEBUG] header - >> "Cookie: $Version=0; B=ef69pm53kajlk&b=3&s=q3; $Path=/; $Domain=.yahoo.com[\r][\n]"
    2007/11/22 15:12:02:852 IST [DEBUG] header - >> "[\r][\n]"
    2007/11/22 15:12:06:196 IST [DEBUG] header - << "HTTP/1.1 302 Found[\r][\n]"
    2007/11/22 15:12:06:243 IST [DEBUG] header - << "Date: Thu, 22 Nov 2007 09:42:02 GMT[\r][\n]"
    2007/11/22 15:12:06:290 IST [DEBUG] header - << "P3P: policyref="http://p3p.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"[\r][\n]"
    2007/11/22 15:12:06:305 IST [DEBUG] header - << "Location: https://edit.yahoo.com/registration?_intl=us&new=1&_done=http[\r][\n]"
    2007/11/22 15:12:06:321 IST [DEBUG] header - << "Connection: close[\r][\n]"
    2007/11/22 15:12:06:337 IST [DEBUG] header - << "Content-Type: text/html[\r][\n]"
    <b>2007/11/22 15:12:06:352 IST [DEBUG] HttpMethodDirector - Redirect required
    2007/11/22 15:12:06:368 IST [DEBUG] HttpMethodDirector - Redirect requested to location 'https://edit.yahoo.com/registration?_intl=us&new=1&_done=http'
    2007/11/22 15:12:06:415 IST [DEBUG] HttpMethodDirector - Redirecting from 'http://edit.yahoo.com:80/registration' to 'https://edit.yahoo.com/registration</b>
    2007/11/22 15:12:06:430 IST [DEBUG] HttpMethodDirector - Execute redirect 1 of 100
    2007/11/22 15:12:06:446 IST [DEBUG] HttpMethodBase - Should close connection in response to directive: close
    2007/11/22 15:12:06:462 IST [DEBUG] HttpConnection - Connection is locked.  Call to releaseConnection() ignored.
    2007/11/22 15:12:06:462 IST [DEBUG] HttpConnection - Releasing connection back to connection manager.
    2007/11/22 15:12:06:477 IST [DEBUG] HttpConnection - Open connection to edit.yahoo.com:443
    2007/11/22 15:12:06:821 IST [DEBUG] header - >> "GET /registration?_intl=us&new=1&_done=http HTTP/1.1[\r][\n]"
    2007/11/22 15:12:06:837 IST [DEBUG] HttpMethodBase - Adding Host request header
    2007/11/22 15:12:06:868 IST [DEBUG] header - >> "Cookie: [Lorg.apache.commons.httpclient.Cookie;@e4776b[\r][\n]"
    2007/11/22 15:12:06:899 IST [DEBUG] header - >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
    2007/11/22 15:12:06:915 IST [DEBUG] header - >> "Host: edit.yahoo.com[\r][\n]"
    2007/11/22 15:12:06:930 IST [DEBUG] header - >> "Cookie: $Version=0; B=ef69pm53kajlk&b=3&s=q3; $Path=/; $Domain=.yahoo.com[\r][\n]"
    2007/11/22 15:12:06:962 IST [DEBUG] header - >> "[\r][\n]"
    2007/11/22 15:12:09:493 IST [DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
    2007/11/22 15:12:09:555 IST [DEBUG] header - << "Date: Thu, 22 Nov 2007 09:42:07 GMT[\r][\n]"
    2007/11/22 15:12:09:571 IST [DEBUG] header - << "P3P: policyref="http://p3p.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"[\r][\n]"
    2007/11/22 15:12:09:602 IST [DEBUG] header - << "Cache-control: no-cache[\r][\n]"
    2007/11/22 15:12:09:618 IST [DEBUG] header - << "Pragma: no-cache[\r][\n]"
    2007/11/22 15:12:09:633 IST [DEBUG] header - << "Expires: 0[\r][\n]"
    2007/11/22 15:12:09:649 IST [DEBUG] header - << "Connection: close[\r][\n]"
    2007/11/22 15:12:09:665 IST [DEBUG] header - << "Transfer-Encoding: chunked[\r][\n]"
    2007/11/22 15:12:09:680 IST [DEBUG] header - << "Content-Type: text/html[\r][\n]"
    2007/11/22 15:12:28:523 IST [DEBUG] HttpMethodBase - Should close connection in response to directive: close
    2007/11/22 15:12:28:523 IST [DEBUG] HttpConnection - Releasing connection back to connection manager.The bold text says, that the header has some reference to go to other site, but the redirect.getResponseBodyAsStream(); returns the same page as Get. What is that I am lacking.
    Any help is highly appreciated. Please guide me, I am in need of help.
    Thanks

    cotton.m wrote:
    Have you considered the possibility that the site in question doesn't want to support requests from your client and is thus forwarding you to oblivion?I mean I'd well consider dropping a Jakarta client trying to register on my web page. It smells of spam

  • How to set item values when redirecting to the same page.

    I just created a redirect button that I want to redirect to the same page and set the 2 page items on the page to the same value they had before the redirect.
    But I can't write:
    Set These Items: P1_Permit_Number,P1_Fishing_Year
    With These Values: &P1_Permit_Number.,&P1_Fishing_Year.
    Because there are no values in the session state, since a submit has not been done.
    So how do I do this?
    I know how to get the values stored in the items, e.g., $v('P1_PERMIT_NUMBER')
    but where do I place that command? It's not allowed under "With These Values"
    And I don't really want to make this a submit button and create a process that says:
    P1_PERMIT_NUMBER := $v('P1_PERMIT_NUMBER') because that would complicate the page too much -- I already have other processes and branches on the pages whose conditions would have to be modified so that they don't run during this scenario.
    Thanks.

    Thanks Gary and Andy. I rewrote the function according to above instructions:
    function redirectToURL()
    var permitNumber = document.getElementById('P1_Permit_Number');
    var fishingYear = document.getElementById('P1_Fishing_Year');
    var url = 'f?p=&APP_ID.:1:&APP_SESSION.::::P1_Permit_Number,P1_Fishing_Year:' + permitNumber +',' + fishingYear;
    window.location.href = url;
    But when I entered a value for permit number and fishing year and redirected, the word "null" appeared in the Permit page item, instead of the permit number that I had entered.
    Remember that I am not submitting here. So if the syntax you showed me, i.e. getElementById('P1_Permit_Number'), searches for the item's session state, then it will be wrong, since there is no session state value for the items at this point. Perhaps that is the reason I got the null?
    If so, what can I do?

  • Win 2008  WL 10.3.3 stdout appearing in .log and .out files

    Recently noticed a ballooning [ServerName].out file in the logs directory. In weblogic management console I do have it configured to redirect stdout and stderr to weblogic logging (.log file). Both the .log and .out file contain the same stdout/stderr information. I would like to eliminate the .out file if possible (since WL only rotates the .log), but cannot find where it is configured. The managed servers are NOT windows services (no -log option).
    Did not find any logging parameters in JAVA_OPTIONS or paramters in the startManagedSvc.cmd file.
    Is this something needing to be corrected at the application level? (log4j)

    opie wrote:
    Recently noticed a ballooning [ServerName].out file in the logs directory. In weblogic management console I do have it configured to redirect stdout and stderr to weblogic logging (.log file). Both the .log and .out file contain the same stdout/stderr information. I would like to eliminate the .out file if possible (since WL only rotates the .log), but cannot find where it is configured. The managed servers are NOT windows services (no -log option).
    Did not find any logging parameters in JAVA_OPTIONS or paramters in the startManagedSvc.cmd file.
    Is this something needing to be corrected at the application level? (log4j)Depends on what you are actually seeing in those files. Are you outputting log4j messages to a log file AND the console?
    Here is a snippet of the log4j configuration file that denotes writing to the console:
        <appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
            <layout class="org.apache.log4j.PatternLayout">
                <param name="ConversionPattern" value="%d{yyyy-MM-dd hh:mm:ss} %-5p [%t] - %C{1}.%M -> %m%n" />
            </layout>
          </appender>
        <root>
            <level value="ALL" />
            <appender-ref ref="ConsoleAppender" />
        </root>Edited by: ForumKid2 on Dec 29, 2010 11:36 AM

Maybe you are looking for

  • I get an error coode 5506 when i try to link to my comp. can you help

    i have been try to link to my computer to down load music and  recive an error message 5506. Can  you help me?

  • Change gl account in MIGO by using user exit

    Dear all, Could you tell me how to use user exit to change the gl account in MIGO? I have searched in SDN and found some code. In user exit: MBCF0002 ( EXIT_SAPMM07M_001 ). FIELD-SYMBOLS <F2> TYPE ANY."Field Symbol for the GL ACCOUNT DATA : W_KONTO_N

  • Making a preloader in AS 3.0

    I'm trying to make a preloader in Actionscript 3.0 that shows a increasing status bar as the main swf is loaded. Unfortunately, when I try and do so, the swf loads all of the fla's sound files that are linked to external .as class files BEFORE my pre

  • Restoring archive log after cold backup

    Hello forums users, I read many thing on this topic but I didn't find the good answer. I performed a cold backup each sunday. My database is in ARCHIVE LOG mode. Is it possible to restore ARCHIVE LOG files after restoring COLD backup? Sunday : cold b

  • Reg Update Order System Status

    Hi, My requirement is, while doing TECO (technical complete) of maintenance order I want to check for open reservation/requisition in maintenance order. and if we found any any open reservation/requisition then order status TECO will not update. main