Problems with readLine()

I am using readLine() to read a file into an array, and when i print the line there are now "?" characters in place of some of the spaces(not all of them). i tried using string.replaceAll("\\?"," ") to fix the problem but it seems that the ? in the line is not actually a question mark character, as the regex does not "see" it at all. I also need to search the array for certain words, and at this point even putting the "?" in comes up without a match:
if("Simple\\?test".equals(string))
return i;
I will post the rest of the code and system output if that explanation wasn't clear enough. Thanks in advance.

Most likely the information is encoded in a manner that is not compatible with the default that your computer uses for display, and non-displayable characters are being replaced with the question mark.
Check how the data is encoded, and set your program and computer for compatibility.
For diagnosis, consider printing the information in hexidecimal format.

Similar Messages

  • Problem with threads running javaw

    Hi,
    Having a problem with multi thread programming using client server sockets. The program works find when starting the the application in a console using java muti.java , but when using javaw multi.java the program doesnt die and have to kill it in the task manager. The program doesnt display any of my gui error messages either when the server disconnect the client. all works find in a console. any advice on this as I havent been able to understand why this is happening? any comment would be appreciated.
    troy.

    troy,
    Try and post a minimum code sample of your app which
    does not work.
    When using javaw, make sure you redirect the standard
    error and standard output streams to file.
    Graeme.Hi Graeme,
    I dont understand what you mean by redirection to file? some of my code below.
    The code works fine under a console, code is supposed to exit when the client (the other server )disconnects. the problem is that but the clientworker side of the code still works. which under console it doesnt.
    public class Server{
    ServerSocket aServerSocket;
    Socket dianosticsSocket;
    Socket nPortExpress;
    ClientListener aClientListener;
    LinkedList queue = new LinkedList();
    int port = 0;
    int clientPort = 0;
    String clientName = null;
    boolean serverAlive = true;
    * Server constructor generates a server
    * Socket and then starts a client threads.
    * @param aPort      socket port of local machine.
    public Server(int aPort, String aClientName, int aClientPort){
    port = aPort;
    clientName = aClientName;
    clientPort = aClientPort;
    try{
    // create a new thread
    aServerSocket = new ServerSocket(port) ;
    // connect to the nPortExpress
    aClientListener = new ClientListener(InetAddress.getByName(clientName), clientPort, queue,this);
    // aClientListener.setDaemon(true);
    aClientListener.start();
    // start a dianostic port
    DiagnosticsServer aDiagnosticsServer = new DiagnosticsServer(port,queue,aClientListener);
    // System.out.println("Server is running on port " + port + "...");
    // System.out.println("Connect to nPort");
    catch(Exception e)
    // System.out.println("ERROR: Server port " + port + " not available");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Server port " + port + " not available", JOptionPane.ERROR_MESSAGE);
    serverAlive = false;
    System.exit(1);
    while(serverAlive&&aClientListener.hostSocket.isConnected()){
    try{
    // connect the client
    Socket aClient = aServerSocket.accept();
    //System.out.println("open client connection");
    //System.out.println("client local: "+ aClient.getLocalAddress().toString());
    // System.out.println("client localport: "+ aClient.getLocalPort());
    // System.out.println("client : "+ aClient.getInetAddress().toString());
    // System.out.println("client port: "+ aClient.getLocalPort());
    // make a new client thread
    ClientWorker clientThread = new ClientWorker(aClient, queue, aClientListener, false);
    // start thread
    clientThread.start();
    catch(Exception e)
    //System.out.println("ERROR: Client connection failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client connection failure", JOptionPane.ERROR_MESSAGE);
    }// end while
    } // end constructor Server
    void serverExit(){
         JOptionPane.showMessageDialog(null, "Server ","ERROR: nPort Failure", JOptionPane.ERROR_MESSAGE);
         System.exit(1);
    }// end class Server
    *** connect to another server
    public class ClientListener extends Thread{
    InetAddress hostName;
    int hostPort;
    Socket hostSocket;
    BufferedReader in;
    PrintWriter out;
    boolean loggedIn;
    LinkedList queue;      // reference to Server queue
    Server serverRef; // reference to main server
    * ClientListener connects to the host server.
    * @param aHostName is the name of the host eg server name or IP address.
    * @param aHostPort is a port number of the host.
    * @param aLoginName is the users login name.
    public ClientListener(InetAddress aHostName, int aHostPort,LinkedList aQueue,Server aServer)      // reference to Server queue)
    hostName = aHostName;
    hostPort = aHostPort;
    queue = aQueue;
    serverRef = aServer;      
    // connect to the server
    try{
    hostSocket = new Socket(hostName, hostPort);
    catch(IOException e){
    //System.out.println("ERROR: Connection Host Failed");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort Failed", JOptionPane.ERROR_MESSAGE);     
    System.exit(0);
    } // end constructor ClientListener
    ** multi client connection server
    ClientWorker(Socket aSocket,LinkedList aQueue, ClientListener aClientListener, boolean diagnostics){
    queue = aQueue;
    addToQueue(this);
    client = aSocket;
    clientRef = aClientListener;
    aDiagnostic = diagnostics;
    } // end constructor ClientWorker
    * run method is the main loop of the server program
    * in change of handle new client connection as well
    * as handle all messages and errors.
    public void run(){
    boolean alive = true;
    String aSubString = "";
    in = null;
    out = null;
    loginName = "";
    loggedIn = false;
    while (alive && client.isConnected()&& clientRef.hostSocket.isConnected()){
    try{
    in = new BufferedReader(new InputStreamReader(client.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(client.getOutputStream()));
    if(aDiagnostic){
    out.println("WELCOME to diagnostics");
    broadCastDia("Connect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    out.println("WELCOME to Troy's Server");
    broadCastDia("Connect : client "+client.getInetAddress().toString());
         out.flush();
    String line;
    while(((line = in.readLine())!= null)){
    StringTokenizer aStringToken = new StringTokenizer(line, " ");
    if(!aDiagnostic){
    broadCastDia(line);
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    else{
    if(line.equals("GETIPS"))
    getIPs();
    else{
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    } // end while
    catch(Exception e){
    // System.out.println("ERROR:Client Connection reset");
                             JOptionPane.showMessageDialog(null, (e.toString()),"ERROR:Client Connection reset", JOptionPane.ERROR_MESSAGE);     
    try{
    if(aDiagnostic){
    broadCastDia("Disconnect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    broadCastDia("Disconnect : client "+client.getInetAddress().toString());
         out.flush();
    // close the buffers and connection;
    in.close();
    out.close();
    client.close();
    // System.out.println("out");
    // remove from list
    removeThreadQueue(this);
    alive = false;
    catch(Exception e){
    // System.out.println("ERROR: Client Connection reset failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client Connection reset failure", JOptionPane.ERROR_MESSAGE);     
    }// end while
    } // end method run
    * method run - Generates io stream for communicating with the server and
    * starts the client gui. Run also parses the input commands from the server.
    public void run(){
    boolean alive = true;
    try{
    // begin to life the gui
    // aGuiClient = new ClientGui(hostName.getHostName(), hostPort, loginName, this);
    // aGuiClient.show();
    in = new BufferedReader(new InputStreamReader(hostSocket.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(hostSocket.getOutputStream()));
    while (alive && hostSocket.isConnected()){
    String line;
    while(((line = in.readLine())!= null)){
    System.out.println(line);
    broadCast(line);
    } // end while
    } // end while
    catch(Exception e){
    //     System.out.println("ERRORa Connection to host reset");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort reset", JOptionPane.ERROR_MESSAGE);
    try{
    hostSocket.close();
         }catch(Exception a){
         JOptionPane.showMessageDialog(null, (a.toString()),"ERROR: Exception", JOptionPane.ERROR_MESSAGE);
    alive = false;
    System.exit(1);
    } // end method run

  • Problem with ArrayList

    Hello,
    I am having a problem with a program I am trying to write. The idea of the program is to:
    A) read a list of movies list from a text file
    B) create an object for each movie using the information from the text file
    C) place the objects into an arrayList
    My problem is that when I check my arrayList it seems to only contain multiple copies of the first movie read from the text file. Here is my code
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.io.FileOutputStream;
    import java.io.FileNotFoundException;
    import java.util.ArrayList;
    public class MovieReader
         PrintWriter outputStream = null;
         public void readFile()
              try
                      BufferedReader in = new BufferedReader(new FileReader("movie.txt"));
                      String str;
                      while ((str = in.readLine()) != null)
                           process(str);
                      in.close();
              catch (IOException e)
                  e.printStackTrace();
         ArrayList <ValidMovie> movieList = new ArrayList<ValidMovie>();
         private void process(String line)
              String[] array = line.split("\t");
              int i = 0;
              for ( i = 0; i < array.length; i++)
                   String tempTitle = array[0];
                   String tempYear = array [1];
                   String tempRating = array [2];
                   String tempFormat = array [3];
                   ValidMovie uuj = new ValidMovie(tempTitle, tempYear, tempRating, tempFormat);
                   movieList.add(uuj);
              System.out.println("item at index 1 is:   " + movieList.get(1));
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         private void writeFile(String [] arrayL)
              String [] arrayWrite = arrayL;
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     
    //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
         public static void main(String[] args)
              MovieReader mv = new MovieReader();
              mv.readFile();
    //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    }This is the code that creates an object for each movie:
    import java.io.Serializable;
    public class ValidMovie implements Serializable
         private String title;
         private String year;
         private String rating;
         private String format;
         public ValidMovie()
         public ValidMovie(String tTitle, String tYear, String tRating, String tFormat)
              title = tTitle;
              year = tYear;
              rating = tRating;
              format = tFormat;
         //Getters for title, year, rating and format
         public String getTitle ()
              return title;
         public String getYear ()
              return year;
         public String getRating ()
              return rating;
         public String getFormat ()
              return format;
         public String toString ()
              return title + "\t" + year + "\t" + rating + "\t" + format;
    }The following is what I have in the movie.txt file:
    Bamboozled     2000     2     DVD
    What Lies Beneath     2000     1.5     DVD
    Beneath the Planet of the Apes     1970     1     DVD
    You Can Count On Me     2000     3.5     Theater
    And finally this is the result when I run the code:
    item at index 1 is: Bamboozled     2000     2     DVD
    item at index 1 is: Bamboozled     2000     2     DVD
    item at index 1 is: Bamboozled     2000     2     DVD
    item at index 1 is: Bamboozled     2000     2     DVD
    I am sure that it is something simple that I am overlooking but I cannot figure it out. When I change the index in the code:
    System.out.println("item at index 1 is:   " + movieList.get(1));to 0 or 2 or 3 then result is the same, it will just show the first movie in the text file. Any help would be greatly appreciated. Thanks

    Thanks for the reply, it helped but I am now getting 4 of each of the movies after adding you suggestion. This is much better now I just need to figure out why the loop is causing the extra copies. Thanks again :)
    Item 0: Bamboozled     2000     2     DVD
    Item 1: Bamboozled     2000     2     DVD
    Item 2: Bamboozled     2000     2     DVD
    Item 3: Bamboozled     2000     2     DVD
    Item 4: What Lies Beneath     2000     1.5     DVD
    Item 5: What Lies Beneath     2000     1.5     DVD
    Item 6: What Lies Beneath     2000     1.5     DVD
    Item 7: What Lies Beneath     2000     1.5     DVD
    Item 8: Beneath the Planet of the Apes     1970     1     DVD
    Item 9: Beneath the Planet of the Apes     1970     1     DVD
    Item 10: Beneath the Planet of the Apes     1970     1     DVD
    Item 11: Beneath the Planet of the Apes     1970     1     DVD
    Item 12: You Can Count On Me     2000     3.5     Theater
    Item 13: You Can Count On Me     2000     3.5     Theater
    Item 14: You Can Count On Me     2000     3.5     Theater
    Item 15: You Can Count On Me     2000     3.5     Theater

  • [Solved] Problem with upgrading polkit or filesystem

    Ok so first off they do "upgrade" but the problem has me worried that something is wrong.
    A week or so ago after converting to systemd I tried getting rid of ConsoleKit and installing polkit 0.107 from the [testing] repo but it caused pacman to get stuck at "(1/1) upgrading polkit"  So I tried that a couple of times but I could never get pacman to finish and get past that.  I had to control + c to get out of that then type exit in the console (no text was visible that I typed however but typing exit + enter worked for closing it).  So I then opened a new terminal and downgraded polkit back to 0.105 and waited for polkit to get pushed from testing to see if it would fix my issue.  Fast forward to today and I go to upgrade my system.  Among the 83 updates or so was polkit and filesystem.  What do you know it gets stuck at "(15/83) upgrading polkit".  Fuck so I control + c, open new terminal and then do the upgrade again and it continues to update but this time it gets stuck doing the same thing for filesystem.  I control + c, open new terminal and continue the upgrade until it finishes, which it does this time, and I reboot.
    I tried re-installing polkit again and filesystem again but they continue to get stuck.  I cannot "complete" the upgrade even though they show the appropriate version when I check.
    Terminal
    [507] shauder@arch-desktop [~] $ sudo pacman -S polkit
    warning: polkit-0.107-4 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): polkit-0.107-4
    Total Installed Size: 1.77 MiB
    Net Upgrade Size: 0.00 MiB
    Proceed with installation? [Y/n]
    (1/1) checking package integrity [########################################################] 100%
    (1/1) loading package files [########################################################] 100%
    (1/1) checking for file conflicts [########################################################] 100%
    (1/1) checking available disk space [########################################################] 100%
    (1/1) upgrading polkit
    /var/log/pacman.log
    [2012-07-18 18:27] installed filesystem (2012.6-4)
    [2012-07-18 18:27] installed findutils (4.4.2-4)
    [2012-07-18 18:27] installed gawk (4.0.1-1)
    [2012-07-18 18:27] installed gettext (0.18.1.1-4)
    [2012-07-18 18:27] installed grep (2.13-2)
    [2012-07-18 18:27] installed sed (4.2.1-4)
    [2012-07-18 18:27] installed grub (0.97-21)
    [2012-07-18 18:27] installed gzip (1.5-1)
    [2012-07-18 18:27] installed gdbm (1.10-1)
    [2012-07-18 18:27] installed perl (5.16.0-2)
    [2012-07-18 18:27] installed openssl (1.0.1.c-1)
    [2012-07-18 18:27] installed libsasl (2.1.23-9)
    [2012-07-18 18:27] installed libldap (2.4.31-4)
    [2012-07-18 18:27] installed keyutils (1.5.5-3)
    [2012-07-18 18:27] installed krb5 (1.10.2-2)
    [2012-07-18 18:27] installed heirloom-mailx (12.5-3)
    [2012-07-18 18:27] installed inetutils (1.9.1-2)
    [2012-07-18 18:27] installed iproute2 (3.4.0-2)
    [2012-07-18 18:27] installed sysvinit (2.88-6)
    [2012-07-18 18:27] installed initscripts (2012.06.3-2)
    [2012-07-18 18:27] installed sysfsutils (2.1.0-8)
    [2012-07-18 18:27] >> Traceroute is now provided by core/traceroute
    [2012-07-18 18:27] installed iputils (20101006-4)
    [2012-07-18 18:27] installed jfsutils (1.1.15-3)
    [2012-07-18 18:27] installed less (444-3)
    [2012-07-18 18:27] installed licenses (2.9-1)
    [2012-07-18 18:27] installed linux-firmware (20120625-1)
    [2012-07-18 18:27] installed mkinitcpio-busybox (1.20.1-1)
    [2012-07-18 18:27] installed expat (2.1.0-1)
    [2012-07-18 18:27] installed libarchive (3.0.4-1)
    [2012-07-18 18:27] installed mkinitcpio (0.9.2-2)
    [2012-07-18 18:27] >>> Updating module dependencies. Please wait ...
    [2012-07-18 18:27] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    [2012-07-18 18:27] ==> Building image from preset: 'default'
    [2012-07-18 18:27] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    [2012-07-18 18:27] ==> Starting build: 3.4.5-1-ARCH
    [2012-07-18 18:27] -> Running build hook: [base]
    [2012-07-18 18:27] -> Running build hook: [udev]
    [2012-07-18 18:27] -> Running build hook: [autodetect]
    [2012-07-18 18:27] -> Running build hook: [pata]
    [2012-07-18 18:27] -> Running build hook: [scsi]
    [2012-07-18 18:27] -> Running build hook: [sata]
    [2012-07-18 18:27] -> Running build hook: [filesystems]
    [2012-07-18 18:27] -> Running build hook: [usbinput]
    [2012-07-18 18:27] -> Running build hook: [fsck]
    [2012-07-18 18:27] ==> Generating module dependencies
    [2012-07-18 18:27] ==> Creating gzip initcpio image: /boot/initramfs-linux.img
    [2012-07-18 18:27] bsdcpio: Failed to set default locale
    [2012-07-18 18:27] ==> Image generation successful
    [2012-07-18 18:27] ==> Building image from preset: 'fallback'
    [2012-07-18 18:27] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    [2012-07-18 18:27] ==> Starting build: 3.4.5-1-ARCH
    [2012-07-18 18:27] -> Running build hook: [base]
    [2012-07-18 18:27] -> Running build hook: [udev]
    [2012-07-18 18:27] -> Running build hook: [pata]
    [2012-07-18 18:27] -> Running build hook: [scsi]
    [2012-07-18 18:27] -> Running build hook: [sata]
    [2012-07-18 18:27] -> Running build hook: [filesystems]
    [2012-07-18 18:27] -> Running build hook: [usbinput]
    [2012-07-18 18:27] -> Running build hook: [fsck]
    [2012-07-18 18:27] ==> Generating module dependencies
    [2012-07-18 18:27] ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
    [2012-07-18 18:27] bsdcpio: Failed to set default locale
    [2012-07-18 18:27] ==> Image generation successful
    [2012-07-18 18:27] installed linux (3.4.5-1)
    [2012-07-18 18:27] installed logrotate (3.8.1-2)
    [2012-07-18 18:27] installed lvm2 (2.02.96-3)
    [2012-07-18 18:27] installed texinfo (4.13a-7)
    [2012-07-18 18:27] installed groff (1.21-2)
    [2012-07-18 18:27] installed libpipeline (1.2.1-1)
    [2012-07-18 18:27] it's recommended to create an initial
    [2012-07-18 18:27] database running as root:
    [2012-07-18 18:27] "/usr/bin/mandb --quiet"
    [2012-07-18 18:27] installed man-db (2.6.2-1)
    [2012-07-18 18:27] installed man-pages (3.41-1)
    [2012-07-18 18:27] installed mdadm (3.2.5-2)
    [2012-07-18 18:27] installed nano (2.2.6-2)
    [2012-07-18 18:27] installed ca-certificates (20120623-1)
    [2012-07-18 18:27] installed libssh2 (1.4.2-1)
    [2012-07-18 18:27] installed curl (7.26.0-1)
    [2012-07-18 18:27] installed pth (2.0.7-4)
    [2012-07-18 18:27] installed libksba (1.2.0-2)
    [2012-07-18 18:27] installed libassuan (2.0.3-1)
    [2012-07-18 18:27] installed pinentry (0.8.1-4)
    [2012-07-18 18:27] installed dirmngr (1.1.0-4)
    [2012-07-18 18:27] installed gnupg (2.0.19-2)
    [2012-07-18 18:27] installed gpgme (1.3.1-4)
    [2012-07-18 18:27] installed pacman-mirrorlist (20120626-1)
    [2012-07-18 18:27] installed archlinux-keyring (20120622-1)
    [2012-07-18 18:27] >>> Run `pacman-key --init; pacman-key --populate archlinux`
    [2012-07-18 18:27] >>> to import the data required by pacman for package verification.
    [2012-07-18 18:27] >>> See: https://www.archlinux.org/news/having-pacman-verify-packages
    [2012-07-18 18:27] installed pacman (4.0.3-3)
    [2012-07-18 18:27] installed pciutils (3.1.10-1)
    [2012-07-18 18:27] installed pcmciautils (018-4)
    [2012-07-18 18:27] installed libnl (3.2.11-1)
    [2012-07-18 18:27] installed libusbx (1.0.12-2)
    [2012-07-18 18:27] installed libpcap (1.3.0-1)
    [2012-07-18 18:27] installed ppp (2.4.5-3)
    [2012-07-18 18:27] installed procps-ng (3.3.3-3)
    [2012-07-18 18:27] installed psmisc (22.19-1)
    [2012-07-18 18:27] installed reiserfsprogs (3.6.21-4)
    [2012-07-18 18:27] installed shadow (4.1.5.1-1)
    [2012-07-18 18:27] installed eventlog (0.2.12-3)
    [2012-07-18 18:27] installed syslog-ng (3.3.5-2)
    [2012-07-18 18:27] installed tar (1.26-2)
    [2012-07-18 18:27] installed usbutils (006-1)
    [2012-07-18 18:27] installed vi (1:050325-2)
    [2012-07-18 18:27] installed wget (1.13.4-1)
    [2012-07-18 18:27] installed which (2.20-5)
    [2012-07-18 18:27] installed dbus-core (1.6.2-2)
    [2012-07-18 18:27] installed wpa_supplicant (1.0-1)
    [2012-07-18 18:27] installed xfsprogs (3.1.8-2)
    [2012-07-18 18:27] installed m4 (1.4.16-2)
    [2012-07-18 18:27] installed autoconf (2.69-1)
    [2012-07-18 18:27] installed automake (1.12.2-1)
    [2012-07-18 18:27] installed binutils (2.22-9)
    [2012-07-18 18:27] installed bison (2.5.1-1)
    [2012-07-18 18:27] installed fakeroot (1.18.4-1)
    [2012-07-18 18:27] installed flex (2.5.35-5)
    [2012-07-18 18:27] installed mpfr (3.1.1-1)
    [2012-07-18 18:27] installed libmpc (0.9-2)
    [2012-07-18 18:27] installed isl (0.10-1)
    [2012-07-18 18:27] installed cloog (0.17.0-2)
    [2012-07-18 18:27] installed ppl (1.0-1)
    [2012-07-18 18:27] installed gcc (4.7.1-4)
    [2012-07-18 18:27] installed libltdl (2.4.2-6)
    [2012-07-18 18:27] installed libtool (2.4.2-6)
    [2012-07-18 18:27] installed make (3.82-4)
    [2012-07-18 18:27] installed patch (2.6.1-3)
    [2012-07-18 18:27] installed pkg-config (0.27-1)
    [2012-07-18 18:37] Running 'pacman -Syy'
    [2012-07-18 18:37] synchronizing package lists
    [2012-07-18 18:38] Running 'pacman -Syy'
    [2012-07-18 18:38] synchronizing package lists
    [2012-07-18 18:39] Running 'pacman -S sudo'
    [2012-07-18 18:43] Running 'pacman -S sudo'
    [2012-07-18 18:44] Running 'pacman -S sudo'
    [2012-07-18 18:44] installed sudo (1.8.5.p2-1)
    [2012-07-18 18:45] Running 'pacman -S alsa-utils'
    [2012-07-18 18:46] installed alsa-lib (1.0.25-1)
    [2012-07-18 18:46] installed dialog (1.1_20120706-1)
    [2012-07-18 18:46] installed libogg (1.3.0-1)
    [2012-07-18 18:46] installed flac (1.2.1-3)
    [2012-07-18 18:46] installed libvorbis (1.3.3-1)
    [2012-07-18 18:46] installed libsndfile (1.0.25-2)
    [2012-07-18 18:46] installed libsamplerate (0.1.8-1)
    [2012-07-18 18:46] installed alsa-utils (1.0.25-3)
    [2012-07-18 18:46] Running 'pacman -S alsa-plugins'
    [2012-07-18 18:46] installed alsa-plugins (1.0.25-2)
    [2012-07-18 18:48] Running 'pacman -S xorg-server xorg-xinit xorg-server-utils'
    [2012-07-18 18:48] installed xproto (7.0.23-1)
    [2012-07-18 18:48] installed libxdmcp (1.1.1-1)
    [2012-07-18 18:48] installed freetype2 (2.4.10-1)
    [2012-07-18 18:48] installed libfontenc (1.1.1-1)
    [2012-07-18 18:48] installed fontsproto (2.1.2-1)
    [2012-07-18 18:48] installed libxfont (1.4.5-1)
    [2012-07-18 18:48] installed libpciaccess (0.13.1-1)
    [2012-07-18 18:48] installed libdrm (2.4.37-1)
    [2012-07-18 18:48] installed pixman (0.26.2-1)
    [2012-07-18 18:48] installed libxau (1.0.7-1)
    [2012-07-18 18:48] installed xcb-proto (1.7.1-1)
    [2012-07-18 18:48] installed libxcb (1.8.1-1)
    [2012-07-18 18:48] installed kbproto (1.0.6-1)
    [2012-07-18 18:48] installed libx11 (1.5.0-1)
    [2012-07-18 18:48] installed libxkbfile (1.0.8-1)
    [2012-07-18 18:48] installed xorg-xkbcomp (1.2.4-1)
    [2012-07-18 18:48] installed xkeyboard-config (2.6-1)
    [2012-07-18 18:48] installed xorg-setxkbmap (1.3.0-1)
    [2012-07-18 18:48] installed xorg-fonts-encodings (1.0.4-3)
    [2012-07-18 18:48] installed xorg-fonts-alias (1.0.2-2)
    [2012-07-18 18:48] installed xorg-bdftopcf (1.0.3-2)
    [2012-07-18 18:48] installed xorg-mkfontscale (1.1.0-1)
    [2012-07-18 18:48] installed xorg-mkfontdir (1.0.7-1)
    [2012-07-18 18:48] installed xorg-font-util (1.3.0-1)
    [2012-07-18 18:48] installed xorg-font-utils (7.6-3)
    [2012-07-18 18:48] updating font cache... done.
    [2012-07-18 18:48] installed fontconfig (2.8.0-2)
    [2012-07-18 18:49] Updating font cache... done.
    [2012-07-18 18:49] installed xorg-fonts-misc (1.0.1-2)
    [2012-07-18 18:49] installed xorg-server-common (1.12.3-1)
    [2012-07-18 18:49] installed xf86-input-evdev (2.7.0-2)
    [2012-07-18 18:49] installed xorg-server (1.12.3-1)
    [2012-07-18 18:49] installed xextproto (7.2.1-1)
    [2012-07-18 18:49] installed libxext (1.3.1-1)
    [2012-07-18 18:49] installed libice (1.0.8-1)
    [2012-07-18 18:49] installed libsm (1.2.1-1)
    [2012-07-18 18:49] installed libxt (1.1.3-1)
    [2012-07-18 18:49] installed libxmu (1.1.1-1)
    [2012-07-18 18:49] installed xorg-xauth (1.0.7-1)
    [2012-07-18 18:49] installed xorg-xinit (1.3.2-1)
    [2012-07-18 18:49] installed xorg-iceauth (1.0.5-1)
    [2012-07-18 18:49] installed xorg-sessreg (1.0.7-1)
    [2012-07-18 18:49] installed xorg-xcmsdb (1.0.4-1)
    [2012-07-18 18:49] installed renderproto (0.11.1-2)
    [2012-07-18 18:49] installed libxrender (0.9.7-1)
    [2012-07-18 18:49] installed randrproto (1.3.2-2)
    [2012-07-18 18:49] installed libxrandr (1.3.2-2)
    [2012-07-18 18:49] installed xorg-xbacklight (1.1.2-3)
    [2012-07-18 18:49] installed xf86vidmodeproto (2.3.1-2)
    [2012-07-18 18:49] installed libxxf86vm (1.1.2-1)
    [2012-07-18 18:49] installed xorg-xgamma (1.0.5-1)
    [2012-07-18 18:49] installed xorg-xhost (1.0.5-1)
    [2012-07-18 18:49] installed xorg-xrandr (1.3.5-1)
    [2012-07-18 18:49] installed inputproto (2.2-1)
    [2012-07-18 18:49] installed libxi (1.6.1-1)
    [2012-07-18 18:49] installed xineramaproto (1.2.1-2)
    [2012-07-18 18:49] installed libxinerama (1.1.2-1)
    [2012-07-18 18:49] installed xorg-xinput (1.6.0-1)
    [2012-07-18 18:49] installed xorg-xmodmap (1.0.7-1)
    [2012-07-18 18:49] installed mcpp (2.7.2-4)
    [2012-07-18 18:49] installed xorg-xrdb (1.0.9-2)
    [2012-07-18 18:49] installed xorg-xrefresh (1.0.4-3)
    [2012-07-18 18:49] installed xorg-xset (1.2.2-1)
    [2012-07-18 18:49] installed fixesproto (5.0-2)
    [2012-07-18 18:49] installed libxfixes (5.0-2)
    [2012-07-18 18:49] installed libxcursor (1.1.13-1)
    [2012-07-18 18:49] installed xorg-xsetroot (1.1.0-3)
    [2012-07-18 18:49] installed xorg-server-utils (7.6-3)
    [2012-07-18 18:50] Running 'pacman -S nvidia nvidia-utils'
    [2012-07-18 18:50] Running 'pacman -S nvidia nvidia-utils lib32-nvidia-utils'
    [2012-07-18 18:51] installed videoproto (2.3.1-2)
    [2012-07-18 18:51] installed libxv (1.0.7-1)
    [2012-07-18 18:51] installed libxvmc (1.0.7-1)
    [2012-07-18 18:51] installed nvidia-utils (302.17-1)
    [2012-07-18 18:51] In order to use nvidia module, reboot the system.
    [2012-07-18 18:51] installed nvidia (302.17-3)
    [2012-07-18 18:51] installed lib32-glibc (2.16.0-2)
    [2012-07-18 18:51] installed lib32-libxdmcp (1.1.1-1)
    [2012-07-18 18:51] installed lib32-libxau (1.0.7-1)
    [2012-07-18 18:51] installed lib32-libxcb (1.8.1-2)
    [2012-07-18 18:51] installed lib32-libx11 (1.5.0-1)
    [2012-07-18 18:51] installed lib32-libxext (1.3.1-1)
    [2012-07-18 18:51] installed lib32-libxv (1.0.7-1)
    [2012-07-18 18:51] installed lib32-libxvmc (1.0.7-1)
    [2012-07-18 18:51] installed lib32-zlib (1.2.7-1)
    [2012-07-18 18:51] installed lib32-gcc-libs (4.7.1-4.1)
    [2012-07-18 18:51] installed lib32-nvidia-utils (302.17-1)
    [2012-07-18 18:55] Running 'pacman -S xorg-twm xorg-xclock xterm'
    [2012-07-18 18:55] installed xorg-twm (1.0.7-1)
    [2012-07-18 18:55] installed libxpm (3.5.10-1)
    [2012-07-18 18:55] installed libxaw (1.0.11-1)
    [2012-07-18 18:55] installed libxft (2.3.1-1)
    [2012-07-18 18:55] installed xorg-xclock (1.0.6-1)
    [2012-07-18 18:55] installed xorg-luit (1.1.1-1)
    [2012-07-18 18:55] installed xbitmaps (1.1.1-2)
    [2012-07-18 18:55] installed xterm (281-1)
    [2012-07-18 18:55] Running 'pacman -S dbus'
    [2012-07-18 18:55] installed dbus (1.6.2-1)
    [2012-07-18 18:56] Running 'pacman -S ttf-dejavu'
    [2012-07-18 18:56] installed ttf-dejavu (2.33-3)
    [2012-07-18 18:57] Running 'pacman -S awesome'
    [2012-07-18 18:57] installed libpng (1.5.11-1)
    [2012-07-18 18:57] installed cairo (1.12.2-2)
    [2012-07-18 18:57] installed libjpeg-turbo (1.2.1-1)
    [2012-07-18 18:57] installed libtiff (4.0.2-1)
    [2012-07-18 18:57] installed giflib (4.1.6-5)
    [2012-07-18 18:57] installed libid3tag (0.15.1b-7)
    [2012-07-18 18:57] installed imlib2 (1.4.5-2)
    [2012-07-18 18:57] installed libev (4.11-1)
    [2012-07-18 18:57] installed libxdg-basedir (1.2.0-1)
    [2012-07-18 18:57] installed lua (5.1.5-2)
    [2012-07-18 18:57] installed libdatrie (0.2.5-1)
    [2012-07-18 18:57] installed libthai (0.1.17-1)
    [2012-07-18 18:57] installed pango (1.30.1-1)
    [2012-07-18 18:57] installed xcb-util (0.3.9-1)
    [2012-07-18 18:57] installed startup-notification (0.12-3)
    [2012-07-18 18:57] installed xcb-util-image (0.3.9-1)
    [2012-07-18 18:57] installed xcb-util-keysyms (0.3.9-1)
    [2012-07-18 18:57] installed xcb-util-wm (0.3.9-1)
    [2012-07-18 18:57] installed xorg-xmessage (1.0.3-2)
    [2012-07-18 18:57] installed awesome (3.4.13-1)
    [2012-07-18 18:58] Running 'pacman -S rlwrap feh'
    [2012-07-18 18:58] installed rlwrap (0.37-2)
    [2012-07-18 18:58] installed giblib (1.2.4-5)
    [2012-07-18 18:58] installed libexif (0.6.20-2)
    [2012-07-18 18:58] installed feh (2.5-1)
    [2012-07-18 18:59] Running 'pacman -S packer'
    [2012-07-18 18:59] Running 'pacman -S lightdm'
    [2012-07-18 19:01] Running 'pacman -S fakeroot'
    [2012-07-18 19:01] upgraded fakeroot (1.18.4-1 -> 1.18.4-1)
    [2012-07-18 19:08] Running 'pacman -S git'
    [2012-07-18 19:08] installed perl-error (0.17018-1)
    [2012-07-18 19:08] installed git (1.7.11.2-1)
    [2012-07-18 19:08] Running 'pacman -S jshon'
    [2012-07-18 19:08] installed jansson (2.3-1)
    [2012-07-18 19:08] installed jshon (20111222-1)
    [2012-07-18 19:08] Running 'pacman -U packer-20120718-1-any.pkg.tar.xz'
    [2012-07-18 19:08] installed packer (20120718-1)
    [2012-07-18 19:10] Running 'pacman --noconfirm --asdeps -S -- accountsservice dbus-glib gobject-introspection intltool itstool libxklavier'
    [2012-07-18 19:10] installed polkit (0.105-1)
    [2012-07-18 19:10] installed accountsservice (0.6.22-1)
    [2012-07-18 19:10] installed dbus-glib (0.100-1)
    [2012-07-18 19:10] installed sqlite (3.7.13-1)
    [2012-07-18 19:10] installed python2 (2.7.3-2)
    [2012-07-18 19:10] installed gobject-introspection (1.32.1-2)
    [2012-07-18 19:10] installed perl-xml-parser (2.41-3)
    [2012-07-18 19:10] installed intltool (0.50.2-1)
    [2012-07-18 19:10] installed libxml2 (2.7.8-2)
    [2012-07-18 19:10] installed itstool (1.1.2-1)
    [2012-07-18 19:10] installed iso-codes (3.34-1)
    [2012-07-18 19:10] installed libxklavier (5.2.1-2)
    [2012-07-18 19:13] Running 'pacman -U lightdm-1.3.1-4-x86_64.pkg.tar.xz'
    [2012-07-18 19:14] You need to install lightdm-gtk-greeter to run the default and most stable greeter
    [2012-07-18 19:14] installed lightdm (1.3.1-4)
    [2012-07-18 19:14] Running 'pacman --noconfirm --asdeps -S -- archlinux-wallpaper bzr gnome-common gnome-doc-utils gtk-doc gtk-engines libwebkit vala'
    [2012-07-18 19:15] ==> Wallpapers have been installed to /usr/share/archlinux/wallpaper
    [2012-07-18 19:15] installed archlinux-wallpaper (1.4-1)
    [2012-07-18 19:15] installed bzr (2.5.1-1)
    [2012-07-18 19:15] installed gnome-common (3.4.0.1-2)
    [2012-07-18 19:15] installed libxslt (1.1.26-3)
    [2012-07-18 19:15] installed docbook-xml (4.5-5)
    [2012-07-18 19:15] installed rarian (0.8.1-2)
    [2012-07-18 19:15] installed gnome-doc-utils (0.20.10-1)
    [2012-07-18 19:15] installed docbook-xsl (1.77.1-2)
    [2012-07-18 19:15] installed gtk-doc (1.18-1)
    [2012-07-18 19:15] installed atk (2.4.0-1)
    [2012-07-18 19:15] installed compositeproto (0.4.2-2)
    [2012-07-18 19:15] installed libxcomposite (0.4.3-2)
    [2012-07-18 19:15] installed damageproto (1.2.1-2)
    [2012-07-18 19:15] installed libxdamage (1.1.3-2)
    [2012-07-18 19:15] installed shared-mime-info (1.0-1)
    [2012-07-18 19:15] installed libtasn1 (2.13-1)
    [2012-07-18 19:15] installed nettle (2.5-1)
    [2012-07-18 19:15] installed p11-kit (0.12-1)
    [2012-07-18 19:15] installed gnutls (3.0.21-1)
    [2012-07-18 19:15] installed libdaemon (0.14-2)
    [2012-07-18 19:15] ==> The following daemons may be added to DAEMONS in /etc/rc.conf:
    [2012-07-18 19:15] ==> avahi-daemon: the mdns responder, you probably want this.
    [2012-07-18 19:15] ==> dbus needs to be running when you start it.
    [2012-07-18 19:15] ==> avahi-dnsconfd: daemon used for peer-to-peer automatic dns
    [2012-07-18 19:15] ==> configuration on dhcp-less networks.
    [2012-07-18 19:15]
    [2012-07-18 19:15] ==> To use some of the client applications you will have to install python.
    [2012-07-18 19:15] ==> In addition, pygtk is required for the graphical ones and
    [2012-07-18 19:15] ==> twisted for avahi-bookmarks.
    [2012-07-18 19:15] installed avahi (0.6.31-3)
    [2012-07-18 19:15] installed libcups (1.5.3-5)
    [2012-07-18 19:15] installed gdk-pixbuf2 (2.26.1-1)
    [2012-07-18 19:15] installed gtk-update-icon-cache (2.24.10-3)
    [2012-07-18 19:15] installed gtk2 (2.24.10-3)
    [2012-07-18 19:15] installed gtk-engines (2.21.0-1)
    [2012-07-18 19:15] installed icu (49.1.2-1)
    [2012-07-18 19:15] installed gstreamer0.10 (0.10.36-1)
    [2012-07-18 19:15] installed orc (0.4.16-1)
    [2012-07-18 19:15] installed gstreamer0.10-base (0.10.36-1)
    [2012-07-18 19:15] installed libproxy (0.4.7-2)
    [2012-07-18 19:15] installed gsettings-desktop-schemas (3.4.2-1)
    [2012-07-18 19:15] installed glib-networking (2.32.3-1)
    [2012-07-18 19:15] installed libsoup (2.38.1-1)
    [2012-07-18 19:15] ==> aspell comes with no default dictionary
    [2012-07-18 19:15] installed aspell (0.60.6.1-1)
    [2012-07-18 19:15] installed hunspell (1.3.2-1)
    [2012-07-18 19:15] installed hspell (1.1-2)
    [2012-07-18 19:15] installed enchant (1.6.0-4)
    [2012-07-18 19:15] installed geoclue (0.12.0-5)
    [2012-07-18 19:15] installed libwebkit (1.8.1-1)
    [2012-07-18 19:15] installed vala (0.16.1-1)
    [2012-07-18 19:16] Running 'pacman -U lightdm-webkit-greeter-bzr-13-3-x86_64.pkg.tar.xz'
    [2012-07-18 19:16] Running 'pacman -U lightdm-webkit-greeter-0.1.2-3-x86_64.pkg.tar.xz'
    [2012-07-18 19:16] installed lightdm-webkit-greeter (0.1.2-3)
    [2012-07-18 19:47] Running 'pacman -R lightdm'
    [2012-07-18 19:48] Running 'pacman -R lightdm-webkit-greeter lightdm accountsservice dbus-glib libxklavier'
    [2012-07-18 19:48] Running 'pacman -R lightdm-webkit-greeter lightdm accountsservice enchant geoclue dbus-glib libxklavier'
    [2012-07-18 19:48] Running 'pacman -R lightdm-webkit-greeter lightdm accountsservice libwebkite enchant geoclue dbus-glib libxklavier'
    [2012-07-18 19:48] Running 'pacman -R lightdm-webkit-greeter lightdm accountsservice libwebkit enchant geoclue dbus-glib libxklavier'
    [2012-07-18 19:49] removed lightdm-webkit-greeter (0.1.2-3)
    [2012-07-18 19:49] removed libwebkit (1.8.1-1)
    [2012-07-18 19:49] removed geoclue (0.12.0-5)
    [2012-07-18 19:49] removed enchant (1.6.0-4)
    [2012-07-18 19:49] userdel: user lightdm is currently used by process 657
    [2012-07-18 19:49] groupdel: cannot remove the primary group of user 'lightdm'
    [2012-07-18 19:49] removed lightdm (1.3.1-4)
    [2012-07-18 19:49] removed libxklavier (5.2.1-2)
    [2012-07-18 19:49] removed dbus-glib (0.100-1)
    [2012-07-18 19:49] removed accountsservice (0.6.22-1)
    [2012-07-18 19:50] Running 'pacman -S chromium'
    [2012-07-18 19:50] installed dbus-glib (0.100-1)
    [2012-07-18 19:50] installed nspr (4.9.1-1)
    [2012-07-18 19:50] installed nss (3.13.5-1)
    [2012-07-18 19:50] installed xdg-utils (1.1.0-2.20120520)
    [2012-07-18 19:50] installed libevent (2.0.19-1)
    [2012-07-18 19:50] installed scrnsaverproto (1.2.2-1)
    [2012-07-18 19:50] installed libxss (1.2.2-1)
    [2012-07-18 19:50] installed desktop-file-utils (0.20-1)
    [2012-07-18 19:50] installed hicolor-icon-theme (0.12-2)
    [2012-07-18 19:50] installed chromium (20.0.1132.57-1)
    [2012-07-18 19:50] Running 'pacman -Sy abs'
    [2012-07-18 19:50] synchronizing package lists
    [2012-07-18 19:51] installed rsync (3.0.9-3)
    [2012-07-18 19:51] installed abs (2.4.3-2)
    [2012-07-18 19:52] Running 'pacman -S openjdk6 perl git gnupg flex bison gperf zip unzip wxgtk squashfs-tools ncurses libpng zlib libusb libusb-compat readline'
    [2012-07-18 19:53] installed ca-certificates-java (20120608-1)
    [2012-07-18 19:53] installed recordproto (1.14.2-1)
    [2012-07-18 19:53] installed libxtst (1.2.1-1)
    [2012-07-18 19:53] upgraded zlib (1.2.7-1 -> 1.2.7-1)
    [2012-07-18 19:53] upgraded libpng (1.5.11-1 -> 1.5.11-1)
    [2012-07-18 19:53] Warning: there was a problem reading the certificate file /etc/ssl/certs/NetLock_Arany_=Class_Gold=_F?tan?s?tv?ny.pem. Message:
    [2012-07-18 19:53] /etc/ssl/certs/NetLock_Arany_=Class_Gold=_F?tan?s?tv?ny.pem (No such file or directory)
    [2012-07-18 19:53] Warning: there was a problem reading the certificate file /etc/ssl/certs/AC_Ra?z_Certic?mara_S.A..pem. Message:
    [2012-07-18 19:53] /etc/ssl/certs/AC_Ra?z_Certic?mara_S.A..pem (No such file or directory)
    [2012-07-18 19:53] Warning: there was a problem reading the certificate file /etc/ssl/certs/Certinomis_-_Autorit?_Racine.pem. Message:
    [2012-07-18 19:53] /etc/ssl/certs/Certinomis_-_Autorit?_Racine.pem (No such file or directory)
    [2012-07-18 19:53] Warning: there was a problem reading the certificate file /etc/ssl/certs/T?B?TAK_UEKAE_K?k_Sertifika_Hizmet_Sa?lay?c?s?_-_S?r?m_3.pem. Message:
    [2012-07-18 19:53] /etc/ssl/certs/T?B?TAK_UEKAE_K?k_Sertifika_Hizmet_Sa?lay?c?s?_-_S?r?m_3.pem (No such file or directory)
    [2012-07-18 19:53] Warning: there was a problem reading the certificate file /etc/ssl/certs/EBG_Elektronik_Sertifika_Hizmet_Sa?lay?c?s?.pem. Message:
    [2012-07-18 19:53] /etc/ssl/certs/EBG_Elektronik_Sertifika_Hizmet_Sa?lay?c?s?.pem (No such file or directory)
    [2012-07-18 19:53] done.
    [2012-07-18 19:53] when you use a non-reparenting window manager
    [2012-07-18 19:53] set _JAVA_AWT_WM_NONREPARENTING=1 in
    [2012-07-18 19:53] /etc/profile.d/openjdk6.sh
    [2012-07-18 19:53] installed openjdk6 (6.b24_1.11.3-1)
    [2012-07-18 19:53] upgraded perl (5.16.0-2 -> 5.16.0-2)
    [2012-07-18 19:53] upgraded git (1.7.11.2-1 -> 1.7.11.2-1)
    [2012-07-18 19:53] upgraded ncurses (5.9-3 -> 5.9-3)
    [2012-07-18 19:53] upgraded readline (6.2.003-2 -> 6.2.003-2)
    [2012-07-18 19:53] upgraded gnupg (2.0.19-2 -> 2.0.19-2)
    [2012-07-18 19:53] upgraded flex (2.5.35-5 -> 2.5.35-5)
    [2012-07-18 19:53] upgraded bison (2.5.1-1 -> 2.5.1-1)
    [2012-07-18 19:53] installed gperf (3.0.4-4)
    [2012-07-18 19:53] installed zip (3.0-3)
    [2012-07-18 19:53] installed unzip (6.0-6)
    [2012-07-18 19:53] installed wxgtk (2.8.12.1-3)
    [2012-07-18 19:53] installed lzo2 (2.06-1)
    [2012-07-18 19:53] installed squashfs-tools (4.2-2)
    [2012-07-18 19:53] upgraded libusbx (1.0.12-2 -> 1.0.12-2)
    [2012-07-18 19:53] installed libusb-compat (0.1.4-2)
    [2012-07-18 19:53] Running 'pacman -S -- esdl schedtool'
    [2012-07-18 19:54] installed erlang (R15B01-1)
    [2012-07-18 19:54] installed sdl (1.2.15-1)
    [2012-07-18 19:54] installed dri2proto (2.6-1)
    [2012-07-18 19:54] installed glproto (1.4.15-1)
    [2012-07-18 19:54] installed mesa (8.0.4-1)
    [2012-07-18 19:54] installed esdl (2:1.2-1)
    [2012-07-18 19:54] installed schedtool (1.3.0-2)
    [2012-07-18 19:55] Running 'pacman -U pngcrush-1.7.31-1-x86_64.pkg.tar.xz'
    [2012-07-18 19:55] installed pngcrush (1.7.31-1)
    [2012-07-18 19:55] Running 'pacman -U repo-1.17-1-x86_64.pkg.tar.xz'
    [2012-07-18 19:55] installed repo (1.17-1)
    [2012-07-18 19:59] Running 'pacman -S terminator'
    [2012-07-18 19:59] installed vte-common (0.32.2-1)
    [2012-07-18 19:59] installed vte (0.28.2-3)
    [2012-07-18 19:59] installed libglade (2.6.4-3)
    [2012-07-18 19:59] installed python2-cairo (1.10.0-1)
    [2012-07-18 19:59] installed pygobject2-devel (2.28.6-6)
    [2012-07-18 19:59] installed python2-gobject2 (2.28.6-6)
    [2012-07-18 19:59] installed pygtk (2.24.0-3)
    [2012-07-18 19:59] installed terminator (0.96-1)
    [2012-07-18 20:00] Running 'pacman -Sy gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-libusb lib32-libusb-compat lib32-readline lib32-glibc lib32-zlib'
    [2012-07-18 20:00] synchronizing package lists
    [2012-07-18 20:00] Running 'pacman -Sy gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-libusb-compat lib32-readline lib32-glibc lib32-zlib'
    [2012-07-18 20:00] synchronizing package lists
    [2012-07-18 20:00] Running 'pacman -Sy gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-readline lib32-glibc lib32-zlib'
    [2012-07-18 20:00] synchronizing package lists
    [2012-07-18 20:01] removed gcc-libs (4.7.1-4)
    [2012-07-18 20:01] removed binutils (2.22-9)
    [2012-07-18 20:01] removed gcc (4.7.1-4)
    [2012-07-18 20:01] removed libtool (2.4.2-6)
    [2012-07-18 20:01] installed gcc-libs-multilib (4.7.1-4.1)
    [2012-07-18 20:01] installed binutils-multilib (2.22-8)
    [2012-07-18 20:01] installed gcc-multilib (4.7.1-4.1)
    [2012-07-18 20:01] upgraded lib32-glibc (2.16.0-2 -> 2.16.0-2)
    [2012-07-18 20:01] installed lib32-libltdl (2.4.2-6)
    [2012-07-18 20:01] installed libtool-multilib (2.4.2-6)
    [2012-07-18 20:01] installed lib32-ncurses (5.9-1)
    [2012-07-18 20:01] installed lib32-readline (6.2.003-1)
    [2012-07-18 20:01] upgraded lib32-zlib (1.2.7-1 -> 1.2.7-1)
    [2012-07-18 20:07] Running 'pacman -S ssh'
    [2012-07-18 20:10] Running 'pacman -S ssh-keygen'
    [2012-07-18 20:10] Running 'pacman -S openssh'
    [2012-07-18 20:10] installed libedit (20120311_3.0-1)
    [2012-07-18 20:10] installed dnssec-anchors (20120422-1)
    [2012-07-18 20:10] installed ldns (1.6.13-1)
    [2012-07-18 20:10] installed openssh (6.0p1-3)
    [2012-07-18 20:11] Running 'pacman -S pbcopy'
    [2012-07-18 20:11] Running 'pacman -S copy'
    [2012-07-18 20:13] Running 'pacman -S gedit'
    [2012-07-18 20:13] installed lcms2 (2.3-2)
    [2012-07-18 20:13] installed libgusb (0.1.3-1)
    [2012-07-18 20:13] installed gd (2.0.36RC1-5)
    [2012-07-18 20:13] installed libgphoto2 (2.4.14-1)
    [2012-07-18 20:13] installed libieee1284 (0.2.11-4)
    [2012-07-18 20:13] installed v4l-utils (0.8.8-1)
    [2012-07-18 20:13] installed net-snmp (5.7.1-3)
    [2012-07-18 20:13] NOTE
    [2012-07-18 20:13] ----
    [2012-07-18 20:13] Add your user to group 'scanner' to use scanner devices.
    [2012-07-18 20:13] installed sane (1.0.22-9)
    [2012-07-18 20:13] installed shared-color-profiles (0.1.5-1)
    [2012-07-18 20:13] installed colord (0.1.21-2)
    [2012-07-18 20:13] installed gtk3 (3.4.3-1)
    [2012-07-18 20:13] installed gtksourceview3 (3.4.2-1)
    [2012-07-18 20:13] installed libpeas (1.4.0-2)
    [2012-07-18 20:13] installed enchant (1.6.0-4)
    [2012-07-18 20:13] installed pygobject-devel (3.2.2-1)
    [2012-07-18 20:13] installed python2-gobject (3.2.2-1)
    [2012-07-18 20:13] installed dconf (0.12.1-2)
    [2012-07-18 20:13] installed gedit (3.4.2-1)
    [2012-07-18 20:15] Running 'pacman -S python'
    [2012-07-18 20:16] installed python (3.2.3-3)
    [2012-07-18 20:26] Running 'pacman -S xclip'
    [2012-07-18 20:26] installed xclip (0.12-3)
    [2012-07-18 20:37] Running 'pacman --noconfirm --asdeps -S -- lib32-alsa-lib lib32-libstdc++5 lib32-openal lib32-sdl swt'
    [2012-07-18 20:37] installed lib32-alsa-lib (1.0.25-1)
    [2012-07-18 20:37] installed lib32-libstdc++5 (3.3.6-6)
    [2012-07-18 20:37] installed openal (1.14-1)
    [2012-07-18 20:37] installed lib32-openal (1.14-1)
    [2012-07-18 20:37] installed lib32-libxrender (0.9.7-1)
    [2012-07-18 20:37] installed lib32-sdl (1.2.15-2)
    [2012-07-18 20:37] installed swt (3.7.2-1)
    [2012-07-18 20:45] Running 'pacman --asdeps -U android-sdk-r20-2-x86_64.pkg.tar.xz'
    [2012-07-18 20:50] You need to source /etc/profile or relogin to add the Android SDK tools to your path.
    [2012-07-18 20:50] The android group has been removed, install android packages as root.
    [2012-07-18 20:50] installed android-sdk (r20-2)
    [2012-07-18 20:51] Running 'pacman -U android-sdk-r20-2-x86_64.pkg.tar.xz'
    [2012-07-18 20:54] You need to source /etc/profile or relogin to add the Android SDK tools to your path.
    [2012-07-18 20:54] The android group has been removed, install android packages as root.
    [2012-07-18 20:54] upgraded android-sdk (r20-2 -> r20-2)
    [2012-07-18 20:59] Running 'pacman -U android-sdk-platform-tools-r12-1-any.pkg.tar.xz'
    [2012-07-18 20:59] installed android-sdk-platform-tools (r12-1)
    [2012-07-18 21:10] Running 'pacman -S perl-switch'
    [2012-07-18 21:10] installed perl-switch (2.16-1)
    [2012-07-21 03:29] Running 'pacman -S flashplugin'
    [2012-07-21 03:29] relogin or source /etc/profile.d/mozilla-common.sh
    [2012-07-21 03:29] installed mozilla-common (1.4-3)
    [2012-07-21 03:29] >>
    [2012-07-21 03:29] >> If you have an NVIDIA card that supports libvdpau or Broadcom Crystal HD chips,
    [2012-07-21 03:29] >> uncomment EnableLinuxHWVideoDecode=1 from /etc/adobe/mms.cfg.
    [2012-07-21 03:29] >> If you run into problems, please contact nVidia or Broadcom along with your system config info / driver version.
    [2012-07-21 03:29] >>
    [2012-07-21 03:29] installed flashplugin (11.2.202.236-1)
    [2012-07-21 03:32] Running 'pacman -S libvdpau'
    [2012-07-21 03:32] installed libvdpau (0.4.1-2)
    [2012-07-21 14:53] Running 'pacman -S gedit-common'
    [2012-07-21 14:55] Running 'pacman -S gtk-theme-switch2'
    [2012-07-21 14:56] installed gtk-theme-switch2 (2.1.0-2)
    [2012-07-21 15:00] Running 'pacman -S gtk-icons'
    [2012-07-21 15:04] Running 'pacman -R gtk-theme-switch2 gedit dconf desktop-file-utils enchant gsettings-desktop-schemas gtksourceview3 iso-codes libpeas libsm python2-gobject'
    [2012-07-21 15:06] Running 'pacman -R gtk-theme-switch2 gedit dconf enchant gtksourceview3 iso-codes libpeas python2-gobject'
    [2012-07-21 15:06] removed gedit (3.4.2-1)
    [2012-07-21 15:06] removed python2-gobject (3.2.2-1)
    [2012-07-21 15:06] removed libpeas (1.4.0-2)
    [2012-07-21 15:06] removed iso-codes (3.34-1)
    [2012-07-21 15:06] removed gtksourceview3 (3.4.2-1)
    [2012-07-21 15:06] removed enchant (1.6.0-4)
    [2012-07-21 15:06] removed dconf (0.12.1-2)
    [2012-07-21 15:06] removed gtk-theme-switch2 (2.1.0-2)
    [2012-07-21 15:06] Running 'pacman -R glib-networking gsettings-desktop-schemas'
    [2012-07-21 15:06] Running 'pacman -R libsoup glib-networking gsettings-desktop-schemas'
    [2012-07-21 15:06] removed libsoup (2.38.1-1)
    [2012-07-21 15:06] removed glib-networking (2.32.3-1)
    [2012-07-21 15:06] removed gsettings-desktop-schemas (3.4.2-1)
    [2012-07-21 15:07] Running 'pacman -R wxgtk'
    [2012-07-21 15:07] removed wxgtk (2.8.12.1-3)
    [2012-07-21 15:07] Running 'pacman -R libxt libsm'
    [2012-07-21 15:11] Running 'pacman -S ranger'
    [2012-07-21 15:11] installed ranger (1.5.4-1)
    [2012-07-21 15:32] Running 'pacman -S irssi'
    [2012-07-21 15:32] installed irssi (0.8.15-6)
    [2012-07-24 20:20] Running 'pacman -U sublime-text-2.0.1-1-x86_64.pkg.tar.xz'
    [2012-07-24 20:20] installed sublime-text (2.0.1-1)
    [2012-07-24 23:41] Running 'pacman -U dropbox-1.4.11-1-x86_64.pkg.tar.xz'
    [2012-07-24 23:41] installed dropbox (1.4.11-1)
    [2012-07-24 23:41] Running 'pacman -U dropbox-daemon-0.8-8-any.pkg.tar.xz'
    [2012-07-24 23:41] >> Configure the Dropbox daemon script by editing /etc/conf.d/dropboxd.conf
    [2012-07-24 23:41] installed dropbox-daemon (0.8-8)
    [2012-07-24 23:48] Running 'pacman -U dropbox-cli-1-12-x86_64.pkg.tar.xz'
    [2012-07-24 23:48] installed dropbox-cli (1-12)
    [2012-07-24 23:49] Running 'pacman -S nautilus'
    [2012-07-24 23:56] Running 'pacman -S ranger'
    [2012-07-24 23:57] upgraded ranger (1.5.4-1 -> 1.5.4-1)
    [2012-07-25 00:23] Running 'pacman --noconfirm --asdeps -S -- gconf qt qtwebkit'
    [2012-07-25 00:23] Running 'pacman --noconfirm --asdeps -S -- gconf qt qtwebkit'
    [2012-07-25 00:23] Running 'pacman -Sy'
    [2012-07-25 00:23] synchronizing package lists
    [2012-07-25 00:24] Running 'pacman --noconfirm --asdeps -S -- gconf qt qtwebkit'
    [2012-07-25 00:25] installed gconf (3.2.5-2)
    [2012-07-25 00:25] installed libmng (1.0.10-4)
    [2012-07-25 00:25] installed qt (4.8.2-3)
    [2012-07-25 00:25] installed qtwebkit (2.2.2-1)
    [2012-07-25 00:27] Running 'pacman --asdeps -U openssl098-0.9.8.x-1-x86_64.pkg.tar.xz'
    [2012-07-25 00:27] installed openssl098 (0.9.8.x-1)
    [2012-07-25 00:28] Running 'pacman --asdeps -U libpng12-1.2.49-1-x86_64.pkg.tar.xz'
    [2012-07-25 00:28] installed libpng12 (1.2.49-1)
    [2012-07-25 00:30] Running 'pacman -U spotify-0.8.4.103-1-x86_64.pkg.tar.xz'
    [2012-07-25 00:31] installed spotify (0.8.4.103-1)
    [2012-07-29 16:57] Running 'pacman --noconfirm --asdeps -S -- ffmpeg libmediainfo mencoder mplayer'
    [2012-07-29 16:58] Running 'pacman --noconfirm --asdeps -S -- ffmpeg libmediainfo mencoder mplayer'
    [2012-07-29 16:58] Running 'pacman -Syy'
    [2012-07-29 16:58] synchronizing package lists
    [2012-07-29 17:00] Running 'pacman --noconfirm --asdeps -S -- ffmpeg libmediainfo mencoder mplayer'
    [2012-07-29 17:00] installed gsm (1.0.13-7)
    [2012-07-29 17:00] installed lame (3.99.5-1)
    [2012-07-29 17:00] installed libasyncns (0.8-4)
    [2012-07-29 17:00] installed json-c (0.9-1)
    [2012-07-29 17:00] installed libpulse (2.1-1)
    [2012-07-29 17:00] installed libtheora (1.1.1-2)
    [2012-07-29 17:00] installed libglapi (8.0.4-2)
    [2012-07-29 17:00] installed khrplatform-devel (8.0.4-2)
    [2012-07-29 17:00] installed libegl (8.0.4-2)
    [2012-07-29 17:00] installed libva (1.1.0-1)
    [2012-07-29 17:00] installed libvpx (1.1.0-1)
    [2012-07-29 17:00] installed opencore-amr (0.1.3-1)
    [2012-07-29 17:00] installed openjpeg (1.5.0-1)
    [2012-07-29 17:00] installed rtmpdump (2.4-1)
    [2012-07-29 17:00] installed schroedinger (1.0.11-1)
    [2012-07-29 17:00] installed speex (1.2rc1-2)
    [2012-07-29 17:00] installed x264 (20120705-1)
    [2012-07-29 17:00] installed xvidcore (1.3.2-1)
    [2012-07-29 17:00] installed ffmpeg (1:0.11.1-1)
    [2012-07-29 17:00] installed libmms (0.6.2-1)
    [2012-07-29 17:00] installed libzen (0.4.26-1)
    [2012-07-29 17:00] installed libmediainfo (0.7.58-1)
    [2012-07-29 17:00] installed recode (3.6-7)
    [2012-07-29 17:00] installed enca (1.13-2)
    [2012-07-29 17:00] installed a52dec (0.7.4-6)
    [2012-07-29 17:00] installed libdca (0.0.5-3)
    [2012-07-29 17:00] installed talloc (2.0.7-1)
    [2012-07-29 17:00] installed libwbclient (3.6.6-1)
    [2012-07-29 17:00] installed libcap-ng (0.6.6-1)
    [2012-07-29 17:00] installed cifs-utils (5.5-1)
    [2012-07-29 17:00] installed tdb (1.2.9-2)
    [2012-07-29 17:00] installed smbclient (3.6.6-1)
    [2012-07-29 17:00] installed libmad (0.15.1b-6)
    [2012-07-29 17:00] installed fribidi (0.19.2-2)
    [2012-07-29 17:00] installed libmp4v2 (2.0.0-2)
    [2012-07-29 17:00] installed faac (1.28-4)
    [2012-07-29 17:00] installed faad2 (2.7-3)
    [2012-07-29 17:00] installed mpg123 (1.14.4-1)
    [2012-07-29 17:00] installed libass (0.10.0-3)
    [2012-07-29 17:00] installed libbluray (0.2.2-1)
    [2012-07-29 17:00] installed libcddb (1.3.2-3)
    [2012-07-29 17:00] installed libcdio (0.83-1)
    [2012-07-29 17:00] installed mencoder (35014-1)
    [2012-07-29 17:00] installed libftdi (0.20-1)
    [2012-07-29 17:00] installed libirman (0.4.5-3)
    [2012-07-29 17:00] installed lirc-utils (1:0.9.0-22)
    [2012-07-29 17:00] installed gpm (1.20.6-10)
    [2012-07-29 17:00] installed aalib (1.4rc5-9)
    [2012-07-29 17:00] installed jack (0.121.3-6)
    [2012-07-29 17:00] installed libcaca (0.99.beta18-1)
    [2012-07-29 17:00] installed xf86dgaproto (2.1-2)
    [2012-07-29 17:00] installed libxxf86dga (1.1.3-1)
    [2012-07-29 17:00] installed mplayer (35014-1)
    [2012-07-29 17:00] Running 'pacman -U pms-1.60.0-1-x86_64.pkg.tar.xz'
    [2012-07-29 17:00] installed pms (1.60.0-1)
    [2012-07-29 17:20] Running 'pacman -S netstat'
    [2012-07-29 17:31] Running 'pacman -S ntfs-3g'
    [2012-07-29 17:31] installed fuse (2.9.0-1)
    [2012-07-29 17:31] installed ntfs-3g (2012.1.15-3)
    [2012-07-29 17:45] Running 'pacman -S tsmuxer'
    [2012-07-29 17:45] Running 'pacman -S tsMuxeR'
    [2012-07-29 17:45] Running 'pacman --noconfirm --asdeps -S -- lib32-freetype2'
    [2012-07-29 17:45] installed lib32-bzip2 (1.0.6-1)
    [2012-07-29 17:45] installed lib32-freetype2 (2.4.10-1)
    [2012-07-29 17:48] Running 'pacman -U tsmuxer-1.10.6-12-x86_64.pkg.tar.xz'
    [2012-07-29 17:48] The tsmuxer package is licensed software.
    [2012-07-29 17:48] You MUST read and agree to the license stored in
    [2012-07-29 17:48] /opt/tsmuxer/LICENSE before using it.
    [2012-07-29 17:48] installed tsmuxer (1.10.6-12)
    [2012-07-29 18:23] Running 'pacman -S icedtea-web-java7'
    [2012-07-29 18:23] Running 'pacman -S icedtea-web-java6'
    [2012-07-29 18:24] Running 'pacman -S openjre'
    [2012-07-29 18:25] Running 'pacman -S jre'
    [2012-07-29 18:25] Running 'pacman -S icetea-plugin'
    [2012-07-29 18:27] Running 'pacman -S icedtea-web'
    [2012-07-29 18:27] installed icedtea-web (1.2-1)
    [2012-07-29 18:35] Running 'pacman -S ccache'
    [2012-07-29 18:35] installed ccache (3.1.7-1)
    [2012-07-29 18:50] Running 'pacman -S rtorrent'
    [2012-07-29 18:50] installed libsigc++ (2.2.10-2)
    [2012-07-29 18:50] installed libtorrent (0.13.2-2)
    [2012-07-29 18:50] installed xmlrpc-c (1:1.31.02-2)
    [2012-07-29 18:50] installed rtorrent (0.9.2-2)
    [2012-07-29 18:52] Running 'pacman -S rutorrent'
    [2012-07-29 18:52] Running 'pacman --noconfirm --asdeps -S -- php'
    [2012-07-29 18:52] installed php (5.4.5-1)
    [2012-07-29 18:52] Running 'pacman -U rutorrent-3.4-2-any.pkg.tar.xz'
    [2012-07-29 18:53] installed rutorrent (3.4-2)
    [2012-07-29 18:53] Running 'pacman -R rtorrent'
    [2012-07-29 18:53] removed rtorrent (0.9.2-2)
    [2012-07-29 18:53] Running 'pacman -S rtorrent-svn'
    [2012-07-29 18:54] Running 'pacman -S rtorrent'
    [2012-07-29 18:54] installed rtorrent (0.9.2-2)
    [2012-07-29 18:54] Running 'pacman -S apache php-apache php-cgi mod-scgi php-xsl rutorrent-plugins php-geoip screen'
    [2012-07-29 18:55] Running 'pacman -S apache php-apache php-cgi php-xsl rutorrent-plugins php-geoip screen'
    [2012-07-29 18:55] Running 'pacman -S apache php-apache php-cgi php-xsl php-geoip screen'
    [2012-07-29 18:55] installed apr (1.4.6-1)
    [2012-07-29 18:55] installed unixodbc (2.3.1-1)
    [2012-07-29 18:55] installed apr-util (1.4.1-1)
    [2012-07-29 18:55] installed apache (2.2.22-4)
    [2012-07-29 18:55] installed php-apache (5.4.5-1)
    [2012-07-29 18:55] installed php-cgi (5.4.5-1)
    [2012-07-29 18:55] installed php-xsl (5.4.5-1)
    [2012-07-29 18:55] installed geoip-database (20120706-1)
    [2012-07-29 18:55] installed geoip (1.4.8-2)
    [2012-07-29 18:55] installed php-geoip (1.0.8-2)
    [2012-07-29 18:55] installed screen (4.0.3-13)
    [2012-07-29 19:03] Running 'pacman -U mod_scgi-1.14-1-x86_64.pkg.tar.xz'
    [2012-07-29 19:03] installed mod_scgi (1.14-1)
    [2012-07-29 19:03] Running 'pacman -U rutorrent-plugins-3.4-2-any.pkg.tar.xz'
    [2012-07-29 19:03] installed rutorrent-plugins (3.4-2)
    [2012-07-29 19:04] Running 'pacman -U rutorrent-3.4-2-any.pkg.tar.xz'
    [2012-07-29 19:04] upgraded rutorrent (3.4-2 -> 3.4-2)
    [2012-07-29 19:46] Running 'pacman -S unrar unzip'
    [2012-07-29 19:46] installed unrar (4.2.4-1)
    [2012-07-29 19:46] upgraded unzip (6.0-6 -> 6.0-6)
    [2012-07-29 20:00] Running 'pacman -S php-apache mysql'
    [2012-07-29 20:02] upgraded php-apache (5.4.5-1 -> 5.4.5-1)
    [2012-07-29 20:02] installed libmysqlclient (5.5.25.a-1)
    [2012-07-29 20:02] installed mysql-clients (5.5.25.a-1)
    [2012-07-29 20:02] Installing MySQL system tables...
    [2012-07-29 20:02] OK
    [2012-07-29 20:02] Filling help tables...
    [2012-07-29 20:02] OK
    [2012-07-29 20:02]
    [2012-07-29 20:02] To start mysqld at boot time you have to copy
    [2012-07-29 20:02] support-files/mysql.server to the right place for your system
    [2012-07-29 20:02]
    [2012-07-29 20:02] PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
    [2012-07-29 20:02] To do so, start the server, then issue the following commands:
    [2012-07-29 20:02]
    [2012-07-29 20:02] /usr/bin/mysqladmin -u root password 'new-password'
    [2012-07-29 20:02] /usr/bin/mysqladmin -u root -h arch-shauder password 'new-password'
    [2012-07-29 20:02]
    [2012-07-29 20:02] Alternatively you can run:
    [2012-07-29 20:02] /usr/bin/mysql_secure_installation
    [2012-07-29 20:02]
    [2012-07-29 20:02] which will also give you the option of removing the test
    [2012-07-29 20:02] databases and anonymous user created by default. This is
    [2012-07-29 20:02] strongly recommended for production servers.
    [2012-07-29 20:02]
    [2012-07-29 20:02] See the manual for more instructions.
    [2012-07-29 20:02]
    [2012-07-29 20:02] You can start the MySQL daemon with:
    [2012-07-29 20:02] cd /usr ; /usr/bin/mysqld_safe &
    [2012-07-29 20:02]
    [2012-07-29 20:02] You can test the MySQL daemon with mysql-test-run.pl
    [2012-07-29 20:02] cd /usr/mysql-test ; perl mysql-test-run.pl
    [2012-07-29 20:02]
    [2012-07-29 20:02] Please report any problems with the /usr/scripts/mysqlbug script!
    [2012-07-29 20:02]
    [2012-07-29 20:02] installed mysql (5.5.25.a-1)
    [2012-07-29 20:49] Running 'pacman -Syyu'
    [2012-07-29 20:49] synchronizing package lists
    [2012-07-29 20:50] starting full system upgrade
    [2012-07-29 20:52] upgraded readline (6.2.003-2 -> 6.2.004-1)
    [2012-07-29 20:52] upgraded bash (4.2.036-1 -> 4.2.037-1)
    [2012-07-29 20:52] upgraded bison (2.5.1-1 -> 2.6-1)
    [2012-07-29 20:52] upgraded lib32-gcc-libs (4.7.1-4.1 -> 4.7.1-5)
    [2012-07-29 20:52] upgraded gcc-libs-multilib (4.7.1-4.1 -> 4.7.1-5)
    [2012-07-29 20:52] upgraded gnutls (3.0.21-1 -> 3.0.21-2)
    [2012-07-29 20:52] upgraded libpng (1.5.11-1 -> 1.5.12-1)
    [2012-07-29 20:52] upgraded libcups (1.5.3-5 -> 1.5.4-1)
    [2012-07-29 20:52] upgraded gtk-update-icon-cache (2.24.10-3 -> 2.24.11-2)
    [2012-07-29 20:52] upgraded gtk2 (2.24.10-3 -> 2.24.11-2)
    [2012-07-29 20:52] upgraded chromium (20.0.1132.57-1 -> 20.0.1132.57-2)
    [2012-07-29 20:52] warning: /etc/protocols installed as /etc/protocols.pacnew
    [2012-07-29 20:52] warning: /etc/services installed as /etc/services.pacnew
    [2012-07-29 20:52] upgraded iana-etc (2.30-2 -> 2.30-3)
    [2012-07-29 20:52] upgraded filesystem (2012.6-4 -> 2012.7-1)
    [2012-07-29 20:52] upgraded libsystemd (186-2 -> 187-2)
    [2012-07-29 20:52] upgraded glib2 (2.32.3-1 -> 2.32.4-1)
    [2012-07-29 20:52] upgraded systemd-tools (186-2 -> 187-2)
    [2012-07-29 20:52] upgraded dbus-core (1.6.2-2 -> 1.6.4-1)
    [2012-07-29 20:52] upgraded dbus (1.6.2-1 -> 1.6.4-1)
    [2012-07-29 20:52] upgraded flex (2.5.35-5 -> 2.5.36-1)
    [2012-07-29 20:52] upgraded gcc-multilib (4.7.1-4.1 -> 4.7.1-5)
    [2012-07-29 20:52] upgraded git (1.7.11.2-1 -> 1.7.11.3-1)
    [2012-07-29 20:52] upgraded glproto (1.4.15-1 -> 1.4.16-1)
    [2012-07-29 20:52] upgraded gtk3 (3.4.3-1 -> 3.4.4-1)
    [2012-07-29 20:52] upgraded icu (49.1.2-1 -> 49.1.2-2)
    [2012-07-29 20:52] warning: /etc/rc.conf installed as /etc/rc.conf.pacnew
    [2012-07-29 20:52] upgraded initscripts (2012.06.3-2 -> 2012.07.5-1)
    [2012-07-29 20:52] upgraded lib32-readline (6.2.003-1 -> 6.2.004-1)
    [2012-07-29 20:52] >>> Updating module dependencies. Please wait ...
    [2012-07-29 20:52] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    [2012-07-29 20:52] ==> Building image from preset: 'default'
    [2012-07-29 20:52] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    [2012-07-29 20:52] ==> Starting build: 3.4.6-1-ARCH
    [2012-07-29 20:52] -> Running build hook: [base]
    [2012-07-29 20:52] -> Running build hook: [udev]
    [2012-07-29 20:52] -> Running build hook: [autodetect]
    [2012-07-29 20:52] -> Running build hook: [pata]
    [2012-07-29 20:52] -> Running build hook: [scsi]
    [2012-07-29 20:52] -> Running build hook: [sata]
    [2012-07-29 20:52] -> Running build hook: [filesystems]
    [2012-07-29 20:52] -> Running build hook: [usbinput]
    [2012-07-29 20:52] -> Running build hook: [fsck]
    [2012-07-29 20:52] ==> Generating module dependencies
    [2012-07-29 20:52] ==> Creating gzip initcpio image: /boot/initramfs-linux.img
    [2012-07-29 20:52] ==> Image generation successful
    [2012-07-29 20:52] ==> Building image from preset: 'fallback'
    [2012-07-29 20:52] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    [2012-07-29 20:52] ==> Starting build: 3.4.6-1-ARCH
    [2012-07-29 20:52] -> Running build hook: [base]
    [2012-07-29 20:52] -> Running build hook: [udev]
    [2012-07-29 20:52] -> Running build hook: [pata]
    [2012-07-29 20:52] -> Running build hook: [scsi]
    [2012-07-29 20:52] -> Running build hook: [sata]
    [2012-07-29 20:52] -> Running build hook: [filesystems]
    [2012-07-29 20:52] -> Running build hook: [usbinput]
    [2012-07-29 20:52] -> Running build hook: [fsck]
    [2012-07-29 20:52] ==> Generating module dependencies
    [2012-07-29 20:52] ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
    [2012-07-29 20:52] ==> Image generation successful
    [2012-07-29 20:52] upgraded linux (3.4.5-1 -> 3.4.6-1)
    [2012-07-29 20:52] upgraded linux-api-headers (3.4.4-1 -> 3.4.6-1)
    [2012-07-29 20:52] upgraded mesa (8.0.4-1 -> 8.0.4-2)
    [2012-07-29 20:52] upgraded nvidia (302.17-3 -> 302.17-4)
    [2012-07-29 20:52] upgraded tzdata (2012c-1 -> 2012d-1)
    [2012-07-29 20:52] upgraded xf86-input-evdev (2.7.0-2 -> 2.7.1-1)
    [2012-08-03 12:40] Running 'pacman -S filezilla'
    [2012-08-03 12:40] installed wxgtk (2.8.12.1-3)
    [2012-08-03 12:40] installed libidn (1.25-1)
    [2012-08-03 12:40] installed filezilla (3.5.3-1)
    [2012-08-06 13:55] Running 'pacman -R openjdk'
    [2012-08-06 13:55] Running 'pacman -R openjdk6'
    [2012-08-06 13:55] Running 'pacman -R icedtea-web'
    [2012-08-06 13:55] removed icedtea-web (1.2-1)
    [2012-08-06 13:56] Running 'pacman -S jdk'
    [2012-08-06 13:57] Running 'pacman --asdeps -U jre-7.5-2-x86_64.pkg.tar.xz'
    [2012-08-06 13:58] removed openjdk6 (6.b24_1.11.3-1)
    [2012-08-06 13:58]
    [2012-08-06 13:58] The jre package is licensed software.
    [2012-08-06 13:58] You MUST read and agree to the license stored in
    [2012-08-06 13:58] /usr/share/licenses/jre/LICENSE before using it.
    [2012-08-06 13:58] Please relogin to include jre in your PATH.
    [2012-08-06 13:58]
    [2012-08-06 13:58] installed jre (7.5-2)
    [2012-08-06 14:01] Running 'pacman -U jdk-7.5-2-x86_64.pkg.tar.xz'
    [2012-08-06 14:01]
    [2012-08-06 14:01] The jdk package is licensed software.
    [2012-08-06 14:01] You MUST read and agree to the license stored in
    [2012-08-06 14:01] /usr/share/licenses/jdk/LICENSE before using it.
    [2012-08-06 14:01] Please relogin to include jdk in your PATH.
    [2012-08-06 14:01]
    [2012-08-06 14:01] installed jdk (7.5-2)
    [2012-08-06 14:14] Running 'pacman --asdeps -U jre6-6u33-b04-x86_64.pkg.tar.xz'
    [2012-08-06 14:15] Running 'pacman -R jdk jre'
    [2012-08-06 14:16] Running 'pacman -U jre6-6u33-b04-x86_64.pkg.tar.xz'
    [2012-08-06 14:17] Running 'pacman -Rdd jdk jre'
    [2012-08-06 14:17] removed jdk (7.5-2)
    [2012-08-06 14:17] removed jre (7.5-2)
    [2012-08-06 14:19] Running 'pacman --asdeps -U jre6-6u33-b04-x86_64.pkg.tar.xz'
    [2012-08-06 14:19] The jre package is licensed software.
    [2012-08-06 14:19] You MUST read and agree to the license stored in
    [2012-08-06 14:19] /opt/java/jre/LICENSE before using it.
    [2012-08-06 14:19] Please relogin to include jre in your PATH.
    [2012-08-06 14:19] installed jre6 (6u33-b04)
    [2012-08-06 14:21] Running 'pacman -U jdk6-6u33-b04-x86_64.pkg.tar.xz'
    [2012-08-06 14:21] The jdk package is licensed software.
    [2012-08-06 14:21] You MUST read and agree to the license stored in
    [2012-08-06 14:21] /opt/java/LICENSE before using it.
    [2012-08-06 14:21] Please relogin to include jdk in your PATH
    [2012-08-06 14:21] installed jdk6 (6u33-b04)
    [2012-08-06 14:23] Running 'pacman -U jre6-6u33-b04-x86_64.pkg.tar.xz'
    [2012-08-06 14:54] upgraded jre6 (6u33-b04 -> 6u33-b04)
    [2012-08-06 17:23] Running 'pacman -S gimp'
    [2012-08-06 17:23] installed lcms (1.19-2)
    [2012-08-06 17:23] Updating font cache... done.
    [2012-08-06 17:23] installed gsfonts (1.0.7pre44-3)
    [2012-08-06 17:23] installed libwmf (0.2.8.4-9)
    [2012-08-06 17:23] installed libcroco (0.6.5-1)
    [2012-08-06 17:23] installed librsvg (2.36.1-1)
    [2012-08-06 17:23] installed babl (0.1.10-1)
    [2012-08-06 17:23] installed gegl (0.2.0-2)
    [2012-08-06 17:23] installed freeglut (2.8.0-1)
    [2012-08-06 17:23] installed jasper (1.900.1-7)
    [2012-08-06 17:23] installed gimp (2.8.0-2)
    [2012-08-06 18:25] Running 'pacman -Sy'
    [2012-08-06 18:25] synchronizing package lists
    [2012-08-06 18:25] Running 'pacman -S yaourt'
    [2012-08-06 18:28] Running 'pacman -Sy'
    [2012-08-06 18:28] synchronizing package lists
    [2012-08-06 18:28] Running 'pacman -S lib32-gcc-libs lib32-glibc lib32-libx11 lib32-libxau lib32-libxcb lib32-libxdmcp lib32-libxext lib32-libxrender lib32-alsa-lib lib32-libstdc++5 lib32-libxv lib32-ncurses lib32-openal lib32-sdl lib32-zlib swt'
    [2012-08-06 18:29] Running 'pacman -Sy'
    [2012-08-06 18:29] synchronizing package lists
    [2012-08-06 18:29] Running 'pacman -S lib32-gcc-libs lib32-glibc lib32-libx11 lib32-libxau lib32-libxcb lib32-libxdmcp lib32-libxext lib32-libxrender lib32-alsa-lib lib32-libstdc++5 lib32-libxv lib32-ncurses lib32-openal lib32-sdl lib32-zlib swt'
    [2012-08-06 18:32] Running 'pacman --noconfirm --asdeps -S -- yajl'
    [2012-08-06 21:50] Running 'pacman -U jdk6-6u33-b04-x86_64.pkg.tar.xz'
    [2012-08-06 21:51] Running 'pacman -Rdd jdk6 jre6'
    [2012-08-06 21:51] removed jdk6 (6u33-b04)
    [2012-08-06 21:51] removed jre6 (6u33-b04)
    [2012-08-06 21:54] Running 'pacman -U sun-java6-6u32-1-x86_64.pkg.tar.xz'
    [2012-08-06 21:54] The sun-java6 package is licensed software.
    [2012-08-06 21:54] You MUST read and agree to the license stored in
    [2012-08-06 21:54] /opt/sun-java6/LICENSE before using it.
    [2012-08-06 21:54]
    [2012-08-06 21:54] Use '. /opt/sun-java6/envsetup.sh' to setup environment.
    [2012-08-06 21:54] installed sun-java6 (6u32-1)
    [2012-08-06 21:59] Running 'pacman -Syu'
    [2012-08-06 21:59] synchronizing package lists
    [2012-08-06 21:59] starting full system upgrade
    [2012-08-06 22:00] Running 'pacman -Sy'
    [2012-08-06 22:00] synchronizing package lists
    [2012-08-06 22:00] Running 'pacman -S yaourt'
    [2012-08-06 22:00] installed yajl (2.0.4-1)
    [2012-08-06 22:00] installed package-query (1.0.1-1)
    [2012-08-06 22:00] installed yaourt (1.1-1)
    [2012-08-06 22:00] Running 'pacman -S extra/schedtool community/esdl'
    [2012-08-06 22:00] upgraded schedtool (1.3.0-2 -> 1.3.0-2)
    [2012-08-06 22:00] upgraded esdl (2:1.2-1 -> 2:1.2-1)
    [2012-08-06 22:00] Running 'pacman -S extra/schedtool community/esdl'
    [2012-08-06 22:00] upgraded schedtool (1.3.0-2 -> 1.3.0-2)
    [2012-08-06 22:00] upgraded esdl (2:1.2-1 -> 2:1.2-1)
    [2012-08-06 22:00] Running 'pacman -S --asdeps --needed extra/jdk7-openjdk'
    [2012-08-06 22:01] installed java-rhino (1.7R3-3)
    [2012-08-06 22:01] installed jre7-openjdk-headless (7.u5_2.2.1-1)
    [2012-08-06 22:01] when you use a non-reparenting window manager
    [2012-08-06 22:01] set _JAVA_AWT_WM_NONREPARENTING=1 in
    [2012-08-06 22:01] /etc/profile.d/jre.sh
    [2012-08-06 22:01] installed jre7-openjdk (7.u5_2.2.1-1)
    [2012-08-06 22:01] installed jdk7-openjdk (7.u5_2.2.1-1)
    [2012-08-06 22:02] Running 'pacman -U /tmp/yaourt-tmp-shauder/PKGDEST.kJz/android-apktool-1.4.9-1-x86_64.pkg.tar.xz'
    [2012-08-06 22:02] installed android-apktool (1.4.9-1)
    [2012-08-06 22:04] Running 'pacman -U /tmp/yaourt-tmp-shauder/PKGDEST.ubB/android-sdk-r20.0.1-1-x86_64.pkg.tar.xz'
    [2012-08-06 22:05] You need to source /etc/profile or relogin to add the Android SDK tools to your path.
    [2012-08-06 22:05] The android group has been removed, install android packages as root.
    [2012-08-06 22:05] upgraded android-sdk (r20-2 -> r20.0.1-1)
    [2012-08-06 22:08] Running 'pacman -U /tmp/yaourt-tmp-shauder/PKGDEST.g9s/android-sdk-platform-tools-r14-1-any.pkg.tar.xz'
    [2012-08-06 22:08] upgraded android-sdk-platform-tools (r12-1 -> r14-1)
    [2012-08-06 22:08] Running 'pacman -S --asdeps --needed extra/libmtp'
    [2012-08-06 22:08] installed libmtp (1.1.3-1)
    [2012-08-06 22:08] Running 'pacman -U /tmp/yaourt-tmp-shauder/PKGDEST.0Uc/android-udev-1.3-4-any.pkg.tar.xz'
    [2012-08-06 22:08] ===> In order to use adb, you have to be in the 'adbusers' group
    [2012-08-06 22:08] ===> For that, use: gpasswd -a USERNAME adbusers
    [2012-08-06 22:08] installed android-udev (1.3-4)
    [2012-08-06 22:08] Running 'pacman -U /tmp/yaourt-tmp-shauder/PKGDEST.n8w/fastboot-20110628-2-any.pkg.tar.xz'
    [2012-08-06 22:08] installed fastboot (20110628-2)
    [2012-08-06 22:09] Running 'pacman -U /tmp/yaourt-tmp-shauder/PKGDEST.aCT/pngcrush-1.7.35-1-x86_64.pkg.tar.xz'
    [2012-08-06 22:09] upgraded pngcrush (1.7.31-1 -> 1.7.35-1)
    [2012-08-06 22:09] Running 'pacman -U /tmp/yaourt-tmp-shauder/PKGDEST.ZNg/repo-git-20120806-1-x86_64.pkg.tar.xz'
    [2012-08-06 22:10] Running 'pacman -S abs base-devel perl git gnupg flex bison gperf zip unzip sdl wxgtk squashfs-tools ncurses libpng zlib libusb libusb-compat readline alsa-lib openal'
    [2012-08-06 22:11] Running 'pacman -S lib32-gcc-libs lib32-glibc lib32-libx11 lib32-libxau lib32-libxcb lib32-libxdmcp lib32-libxext lib32-libxrender lib32-alsa-lib lib32-libstdc++5 lib32-libxv lib32-ncurses lib32-openal lib32-sdl lib32-zlib swt'
    [2012-08-06 22:11] upgraded lib32-glibc (2.16.0-2 -> 2.16.0-2)
    [2012-08-06 22:11] upgraded lib32-gcc-libs (4.7.1-5 -> 4.7.1-5)
    [2012-08-06 22:11] upgraded lib32-libxdmcp (1.1.1-1 -> 1.1.1-1)
    [2012-08-06 22:11] upgraded lib32-libxau (1.0.7-1 -> 1.0.7-1)
    [2012-08-06 22:11] upgraded lib32-libxcb (1.8.1-2 -> 1.8.1-2)
    [2012-08-06 22:11] upgraded lib32-libx11 (1.5.0-1 -> 1.5.0-1)
    [2012-08-06 22:11] upgraded lib32-libxext (1.3.1-1 -> 1.3.1-1)
    [2012-08-06 22:11] upgraded lib32-libxrender (0.9.7-1 -> 0.9.7-1)
    [2012-08-06 22:11] upgraded lib32-alsa-lib (1.0.25-1 -> 1.0.25-1)
    [2012-08-06 22:11] upgraded lib32-libstdc++5 (3.3.6-6 -> 3.3.6-6)
    [2012-08-06 22:11] upgraded lib32-libxv (1.0.7-1 -> 1.0.7-1)
    [2012-08-06 22:11] upgraded lib32-ncurses (5.9-1 -> 5.9-1)
    [2012-08-06 22:11] upgraded lib32-openal (1.14-1 -> 1.14-1)
    [2012-08-06 22:11] upgraded lib32-sdl (1.2.15-2 -> 1.2.15-2)
    [2012-08-06 22:11] upgraded lib32-zlib (1.2.7-1 -> 1.2.7-1)
    [2012-08-06 22:11] upgraded swt (3.7.2-1 -> 3.7.2-1)
    [2012-08-06 22:11] Running 'pacman -S gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-readline lib32-glibc lib32-zlib'
    [2012-08-06 22:12] Running 'pacman -U /tmp/yaourt-tmp-shauder/PKGDEST.u2K/lib32-libusb-1.0.9-1-x86_64.pkg.tar.xz'
    [2012-08-06 22:12] installed lib32-libusb (1.0.9-1)
    [2012-08-06 22:12] Running 'pacman -U /tmp/yaourt-tmp-shauder/PKGDEST.ENc/lib32-libusb-compat-0.1.4-2-x86_64.pkg.tar.xz'
    [2012-08-06 22:12] installed lib32-libusb-compat (0.1.4-2)
    [2012-08-06 22:16] Running 'pacman -S ps3mediaserver'
    [2012-08-06 22:17] Running 'pacman -U /tmp/yaourt-tmp-shauder/PKGDEST.WIi/pms-1.60.0-2-x86_64.pkg.tar.xz'
    [2012-08-06 22:17] upgraded pms (1.60.0-1 -> 1.60.0-2)
    [2012-08-06 22:18] Running 'pacman -Syu'
    [2012-08-06 22:18] synchronizing package lists
    [2012-08-06 22:18] starting full system upgrade
    [2012-08-06 22:18] Running 'pacman -Syu'
    [2012-08-06 22:18] synchronizing package lists
    [2012-08-06 22:18] starting full system upgrade
    [2012-08-06 22:20] upgraded bison (2.6-1 -> 2.6.2-1)
    [2012-08-06 22:20] upgraded chromium (20.0.1132.57-2 -> 21.0.1180.57-1)
    [2012-08-06 22:20] upgraded libldap (2.4.31-4 -> 2.4.32-1)
    [2012-08-06 22:20] upgraded krb5 (1.10.2-2 -> 1.10.2-3)
    [2012-08-06 22:20] upgraded cifs-utils (5.5-1 -> 5.6-2)
    [2012-08-06 22:20] upgraded cryptsetup (1.4.3-1 -> 1.5.0-1)
    [2012-08-06 22:20] upgraded curl (7.26.0-1 -> 7.27.0-1)
    [2012-08-06 22:20] upgraded flex (2.5.36-1 -> 2.5.37-1)
    [2012-08-06 22:20] upgraded fuse (2.9.0-1 -> 2.9.1-1)
    [2012-08-06 22:20] upgraded git (1.7.11.3-1 -> 1.7.11.4-1)
    [2012-08-06 22:20] upgraded gnutls (3.0.21-2 -> 3.0.22-1)
    [2012-08-06 22:20] upgraded hwids (20120711-1 -> 20120730-1)
    [2012-08-06 22:20] upgraded nvidia-utils (302.17-1 -> 304.32-1)
    [2012-08-06 22:20] upgraded lib32-nvidia-utils (302.17-1 -> 304.32-1)
    [2012-08-06 22:20] upgraded libcups (1.5.4-1 -> 1.6.1-2)
    [2012-08-06 22:20] upgraded libmysqlclient (5.5.25.a-1 -> 5.5.27-1)
    [2012-08-06 22:20] upgraded libsystemd (187-2 -> 187-4)
    [2012-08-06 22:20] upgraded libthai (0.1.17-1 -> 0.1.18-1)
    [2012-08-06 22:20] upgraded systemd-tools (187-2 -> 187-4)
    [2012-08-06 22:20] upgraded mkinitcpio (0.9.2-2 -> 0.10-1)
    [2012-08-06 22:20] >>> Updating module dependencies. Please wait ...
    [2012-08-06 22:20] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    [2012-08-06 22:20] ==> Building image from preset: 'default'
    [2012-08-06 22:20] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    [2012-08-06 22:20] ==> Starting build: 3.4.7-1-ARCH
    [2012-08-06 22:20] -> Running build hook: [base]
    [2012-08-06 22:20] -> Running build hook: [udev]
    [2012-08-06 22:20] -> Running build hook: [autodetect]
    [2012-08-06 22:20] -> Running build hook: [pata]
    [2012-08-06 22:20] -> Running build hook: [scsi]
    [2012-08-06 22:20] -> Running build hook: [sata]
    [2012-08-06 22:20] -> Running build hook: [filesystems]
    [2012-08-06 22:20] -> Running build hook: [usbinput]
    [2012-08-06 22:20] -> Running build hook: [fsck]
    [2012-08-06 22:20] ==> Generating module dependencies
    [2012-08-06 22:20] ==> Creating gzip initcpio image: /boot/initramfs-linux.img
    [2012-08-06 22:20] ==> Image generation successful
    [2012-08-06 22:20] ==> Building image from preset: 'fallback'
    [2012-08-06 22:20] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    [2012-08-06 22:20] ==> Starting build: 3.4.7-1-ARCH
    [2012-08-06 22:20] -> Running build hook: [base]
    [2012-08-06 22:20] -> Running build hook: [udev]
    [2012-08-06 22:20] -> Running build hook: [pata]
    [2012-08-06 22:20] -> Running build hook: [scsi]
    [2012-08-06 22:20] -> Running build hook: [sata]
    [2012-08-06 22:20] -> Running build hook: [filesystems]
    [2012-08-06 22:20] -> Running build hook: [usbinput]
    [2012-08-06 22:20] -> Running build hook: [fsck]
    [2012-08-06 22:20] ==> Generating module dependencies
    [2012-08-06 22:20] ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
    [2012-08-06 22:20] ==> Image generation successful
    [2012-08-06 22:20] upgraded linux (3.4.6-1 -> 3.4.7-1)
    [2012-08-06 22:20] upgraded mysql-clients (5.5.25.a-1 -> 5.5.27-1)
    [2012-08-06 22:20] upgraded mysql (5.5.25.a-1 -> 5.5.27-1)
    [2012-08-06 22:20] upgraded nspr (4.9.1-1 -> 4.9.2-1)
    [2012-08-06 22:20] upgraded nvidia (302.17-4 -> 304.32-1)
    [2012-08-06 22:20] upgraded tzdata (2012d-1 -> 2012e-1)
    [2012-08-06 22:20] upgraded xf86-input-evdev (2.7.1-1 -> 2.7.2-1)
    [2012-08-06 22:23] Running 'pacman -S openjdk'
    [2012-08-06 22:23] Running 'pacman -S jdk7-openjdk'
    [2012-08-06 22:24] upgraded jdk7-openjdk (7.u5_2.2.1-1 -> 7.u5_2.2.1-1)
    [2012-08-06 22:24] Running 'pacman -S jre7-openjdk'
    [2012-08-06 22:24] upgraded jre7-openjdk (7.u5_2.2.1-1 -> 7.u5_2.2.1-1)
    [2012-08-06 22:25] Running 'pacman -R pms'
    [2012-08-06 22:25] warning: /opt/pms/PMS.conf saved as /opt/pms/PMS.conf.pacsave
    [2012-08-06 22:25] removed pms (1.60.0-2)
    [2012-08-06 22:26] Running 'pacman -U /tmp/yaourt-tmp-shauder/PKGDEST.QTF/pms-1.60.0-2-x86_64.pkg.tar.xz'
    [2012-08-06 22:26] installed pms (1.60.0-2)
    [2012-08-06 22:26] Running 'pacman -S vlc'
    [2012-08-06 22:26] installed libdvbpsi (0.2.2-1)
    [2012-08-06 22:26] installed sdl_image (1.2.12-2)
    [2012-08-06 22:26] installed libdvdread (4.2.0-1)
    [2012-08-06 22:26] installed libdvdnav (4.2.0-2)
    [2012-08-06 22:26] installed libkate (0.4.1-3)
    [2012-08-06 22:26] installed libtiger (0.3.4-3)
    [2012-08-06 22:26] installed libebml (1.2.2-2)
    [2012-08-06 22:26] installed libmatroska (1.3.0-2)
    [2012-08-06 22:26] installed zvbi (0.2.33-4)
    [2012-08-06 22:26] installed taglib (1.7.2-2)
    [2012-08-06 22:26] installed libmpcdec (1.2.6-3)
    [2012-08-06 22:26] installed libupnp (1.6.17-1)
    [2012-08-06 22:26] installed libshout (1:2.3.0-1)
    [2012-08-06 22:26] installed libmpeg2 (0.5.1-3)
    [2012-08-06 22:26] installed libmodplug (0.8.8.4-1)
    [2012-08-06 22:26] installed ttf-freefont (20120503-1)
    [2012-08-06 22:26] installed vlc (2.0.3-2)
    [2012-08-06 22:26] Running 'pacman -S lib32-gcc-libs lib32-glibc'
    [2012-08-06 22:26] upgraded lib32-glibc (2.16.0-2 -> 2.16.0-2)
    [2012-08-06 22:26] upgraded lib32-gcc-libs (4.7.1-5 -> 4.7.1-5)
    [2012-08-07 11:44] Running 'pacman --noconfirm --asdeps -S -- pacman-color'
    [2012-08-07 11:44] installed pacman-color (4.0.3-1)
    [2012-08-07 11:44] Running 'pacman -U packer-color-20120807-1-any.pkg.tar.xz'
    [2012-08-07 11:44] installed packer-color (20120807-1)
    [2012-08-07 11:50] Running 'pacman-color -S packer'
    [2012-08-07 15:50] Running 'pacman -Syyu'
    [2012-08-07 15:50] synchronizing package lists
    [2012-08-07 15:50] starting full system upgrade
    [2012-08-07 15:50] upgraded libwbclient (3.6.6-1 -> 3.6.7-1)
    [2012-08-07 15:51] upgraded smbclient (3.6.6-1 -> 3.6.7-1)
    [2012-08-07 15:51] Running 'pacman -Sy'
    [2012-08-07 15:51] synchronizing package lists
    [2012-08-07 15:51] Running 'pacman -U /tmp/yaourt-tmp-shauder/PKGDEST.77j/rutorrent-plugins-3.4-3-any.pkg.tar.xz'
    [2012-08-07 15:51] upgraded rutorrent-plugins (3.4-2 -> 3.4-3)
    [2012-08-07 15:51] Running 'pacman -Sy'
    [2012-08-07 15:51] synchronizing package lists
    [2012-08-07 16:02] Running 'pacman-color -S crontab'
    [2012-08-07 16:02] Running 'pacman-color -S cronjob'
    [2012-08-07 16:02] Running 'pacman-color -S cron'
    [2012-08-07 16:02] upgraded cronie (1.4.8-2 -> 1.4.8-2)
    [2012-08-07 16:04] Running 'pacman-color -S cronie'
    [2012-08-07 16:05] Running 'pacman-color -S esmtp procmail'
    [2012-08-07 16:05] installed libesmtp (1.0.6-2)
    [2012-08-07 16:05] installed esmtp (1.2-4)
    [2012-08-07 16:05] installed procmail (3.22-5)
    [2012-08-08 12:10] Running 'pacman -Sy'
    [2012-08-08 12:10] synchronizing package lists
    [2012-08-08 12:12] Running 'pacman -U /tmp/yaourt-tmp-shauder/PKGDEST.82R/pms-1.60.0-2-x86_64.pkg.tar.xz'
    [2012-08-08 12:12] upgraded pms (1.60.0-2 -> 1.60.0-2)
    [2012-08-08 18:02] Running 'pacman -R pms'
    [2012-08-08 18:02] removed pms (1.60.0-2)
    [2012-08-08 18:02] Running 'pacman -Sy'
    [2012-08-08 18:02] synchronizing package lists
    [2012-08-08 18:03] Running 'pacman -U /tmp/yaourt-tmp-shauder/PKGDEST.BkP/pms-1.60.0-2-x86_64.pkg.tar.xz'
    [2012-08-08 18:03] installed pms (1.60.0-2)
    [2012-08-08 18:17] Running 'pacman -S extra/icedtea-web'
    [2012-08-08 18:17] Running 'pacman -S extra/icedtea-web-java7'
    [2012-08-08 18:18] installed icedtea-web-java7 (1.2.1-2)
    [2012-08-08 18:36] Running 'pacman -R pms'
    [2012-08-08 1

    shadowlurker wrote:
    It's problem in pam configuration files. You need to create files useradd, userdel, groupadd and groupdel in /etc/pam.d/ directory with following content:
    auth sufficient pam_rootok.so
    auth required pam_unix.so
    account required pam_unix.so
    session required pam_unix.so
    password required pam_permit.so
    You da man! I also had to add grpconv and chage to get filesystem working but all seems well now thanks!
    Doug piston had me try something that I think will help anyone else who has this problem.  Try re-installing pambase and shadow.  It generated back most of any I was missing.
    Last edited by shauder (2012-11-03 00:55:19)

  • Problem with setTraficClass()  in Linux machine

    Hi
    We are facing some problem with setTraficClass() method in java.net.Socket . When we try to set a value 34 using this method in windows it is not setting. when try to see the Ip header in the packet using wireshark it is showing 00.
    After lot of googling we found in sun forum that in Windows os there is no support for TOS/DSCP. if we want to set a value we need to add a registry parameter. Now it is setting in Windows XP [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4696356]
    But our problem is we are trying to run the same thing on linux machine RedHat 2.6.18.92.e15-pae-1686 it is setting 00 . Please find the code bellow
    Is there any setting we need to do in linux machine to call the setTraficClass() method. I am new to linux and not able to fix this issue.
    Please help me
    Thanks in advance.
    Sethu
    Server code
    import java.net.*;
    import java.io.*;
    class server
    public static void main(String args[]) throws Exception
    byte[] receive_data = new byte[1024];
    byte[] send_data = new byte[1024];
    int recv_port;
    DatagramSocket server_socket = new DatagramSocket(5000);
    System.out.println ("UDPServer Waiting for client on port 5000");
    while(true)
    DatagramPacket receive_packet = new DatagramPacket(receive_data,
    receive_data.length);
    server_socket.receive(receive_packet);
    server_socket.getTraficClass()
    String data = new String(receive_packet.getData(),0 ,0
    ,receive_packet.getLength());
    System.out.println("socketIP"+server_socket.getTrafficClass());
    server_socket.setTrafficClass(0x18);
    InetAddress IPAddress = receive_packet.getAddress();
    recv_port = receive_packet.getPort();
    if (data.equals("q") || data.equals("Q"))
    break;
    else
    System.out.println("( " + IPAddress + " , " + recv_port
    + " ) said :" + data );
    Client code
    import java.net.*;
    import java.io.*;
    class Client
    public static void main(String args[]) throws Exception
    byte[] send_data = new byte[1024];
    BufferedReader infromuser =
    new BufferedReader(new InputStreamReader(System.in));
    DatagramSocket client_socket = new DatagramSocket();
    InetAddress IPAddress = InetAddress.getByName("127.0.0.1");
    while (true)
    System.out.println("Type Something (q or Q to quit): ");
    String data = infromuser.readLine();
    if (data.equals("q") || data.equals("Q"))
    break;
    else
    send_data = data.getBytes();
    DatagramPacket send_packet = new DatagramPacket(send_data,
    send_data.length,
    IPAddress, 5000);
    client_socket.setTraficClass(34)
    client_socket.send(send_packet);
    client_socket.close();

    Hi,
    when I use setsockopt() API on linux machine. I am able to set the DSCP value in the UDP socket.
    I can see the visibility of DSCP marking on the wireShark.
    when I use the setTraficClass(34) API on linux machine. I am not able to set the DSCP value in the UDP socket. It
    always takes the default value as 0. I cant see the visibility of DSCP marking on the wireShark.
    setSockopt() API supported in Linux machine. Why not SetTrafficClass() API?.
    Is there any changes required to make the SetTrafficClass() API to work on Linux platform?.

  • Problem with charsets for foreign languages

    hi
    i have a problem with a webapplication
    in my webapplication i have some code that gets data from a webpage of another webapplication. This other web application can use many foreign languages
    the problem is that those foreign languages contain some special characters, and those special chars aren't displayed the right way
    this is the code to get the data from the other webapp
    private static StringBuffer getContent(String sUrl) throws MalformedURLException, IOException  {
            StringBuffer content = new StringBuffer();
            URL url = new URL(sUrl);
            HttpURLConnection httpURLConn = (HttpURLConnection) url.openConnection();
            httpURLConn.setRequestProperty("charset", "utf-8");
            BufferedReader buffReader = new BufferedReader(new InputStreamReader(httpURLConn.getInputStream()));
            String inputLine;
            while ((inputLine = buffReader.readLine()) != null) {
                content.append("\n" + inputLine);
            return content;
        }as you see , i tried to set the encoding to UTF-8 but that did not solve the problem

    an example of those special chars
    fran�aisis displayed as
    code]
    fran��ais

  • I have a little problem with input in my program...(System.in, BufferedRead

    I'm coding a program that takes a input like this :
    Sample Input
    1 11 5
    2 6 7
    3 13 9
    12 7 16
    14 3 25
    19 18 22
    23 13 29
    24 4 28
    So I wrote a code like this :
    public static void main(String[] args) throws Exception{
              BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
              String input = null;
                   while((input = br.readLine()) != null) {
                   StringTokenizer st = new StringTokenizer(input);
                   int leftX = Integer.parseInt(st.nextToken());
                   int height = Integer.parseInt(st .nextToken());
                   int rightX = Integer.parseInt(st.nextToken());
    .... rest of the code....
    But unlike I expected, the program did not pass the while loop.
    When I observed in debugging mode, when "br.readLine()" has no more strings to read,
    the whole program just becomes idle doing nothing, and it does not proceed further.
    Is there any problem with my code there? I've been trying to figure it out for hours... Please help!!!

    myunghajang wrote:
    Why doesn't it work in a way I intended? BufferedReader returns null if there is no more string to read, and what's the problem?
    It's so frustrating...The computer doesn't have a mind reading input, how is your program supposed to know you have finished typing the input?
    If you put the data in a file and redirect it into your program on the command line it will work (because the file knows where its end is)
    Your program could instead assume that a blank line is you end of input.

  • Problems with the Proxy Programme--Please help

    Hi All,
    I have written a simple proxy server in the form of a servlet. I changed the proxy config of my browser to connect to this servlet hosted on the default context(http://localhost:8080) of the Tomcat 5.0.25 . Well , this servlet internally connects to the proxy of the corporate LAN . The logic that I have applied is as follows. The servlet gets the request from the client (ie the browser in this case) , extracts the headers and contents from the request, sets them to a new request that it forms and finally send this new request to the proxy. When the proxy responds, the servlet collects the response headers and contents adn writes them in its response. To sum up , this servlet transparently carries the requests and responses between the client(browser) and the corporate LAN proxy. Now the problem is this. Let's say , now I am accessing http://www.google.com.The browser sends a request to my servlet with the following headers as they are extracted by my servlet.
    ProxyServer:::>posting request
    ProxyServer:::>headerValue::> headerName = accept : headerValue=*/*
    ProxyServer:::>headerValue::> headerName = referer : headerValue=http://www.google.com/
    ProxyServer:::>headerValue::> headerName = accept-language : headerValue=en-us
    ProxyServer:::>headerValue::> headerName = proxy-connection : headerValue=Keep-Alive
    ProxyServer:::>headerValue::> headerName = user-agent : headerValue=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; UB1.4_IE6.0_SP1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
    ProxyServer:::>headerValue::> headerName = host : headerValue=www.google.com
    ProxyServer:::>headerValue::> headerName = cookie : headerValue=PREF=ID=1be27c0a74f198ca:TM=1082058853:LM=1082058853:S=bu6ORrygzm8AUkm8
    ProxyServer:::>postRequest
    I set these headers into a new connection opened to the proxy and post a fresh request to the proxy,which, in turn responds with the following headers.
    ProxyServer:::>posted request successfully
    ProxyServer:::>writing response
    ProxyServer:::>writeResponse-->headerName = Proxy-Connection : headerValue = [close]
    ProxyServer:::>writeResponse-->headerName = Content-Length : headerValue = [257]
    ProxyServer:::>writeResponse-->headerName = Date : headerValue = [Tue, 13 Jul 2004 14:01:40 GMT]
    ProxyServer:::>writeResponse-->headerName = Content-Type : headerValue = [text/html]
    ProxyServer:::>writeResponse-->headerName = Server : headerValue = [NetCache appliance (NetApp/5.5R2)]
    ProxyServer:::>writeResponse-->headerName = Proxy-Authenticate : headerValue = [Basic realm="Charlotte - napxyclt2"]
    ProxyServer:::>writeResponse-->headerName = null : headerValue = [HTTP/1.1 407 Proxy Authentication Required]
    ProxyServer:::>writeResponse exiting
    ProxyServer:::>wrote response successfully
    I write these headers back to the client. According to what I was thinking, the client ie the browser would open a new dialog box asking for username/password owing to the presence of the "Proxy-Authenticate " header. But it does not happen that way. Rather the browser stops responsding and displays a blank page. Does anyone know why it happens this way? I am pasting the server prog below for everybody's reference.
    package server.proxy;
    //import all servlet related classes
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.io.*;
    import java.net.*;
    import server.resources.*;
    //My Proxy server --->Currently it is very simplea and relies on
    //other proxy servers of an already connected network.
    public class ProxyServer extends HttpServlet
    //stores the resource bundle
    private ServerResBundle resBundle = null;
    //checks for the mode of operation
    private boolean proxySet = false;
    private String proxy = null;
    //storing the original System out/err etc
    private PrintStream sysOutOrig = null;
    private PrintStream sysErrOrig = null;
    private InputStream sysInOrig = null;
    //initialise certain features that are required later
    public void init() throws ServletException
    try
    //initialise the resource bundle
    this.initResBundle();
    System.out.println("ProxyServer:::>res bundle init");
    //set the mode of operation
    this.setMode();
    System.out.println("ProxyServer:::>mode set");
    //set the system out and err --System.setOut etc
    this.setSystemOutErr();
    System.out.println("ProxyServer:::>in/out/err set");
    }//End try
    catch(Exception e)
    System.out.println("Exception in init..."+(e.getMessage()));
    throw new ServletException(e);
    }//Edn
    catch(Throwable e)
    System.out.println("Irrecoverable Error...");
    throw new ServletException(e);
    }//End
    }//End init
    //method to init the resource bundle;
    private void initResBundle()
    this.resBundle = ServerResBundle.getBundle();
    }//End
    //method to set the mode of the server--proxy or direct
    private void setMode()
    //read the target proxy property from the bundle and
    //if it is set,take that URL
    String temp = (String)(this.resBundle.getResource(ResKeys.PROXY_SERVER));
    if ( (temp != null) && (temp.length() > 0) )
    this.proxySet = true;
    this.proxy = temp;
    temp = null;
    }//End
    }//End
    //method to set the system out and err etc
    private void setSystemOutErr() throws Exception
    //keep a copy of the original system out and error
    this.sysOutOrig = System.out;
    this.sysErrOrig = System.err;
    try
    //read the options adn if they are set, take the values directly
    String newOutStr = (String)(this.resBundle.getResource(ResKeys.SYSTEM_OUT));
    String newErrStr = (String)(this.resBundle.getResource(ResKeys.SYSTEM_ERR));
    if ((newOutStr != null) && (newOutStr.length() > 0))
    System.setOut(new PrintStream(new FileOutputStream(new File(newOutStr),true),true));
    }//End if
    if ((newErrStr != null) && (newErrStr.length() > 0))
    System.setErr(new PrintStream(new FileOutputStream(new File(newErrStr),true),true));
    }//End if
    }//End
    catch(Exception e)
    //restore the stuff
    System.setOut(this.sysOutOrig);
    System.setErr(this.sysErrOrig);
    }//End
    }//End
    //this is where the proxy functionalities will be embedded
    public void service(HttpServletRequest req,HttpServletResponse resp)
    throws ServletException,java.io.IOException
    //conenction URL
    URL target = null;
    //conenction to the remote object
    URLConnection targetConn = null;
    //stores the OOS and the OIS
    ObjectOutputStream oos = null;
    ObjectInputStream ois = null;
    try
    //check for the mode of operation
    if (proxySet)
    URLConnection objects go through two phases: first they are created, then they are connected.
    After being created, and before being connected, various options can be specified
    (e.g., doInput and UseCaches). After connecting, it is an error to try to set them.
    Operations that depend on being connected, like getContentLength, will implicitly perform the connection,
    if necessary.
    //for the URL to the proxy
    target=new URL(this.proxy);
    //conenct to the proxy
    targetConn = target.openConnection();
    //set the details of the connectuon
    targetConn.setDoInput(true);
    targetConn.setDoOutput(true);
    targetConn.setUseCaches(false);
    // If true, this URL is being examined in a context in which it makes sense to allow user interactions such as popping up an authentication dialog. If false, then no user interaction is allowed
    targetConn.setAllowUserInteraction(true);
    //connect to the remote object
    // targetConn.connect();//call this only when all the request properties are set
    System.out.println("ProxyServer:::>posting request");
    //post the received request to the URL
    this.postRequest(targetConn,req);
    System.out.println("ProxyServer:::>posted request successfully");
    System.out.println("ProxyServer:::>writing response");
    //receive the response
    //write the received response to the client
    this.writeResponse(targetConn,resp);
    System.out.println("ProxyServer:::>wrote response successfully");
    }//End if
    else
    //currently this functionality is not supported
    throw new ServletException(
    (String)(this.resBundle.getResource(ResKeys.ERR_FUNC_NOTSUPPORTED)));
    }//End
    }//End try
    catch(Exception e)
    if(e instanceof ServletException)
    throw (ServletException)e;
    }//End
    if (e instanceof IOException)
    throw (IOException)e;
    }//End
    //wrap it up in ServletException
    throw new ServletException(e);
    }//End
    }//End
    //method to write the response back to the client
    private void writeResponse(URLConnection targetConn,HttpServletResponse resp)
    throws ServletException
    //get all the header fields from the response connection and set them to the
    //response of the servlet
    Map headerFields = null;
    Iterator headerFieldEntries = null;
    Map.Entry header = null;
    //stores the input stream to the conn
    BufferedReader brConn = null;
    //stores the writer to the response
    PrintWriter prResp = null;
    //checks if the proxy authentication needed or not
    boolean proxyAuthReqd = false;
    try
    //juste ensuring that the proxy authentication is reset
    proxyAuthReqd = false;
    if( (targetConn != null) && (resp != null) )
    //Returns an unmodifiable Map of the header fields.
    //The Map keys are Strings that represent the response-header field names.
    //Each Map value is an unmodifiable List of Strings that represents the corresponding
    //field values
    headerFields = targetConn.getHeaderFields();
    //Returns a set view of the mappings contained in this map
    Set temp = headerFields.entrySet();
    //Returns an iterator over the elements in this set
    headerFieldEntries = temp.iterator();
    if (headerFieldEntries != null)
    while (headerFieldEntries.hasNext())
    Object tempHeader = headerFieldEntries.next();
    if (tempHeader instanceof Map.Entry)
    header = (Map.Entry)tempHeader;
    Object headerName = header.getKey();
    Object headerValue=header.getValue();
    System.out.println("ProxyServer:::>writeResponse-->headerName = "+headerName+" : headerValue = "+headerValue);
    //do not select the key-value pair if both the key adn the value are null
    if ( ( headerName == null) && (headerValue == null) )
    continue;
    }//Enmd
    if (headerValue != null)
    List headerValList = null;
    if (headerValue instanceof List)
    headerValList = (List)headerValue;
    }//End
    if(headerValList != null)
    for (int i=0;i<headerValList.size();i++)
    Object headerValueStr = headerValList.get(i);
    if (headerValueStr instanceof String)
    //note that the header-key can not be null for addHeader
    //I have made this temporary provision to make the programme work.
    resp.addHeader(( (headerName==null)? ("null_header"+i) :(String)headerName),
    (String)headerValueStr);
    //check if the proxy authentication required or not
    if (((String)headerValueStr).
    indexOf(resp.SC_PROXY_AUTHENTICATION_REQUIRED+"") != -1)
    System.out.println("ProxyServer:::>writeResponse-->proxy auth needed");
    //proxy authentication is needed
    proxyAuthReqd = true;
    }//End
    }//Ednd of
    else if (headerValueStr == null)
    resp.addHeader(( (headerName==null)? null :(String)headerName),
    null);
    }//End
    }//End for
    }//End if
    }//End if
    }//End
    }//End while
    }//End if
    //get the writer to the client
    prResp = resp.getWriter();
    System.out.println("ProxyServer:::>writeResponse-->proxyAuthReqd="+proxyAuthReqd);
    //juste test a simple header
    System.out.println("Proxy-Authenticate = "+(resp.containsHeader("Proxy-Authenticate")));
    //if the proxy asks you for authentication,pass on the same to the client
    //from whom you have received the request.When this flag is true,the connection
    //is closed by the remotehost adn hence any attempt to open in input steram
    //results in an error ie IOException
    if (!proxyAuthReqd)
    //now get the content adn write it to the response too
    brConn = new BufferedReader(new InputStreamReader(
    targetConn.getInputStream()));
    String tempStr = null;
    while ((tempStr = brConn.readLine())!=null)
    prResp.println(tempStr);
    }//End while
    //close the connections
    brConn.close();
    }//End if
    else
    prResp.println("Proxy Authentication needed...");
    }//End
    //close the streams
    prResp.flush();
    prResp.close();
    }//End if
    System.out.println("ProxyServer:::>writeResponse exiting\n");
    }//End try
    catch(Exception e)
    throw new ServletException(e);
    }//End
    }//End
    //method to post request to the internet
    private void postRequest(URLConnection targetConn,HttpServletRequest req)
    throws ServletException
    //extract the header parameters and the body content from the incoming request
    //and set them to the new connection
    Enumeration reqHeaders = null;
    //reads the incoming request's content
    BufferedReader brReqRd = null;
    PrintWriter prResWt = null;
    //stores temp header names and values
    String headerName = null;
    String headerValue = null;
    try
    if( (targetConn != null) && (req != null) )
    reqHeaders = req.getHeaderNames();
    //extract a header adn set it to the new connection
    while (reqHeaders.hasMoreElements())
    headerName = (String)(reqHeaders.nextElement());
    headerValue = req.getHeader(headerName);
    targetConn.setRequestProperty(headerName,headerValue);
    System.out.println("ProxyServer:::>headerValue::> headerName = "+headerName+" : headerValue="+headerValue);
    }//End
    System.out.println("ProxyServer:::>postRequest\n");
    //establis the actual connection
    //calling this method bfore the above loop results in IllegalStateException
    targetConn.connect();
    //NOTE : try reading from and writing into OIS and OOS respectively
    //now read the contents and write them to the connection
    // brReqRd = req.getReader(); //this hangs for some reason
    brReqRd = new BufferedReader(new InputStreamReader(req.getInputStream()));
    System.out.println("Got the reader..brReqRd = "+brReqRd);
    if (brReqRd != null)
    String temp = null;
    //establish the printwriter
    // prResWt = new PrintWriter(targetConn.getOutputStream(),true);
    prResWt = new PrintWriter(targetConn.getOutputStream());
    System.out.println("trying to read in a loop from brReqRd.. ready="+(brReqRd.ready()));
    while( (brReqRd.ready()) && ((temp=brReqRd.readLine()) != null) )
    System.out.println("In while::>temp = "+temp);
    prResWt.println(temp);
    }//Emd while
    //close the streams adn go back
    brReqRd.close();
    prResWt.flush();
    prResWt.close();
    }//End
    }//End outer if
    System.out.println("ProxyServer:::>postRequest exiting\n");
    }//End try
    catch(Exception e)
    throw new ServletException(e);
    }//End
    }//End
    }//End

    Hi serlank ,
    Thanks for your reply. Well , I initially I thought of not pasting the code,as it was too long. But I could not help it,as I thought I must show in code what I exactly meant. That's why I followed a description of my problem with the code. You could probably have copied the code and pasted it in one of your favourite editors to take a look at it. Did you,by any chance, try to read it on the browser? And as regards reposting the same message, I can say that I did it as I felt the subject was not quite appropriate in the first posting and I was not sure as to how I could delete/alter the posting. I am not asking for a code-fix,but some suggestions from some one who might ever have come across such a thing.Anyway, lemme know if you have any idea on it. Thanks...

  • Problems with browsers and 'w' key since updates

    Hi
    I ran 'pacman -Syu' a little over a week ago, and since then I've been experiencing two rather odd problems.
    1.
    Using any web-browser (firefox, epiphany, songbird, etc), visiting pages that make use of javascript (i -think- that's the cause) makes the browser stop responding for 10-20 seconds. It goes grey and everything. And then eventually it starts working again. This occurs on many websites such as Facebook, Woot.com, to name a few big ones. It's really starting to drive me nuts.
    2.
    This problem's much weirder. After starting my computer, the w key is very unresponsive. By that I mean for a 'w' keystroke to register I need to hold down the 'w' key for 1 or 2 seconds, after which it will finally work. At first I thought this was a problem with my keyboard, but as the computer remains on, the problem slowly disappears - after about 30 minutes, the 'w' key works as expected. I don't think this is an X/GNOME problem, as I experience the same problems in the TTYs.
    I have a Sony Vaio FE-890:
    oliver@helios:~$ uname -a
    Linux helios 2.6.28-ARCH #1 SMP PREEMPT Fri Feb 13 11:03:55 CET 2009 x86_64 Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz GenuineIntel GNU/Linux
    I've been updating frequently in the interim hoping the problems will go away, but so far no luck. Any thoughts?

    Hi
    Thanks for your suggestions.
    Also, flash doesn't work on webpages anymore. I'm assuming this is some problem with the nspluginwrapper thing...
    Here's pacman.log of the fateful upgrade:
    [2009-02-10 10:32] synchronizing package lists
    [2009-02-10 10:32] starting full system upgrade
    [2009-02-10 11:37] synchronizing package lists
    [2009-02-10 11:38] starting full system upgrade
    [2009-02-10 13:10] removed gnome-network-manager (0.6.5-1)
    [2009-02-10 13:10] upgraded tzdata (2008i-1 -> 2009a-1)
    [2009-02-10 13:10] Generating locales...
    [2009-02-10 13:10] en_US.UTF-8... done
    [2009-02-10 13:10] en_US.ISO-8859-1... done
    [2009-02-10 13:10] Generation complete.
    [2009-02-10 13:10] upgraded glibc (2.9-2 -> 2.9-4)
    [2009-02-10 13:10] upgraded readline (5.2.013-1 -> 5.2.013-2)
    [2009-02-10 13:10] upgraded bash (3.2.048-1 -> 3.2.048-3)
    [2009-02-10 13:10] upgraded dhcpcd (4.0.7-1 -> 4.0.10-1)
    [2009-02-10 13:10] upgraded pm-utils (1.2.3-3 -> 1.2.3-4)
    [2009-02-10 13:10] upgraded hal (0.5.11-4 -> 0.5.11-7)
    [2009-02-10 13:10] upgraded libnetworkmanager (0.6.6-1 -> 0.7.0-1)
    [2009-02-10 13:10] upgraded networkmanager (0.6.6-1 -> 0.7.0-1)
    [2009-02-10 13:10] installed network-manager-applet (0.7.0-1)
    [2009-02-10 13:10] upgraded aircrack-ng (1.0_rc1-1 -> 1.0_rc2-1)
    [2009-02-10 13:10] upgraded gcc-libs (4.3.2-2 -> 4.3.3-1)
    [2009-02-10 13:10] upgraded xcb-proto (1.2-2 -> 1.3-1)
    [2009-02-10 13:10] upgraded libxcb (1.1.90.1-1 -> 1.1.93-1)
    [2009-02-10 13:10] upgraded libx11 (1.1.5-2 -> 1.1.99.2-1)
    [2009-02-10 13:10] upgraded amsn (0.97.2-4 -> 0.97.2-8)
    [2009-02-10 13:10] ATTENTION DB PACKAGE:
    [2009-02-10 13:10] Please consider to run db_upgrade on Berkeley DB databases with a major db version number update.
    [2009-02-10 13:10] upgraded db (4.7.25-1 -> 4.7.25-2)
    [2009-02-10 13:10] upgraded apache (2.2.11-1 -> 2.2.11-2)
    [2009-02-10 13:10] upgraded libvorbis (1.2.0-1 -> 1.2.1rc1-1)
    [2009-02-10 13:10] upgraded avidemux (2.4.3-2 -> 2.4.4-1)
    [2009-02-10 13:10] upgraded texinfo (4.13a-1 -> 4.13a-3)
    [2009-02-10 13:10] upgraded binutils (2.19-1 -> 2.19.1-1)
    [2009-02-10 13:10] upgraded boost (1.36.0-2 -> 1.37.0-1)
    [2009-02-10 13:10] upgraded brasero (0.9.0-1 -> 0.9.1-1)
    [2009-02-10 13:10] upgraded curl (7.19.2-1 -> 7.19.3-1)
    [2009-02-10 13:10] upgraded pycairo (1.8.0-2 -> 1.8.2-1)
    [2009-02-10 13:10] upgraded pygtk (2.13.0-2 -> 2.14.0-1)
    [2009-02-10 13:10] upgraded deluge (1.1.0-1 -> 1.1.2-1)
    [2009-02-10 13:10] upgraded device-mapper (1.02.29-1 -> 1.02.30-1)
    [2009-02-10 13:10] upgraded ed (1.1-2 -> 1.2-1)
    [2009-02-10 13:10] upgraded eigen (1.0.5-1 -> 2.0.0-1)
    [2009-02-10 13:10] upgraded fakeroot (1.11.4-1 -> 1.12.1-1)
    [2009-02-10 13:10] upgraded file (4.26-1 -> 5.00-1)
    [2009-02-10 13:10] upgraded gcc (4.3.2-2 -> 4.3.3-1)
    [2009-02-10 13:10] upgraded libtasn1 (1.7-1 -> 1.8-1)
    [2009-02-10 13:10] upgraded gnutls (2.6.3-1 -> 2.6.4-1)
    [2009-02-10 13:10] upgraded inputproto (1.4.4-1 -> 1.5.0-1)
    [2009-02-10 13:10] upgraded xextproto (7.0.4-1 -> 7.0.5-1)
    [2009-02-10 13:10] upgraded libxext (1.0.4-1 -> 1.0.5-1)
    [2009-02-10 13:10] upgraded ghostscript (8.63-4 -> 8.64-1)
    [2009-02-10 13:10] upgraded hwdetect (2008.12-4 -> 2009.01-1)
    [2009-02-10 13:10] upgraded imagemagick (6.4.8.2-1 -> 6.4.9.2-1)
    [2009-02-10 13:10] upgraded inetutils (1.6-2 -> 1.6-3)
    [2009-02-10 13:10] warning: /etc/inittab installed as /etc/inittab.pacnew
    [2009-02-10 13:10] upgraded initscripts (2008.09-2 -> 2009.01-1)
    [2009-02-10 13:11] update desktop mime database ...
    [2009-02-10 13:11] upgraded inkscape (0.46-9 -> 0.46-10)
    [2009-02-10 13:11] upgraded mkinitcpio (0.5.21-1 -> 0.5.23-1)
    [2009-02-10 13:11] >>>
    [2009-02-10 13:11] >>> If you use the LILO bootloader, you should run 'lilo' before rebooting.
    [2009-02-10 13:11] >>>
    [2009-02-10 13:11] >>> Updating module dependencies. Please wait ...
    [2009-02-10 13:11] >>> MKINITCPIO SETUP
    [2009-02-10 13:11] >>> ----------------
    [2009-02-10 13:11] >>> If you use LVM2, Encrypted root or software RAID,
    [2009-02-10 13:11] >>> Ensure you enable support in /etc/mkinitcpio.conf .
    [2009-02-10 13:11] >>> More information about mkinitcpio setup can be found here:
    [2009-02-10 13:11] >>> http://wiki.archlinux.org/index.php/Mkinitcpio
    [2009-02-10 13:11]
    [2009-02-10 13:11] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    [2009-02-10 13:11] ==> Building image "default"
    [2009-02-10 13:11] ==> Running command: /sbin/mkinitcpio -k 2.6.28-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
    [2009-02-10 13:11] :: Begin dry run
    [2009-02-10 13:11] :: Parsing hook [base]
    [2009-02-10 13:11] :: Parsing hook [udev]
    [2009-02-10 13:11] :: Parsing hook [autodetect]
    [2009-02-10 13:11] :: Parsing hook [pata]
    [2009-02-10 13:11] :: Parsing hook [scsi]
    [2009-02-10 13:11] :: Parsing hook [sata]
    [2009-02-10 13:11] :: Parsing hook [usb]
    [2009-02-10 13:11] :: Parsing hook [keymap]
    [2009-02-10 13:11] :: Parsing hook [filesystems]
    [2009-02-10 13:11] :: Generating module dependencies
    [2009-02-10 13:11] :: Generating image '/boot/kernel26.img'...SUCCESS
    [2009-02-10 13:11] ==> SUCCESS
    [2009-02-10 13:11] ==> Building image "fallback"
    [2009-02-10 13:11] ==> Running command: /sbin/mkinitcpio -k 2.6.28-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
    [2009-02-10 13:11] :: Begin dry run
    [2009-02-10 13:11] :: Parsing hook [base]
    [2009-02-10 13:11] :: Parsing hook [udev]
    [2009-02-10 13:11] :: Parsing hook [pata]
    [2009-02-10 13:11] :: Parsing hook [scsi]
    [2009-02-10 13:11] :: Parsing hook [sata]
    [2009-02-10 13:11] :: Parsing hook [usb]
    [2009-02-10 13:12] :: Parsing hook [keymap]
    [2009-02-10 13:12] :: Parsing hook [filesystems]
    [2009-02-10 13:12] :: Generating module dependencies
    [2009-02-10 13:12] :: Generating image '/boot/kernel26-fallback.img'...SUCCESS
    [2009-02-10 13:12] ==> SUCCESS
    [2009-02-10 13:12] upgraded kernel26 (2.6.28.1-1 -> 2.6.28.4-1)
    [2009-02-10 13:12] upgraded lib32-freetype2 (2.3.7-1 -> 2.3.8-1)
    [2009-02-10 13:12] upgraded lib32-gcc-libs (4.3.2-1 -> 4.3.3-1)
    [2009-02-10 13:12] upgraded lib32-gtk2 (2.14.6-1 -> 2.14.7-1)
    [2009-02-10 13:12] upgraded lib32-readline (5.2-8 -> 5.2.013-1)
    [2009-02-10 13:12] upgraded libice (1.0.4-1 -> 1.0.5-1)
    [2009-02-10 13:12] upgraded libmikmod (3.1.12-1 -> 3.1.12-2)
    [2009-02-10 13:12] upgraded libnova (0.12.2-1 -> 0.12.3-1)
    [2009-02-10 13:12] upgraded libsndfile (1.0.17-2 -> 1.0.18-1)
    [2009-02-10 13:12] upgraded libsamplerate (0.1.4-1 -> 0.1.6-1)
    [2009-02-10 13:12] upgraded libxi (1.1.4-1 -> 1.2.0-1)
    [2009-02-10 13:12] upgraded lvm2 (2.02.43-1 -> 2.02.44-1)
    [2009-02-10 13:12] upgraded man-pages (3.16-1 -> 3.17-1)
    [2009-02-10 13:12] upgraded mlocate (0.21-1 -> 0.21.1-1)
    [2009-02-10 13:12] upgraded opal (3.4.4-2 -> 3.4.4-2.1)
    [2009-02-10 13:12] * relogin or source /etc/profile.d/openoffice.sh
    [2009-02-10 13:12] * see http://wiki.archlinux.org/index.php/Openoffice
    [2009-02-10 13:12] how to use extensions, e.g. for spell checking
    [2009-02-10 13:12] see /opt/openoffice/share/extension/install what
    [2009-02-10 13:12] is shipped with this package
    [2009-02-10 13:12] upgraded openoffice-base (3.0.0-4 -> 3.0.1-1)
    [2009-02-10 13:12] upgraded patch (2.5.9-1 -> 2.5.9-2)
    [2009-02-10 13:12] upgraded php (5.2.7-2 -> 5.2.8-1)
    [2009-02-10 13:13] upgraded pidgin (2.5.3-1 -> 2.5.4-1)
    [2009-02-10 13:13] upgraded pixman (0.12.0-1 -> 0.14.0-1)
    [2009-02-10 13:13] upgraded pycups (1.9.42-2 -> 1.9.45-1)
    [2009-02-10 13:13] upgraded qt (4.4.3-4 -> 4.4.3-5)
    [2009-02-10 13:13] upgraded reiserfsprogs (3.6.20-3 -> 3.6.21-1)
    [2009-02-10 13:13] upgraded sdparm (1.03-1 -> 1.03-2)
    [2009-02-10 13:13] upgraded smpeg (0.4.4-4 -> 0.4.4-5)
    [2009-02-10 13:13] upgraded sound-theme-freedesktop (0.1-1 -> 0.2-1)
    [2009-02-10 13:13] upgraded syslog-ng (2.0.9-1 -> 2.1.3-2)
    [2009-02-10 13:13] upgraded system-config-printer (1.1.1-1 -> 1.1.3-1)
    [2009-02-10 13:13] extracting fonts... done.
    [2009-02-10 13:13] rebuilding font cache... done.
    [2009-02-10 13:13] upgraded ttf-ms-fonts (2.0-1 -> 2.0-2)
    [2009-02-10 13:13] upgraded unrar (3.8.5-1 -> 3.8.5-2)
    [2009-02-10 13:13] upgraded vlc (0.9.8a-4 -> 0.9.8a-5)
    [2009-02-10 13:13] upgraded wireshark (1.0.5-1 -> 1.0.6-1)
    [2009-02-10 13:13] upgraded xcb-util (0.3.2-1 -> 0.3.3-1)
    [2009-02-10 13:13] upgraded xf86-input-evdev (2.1.0-1 -> 2.1.2-1)
    [2009-02-10 13:13] upgraded xf86-input-keyboard (1.3.1-1 -> 1.3.2-1)
    [2009-02-10 13:13] upgraded xf86-input-synaptics (0.99.3-1 -> 1.0.0-1)
    [2009-02-10 13:13] upgraded xine-lib (1.1.16.1-1 -> 1.1.16.1-2)
    [2009-02-10 13:13] upgraded xkeyboard-config (1.4-2 -> 1.5-1)
    [2009-02-10 13:13] upgraded xorg-xinit (1.1.0-1 -> 1.1.1-1)
    [2009-02-10 13:13] upgraded xterm (239-1 -> 241-1)
    [2009-02-10 15:15] synchronizing package lists
    [2009-02-10 15:16] starting full system upgrade
    [2009-02-10 15:17] ==> to use yaourt as user,add these entries to /etc/sudoers:
    [2009-02-10 15:17] user ALL=NOPASSWD: /usr/bin/pacman
    [2009-02-10 15:17] user ALL=NOPASSWD: /usr/bin/pacdiffviewer
    [2009-02-10 15:17] (Please, use sudo very carefully)
    [2009-02-10 15:17] ==> for a full colorized output, install pacman-color and set PacmanBin in /etc/yaourtrc
    [2009-02-10 15:17] upgraded yaourt (0.9.1-1 -> 0.9.2.4-1)
    [2009-02-10 15:18] synchronizing package lists
    [2009-02-10 15:19] starting full system upgrade
    [2009-02-10 15:24] upgraded bin32-wine (1.1.10-1 -> 1.1.14-1)
    [2009-02-10 15:24] Reading package info from stdin ... done.
    [2009-02-10 15:24] Writing new package config file... done.
    [2009-02-10 15:24] upgraded haskell-sdl (0.5.4-1 -> 0.5.5-1)
    [2009-02-10 15:24] Reading package info from stdin ... done.
    [2009-02-10 15:24] Writing new package config file... done.
    [2009-02-10 15:24] upgraded haskell-sdl-ttf (0.5.2-1 -> 0.5.5-1)
    [2009-02-10 15:25] "nspluginwrapper -r $HOME/.mozilla/plugins/* ; nspluginwrapper -v -a -i" to recreate plugins after update
    [2009-02-10 15:25] Konqueror users need to add $HOME/.mozilla/plugins/ to konqueror plugins path
    [2009-02-10 15:25] upgraded nspluginwrapper (1.0.0-1 -> 1.2.2-1)
    [2009-02-10 15:25] installed lib32-curl (7.19.3-1)
    [2009-02-10 15:25] installed lib32-nspr (4.7.3-1)
    [2009-02-10 15:25] installed lib32-sqlite3 (3.6.10-1)
    [2009-02-10 15:25] installed lib32-nss (3.12.2-1)
    [2009-02-10 15:26] Run
    [2009-02-10 15:26] nspluginwrapper -v -r ~/.mozilla/plugins/npwrapper.libflashplayer.so
    [2009-02-10 15:26] nspluginwrapper -v -a -i
    [2009-02-10 15:26] to upgrade the plugin
    [2009-02-10 15:26] upgraded nspluginwrapper-flash (9.0.124.0-1 -> 10.0.15.3-3)

  • A problem with ArrayLists

    Hello
    I'm pretty new to Java, and sometimes all those objects, instances, classes, data types etc confuse me. I'm having some kind of a problem with ArrayLists (tried with vectors too, didn't work) . I'm writing a program which takes float numbers from user input and does stuff to them. No syntax error in my code, but I get a java.lang.ClassCastException when I run it.
    I insert stuff to the ArrayList like this:
    luku.add(new Float(syotettyLuku));no problem
    I'm trying to access information from the list like this inside a while loop
    float lukui = new Float((String)luku.get(i)) .floatValue();but the exception comes when the programme hits that line, no matter which value i has.
    Tried this too, said that types are incompatible:
    float lukui = ((float)luku.get(i)) .floatValue();What am I doing wrong? I couldn't find any good tutorials about using lists, so i'm really lost here.
    I'll post the whole code here, if it helps. Sorry about the Finnish variable and method names, but you get the idea :)
    package esa;
    import java.io.*;
    import java.util.*;
    public class Esa {
    static final int maxLukuja = 100;
    static BufferedReader syote = new BufferedReader(new InputStreamReader(System.in));
    static String rivi;
    static String lopetuskasky = "exit";
    static double keskiarvo;
    static ArrayList luku = new ArrayList();
    static int lukuja;
    static float summa = 0;
    // M��ritell��n pari metodia, joiden avulla voidaan tarkastaa onko tarkasteltava muuttuja liukuluku
    static Float formatFloat(String rivi) {
        if (rivi == null) {
            return null;
        try {
            return new Float(rivi);
        catch(NumberFormatException e) {
            return null;
    static boolean isFloat(String rivi) {
        return (formatFloat(rivi) != null);
    // Luetaan luvut k�ytt�j�lt� ja tallnnetaan ne luku-taulukkoon
    static void lueLuvut() throws IOException{
        int i = 0;
        float syotettyLuku;
        while(i < maxLukuja) {
            System.out.println("Anna luku kerrallaan ja paina enter. Kun halaut lopettaa, n�pp�ile exit");
            rivi = syote.readLine();
            boolean onkoLiukuluku = isFloat(rivi);
            if (onkoLiukuluku) {
                syotettyLuku = Float.parseFloat(rivi);
                if (syotettyLuku == 0) {
                    lukuja = luku.size();              
                    break;
                }  // if syotettyluku
                else {
                    luku.add(new Float(syotettyLuku));
                    i++;
                } // else
            } // if onkoLiukuluku
            else {
               System.out.println("Antamasi luku ei ole oikeaa muotoa, yrit� uudelleen.");
               System.out.println("");
            } // else
        } // while i < maxlukuja
    // lueLuvut
    static void laskeKeskiarvo() {
        int i = 0;
        while(i < lukuja) {
            float lukui = ((float)luku.get(i)) .floatValue();
            System.out.println(lukui);
            summa = summa + lukui;
        }   i++;
        keskiarvo = (summa / lukuja);
    } // laskeKeskiarvo
    public static void main(String args[]) throws IOException {
    lueLuvut();
    laskeKeskiarvo();
    } // main
    } // class

    Thanks! Now it's functioning.
    As I mentioned, I tried this:
    float lukui = ((float)luku.get(i))
    .floatValue();And your reply was:
    float lukui =
    ((Float)luku.get(i)).floatValue So the problem really was the spelling, it should
    have been Float with a capital F.
    From what I understand, Float refers to the Float
    class, Correct. And float refers to the float primitive type. Objects and primitives are not interchangeable. You need to take explicit steps to convert between them. Although, in 1.5/5.0, autoboxing/unboxing hide some of this for you.
    so why isn't just a regular float datatype
    doing the job here, like with the variable lukui?Not entirely sure what you're asking.
    Collections take objects, not primitives, and since you put an object in, you get an object out. You then have to take the extra step to get a primitive representation of that object. You can't just cast between objects and primitives.
    Again, autoboxing will relieve some of this drudgery. I haven't used it myself yet, so I can't comment on how good or bad it is.

  • Problem With File Reading And Sorting

    I'm having problems with a particular task. Here is what I have to do:
    Write a program which reads 100 integers from a file. Store these integers
    in an array in the order in whcih they are read. Print them to the screen.
    Sort the integers in place using bubble sort. Print the sorted array to the
    screen. Now implement the sieve of Eratosthenes to place all prime numbers
    in an ArrayList. Print that list to the screen.
    Here is the code I have so far:
    import java.util.ArrayList;
    import java.io.*;
    public class Eratosthenes
        private ArrayList numbers;
        private String inputfile1 = "numbers.txt";
        public Eratosthenes()
            numbers = new ArrayList();
        public void readData()
            try {
                BufferedReader reader = new BufferedReader(new FileReader(inputfile1));
                for(int i = 1; i <= 100; i++) {
                    String temp = reader.readLine();
                    numbers.add();
            catch(Exception e)
    This is the file reading part I have done but it doesn't recognise the line numbers.add() . It brings up the error - 'Cannot resolve symbol - method add(). Thats the first problem I have, can anyone see any way to fix it and to achieve the task. Also can someone help with the structure of a bubble sort method and a sieve of Eratosthenes method as I have no clue whatsoever. Any help will be greatly appreciated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Ok, I've done that but I'm having another problem. When I'm printing an output to the screen, it prints 100 lines of integers and not 1 line of 100 integers. Can you see the problem in the code that is doing this?
    import java.util.ArrayList;
    import java.io.*;
    public class Eratosthenes
        private ArrayList numbers;
        private String inputfile1 = "numbers.txt";
        public Eratosthenes()
            numbers = new ArrayList();
        public void readData()
            try {
                BufferedReader reader = new BufferedReader(new FileReader(inputfile1));
                for(int i = 1; i <= 100; i++) {
                    String temp = reader.readLine();
                    numbers.add(temp);
                    System.out.println(numbers);
            catch(Exception e)
    }

  • Problem with file permissions

    Hello all,
    I am making a simple HttpServlet, which takes input
    from html page and saves in to a file, but I'm having a
    bit of a problem with file permissions.
    I'm getting the following exception
    java.security.AccessControlException: access denied (java.io.FilePermission ./data/result read)
         java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         java.security.AccessController.checkPermission(AccessController.java:427)
         java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         java.lang.SecurityManager.checkRead(SecurityManager.java:871)
         java.io.File.exists(File.java:700)
         SyksyHTTPServlet.doPost(SyksyHTTPServlet.java:31)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)The exception seems to occur when I'm trying to check whether the file already
    exists or not.
    The data directory has all permissions (read, write and execute) set for all users,
    and I have made an empty file called result inside the data directory for testing.
    This file has read and write permissions enabled for all users.
    Here's my code
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.Enumeration;
    import java.util.List;
    import java.util.ArrayList;
    public class SyksyHTTPServlet extends HttpServlet
         public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              int totalCount = 0;
              List list;
              String song = request.getParameter("song");
              PrintWriter out = response.getWriter();
              File file = new File("./data/result");
              if(file.exists())  // this is line 31, which seems to cause the exception
                   list = readFile(file);
              else
                   file.createNewFile();
                   list = new ArrayList();
              list.add(song);
              writeFile(file, list);
              for(int i = 0 ; i < list.size() ; i++)
                   out.println(list.get(i));
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              doPost(request, response);
         private List readFile(File file)
              List list = null;
              try
                   FileInputStream fis = new FileInputStream(file);
                   ObjectInputStream ois = new ObjectInputStream(fis);
                   list = (ArrayList)ois.readObject();
                   ois.close();
              catch(Exception e)
                   e.printStackTrace();
              return list;
         private void writeFile(File file, List list)
              try
                   FileOutputStream fos = new FileOutputStream(file);
                   ObjectOutputStream oos = new ObjectOutputStream(fos);
                   oos.writeObject(list);
                   oos.flush();
                   oos.close();
              catch(Exception e)
                   e.printStackTrace();
    }I'm using Tomcat 5.5 on Ubuntu Linux, if that has anything to do with this.
    I'll appreciate all help.
    kari-matti

    Hello again.
    I'm still having problems with this. I made
    a simple servlet that reads from and writes
    to text file. The reading part work fine on my
    computer, but the writing doesn't, not even
    an exception is thrown if the file exists that
    I'm trying to write to. If I try to create a new
    file I'll get an exception about file permissions.
    I also asked a friend of mine to try this same
    servlet on his windows computer and it works
    as it should.
    Here's the code
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class ReadServlet extends HttpServlet
         public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              String s = "";
              PrintWriter out = response.getWriter();
              String docroot = getServletContext().getRealPath( "/" );
              out.println("docroot: "+docroot);
              File file = new File(docroot+"test.txt");
              if(file.exists())
                   s = readFile(file);
                   out.println(s);
              else
                   out.println("file not found");
                   //file.createNewFile();                    // causes exception
                   //out.println("new file created.");
              writeFile(file, "written by servlet");
              out.println("Now look in the file "+file.getPath());
              out.println("and see if it contains text 'written by servlet'");
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              doPost(request, response);
         private String readFile(File file)
              FileInputStream fis = null;
              BufferedInputStream bis = null;
              DataInputStream dis = null;
              String s = "";
              try
                   fis = new FileInputStream(file);
                   bis = new BufferedInputStream(fis);
                   dis = new DataInputStream(bis);
                   s = dis.readLine();
                   fis.close();
                   bis.close();
                   dis.close();
              catch(Exception e)
                   e.printStackTrace();
              return s;
         private void writeFile(File file, String s)
              FileOutputStream fos = null;
              BufferedOutputStream bos = null;
              DataOutputStream dos = null;
              try
                   fos = new FileOutputStream(file);
                   bos = new BufferedOutputStream(fos);
                   dos = new DataOutputStream(bos);
                   dos.writeChars(s);
                   fos.flush();
                   bos.flush();
                   dos.flush();
                   fos.close();
                   bos.close();
                   dos.close();
              catch(Exception e)
                   e.printStackTrace();
    }And if someone wants to test this servlet I can
    give a war package.
    Any advices?
    kari-matti

  • NT security problems with file I/O

    I have 2 problems with file I/O. When I read from a file I use the getAbsolutePath() method that is part of the File class to find what directory the files are currenlty. The problem is that the returned path says that the file is on the desktop no matter what directory the file really is in. The second problem is that I am unable to save files anywhere but the desktop. I must run the class files from the desktop too to get it to work.
    I am using NT 4.0 for development. I'm guessing that these problems might be NT security related. Could someone help me?
    Code below:
    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    import java.io.File;
    import java.awt.event.*;
    //import java.security.*;
    //import sun.security.*;
    //import java.awt.Window;
    //import com.ms.security.*;
    public class Edit extends Applet implements ActionListener, ItemListener
    String Gselect;
    reader readit;
    int mhz, khz;
    TextField textField1;
    String freq = "000.000";
    String data;
    Choice freqC;
    Button ActivateB, SaveB, /*CancelB, HelpB,*/ DeleteB;
    Checkbox SetC;
    int NotUsedReply[] = new int[200];
    int HwListReply[] = new int[200];
    public void init()
    readit = new reader();
    String myFile="satellite.st1";
    // myFile = myFile.concat(Gselect);
    File satellite = new File(myFile);
    textField1 = new TextField();
    textField1.setText( "(void) " );
    add( textField1 );
    SetC = new Checkbox("TRAP-RX");
    add(SetC);
    SetC.addItemListener(this);
    freqC = new Choice();
    freqC.setSize(20,50);
    freqC.add("000.000");
    add(freqC);
    freqC.addItemListener(this);
    ActivateB = new Button("Activate");
    add(ActivateB);
    ActivateB.addActionListener(this);
    SaveB = new Button("Save");
    add(SaveB);
    SaveB.addActionListener(this);
    DeleteB = new Button("Delete");
    add(DeleteB);
    DeleteB.addActionListener(this);
         /*CancelB = new Button("Cancel");
    add(CancelB);
    CancelB.addActionListener(this);
         HelpB = new Button("Help");
    add(HelpB);
    HelpB.addActionListener(this);*/
    //textField1.setText( data );
    for(int a = 1; a < 9; a++)
    data = readit.getData(satellite.getAbsolutePath(), a);//("E:\\forte4j\\system\\Projects\\Zebra\\satellite.st1", a);
    freqC.addItem(data);
    textField1.setText(satellite.getAbsolutePath() );
    public void paint(Graphics g)
    //g.drawString("Radio Setup Files",20, 20);
    //g.drawString(getParameter("wse"),20, 20);
    public void actionPerformed(ActionEvent event)
    if(event.getSource() == ActivateB)
    activator();
    if(event.getSource() == SaveB)
    /*if(event.getSource() == CancelB)
    stop();
    if(event.getSource() == HelpB)
    if(event.getSource() == DeleteB)
    public void itemStateChanged(ItemEvent e)
    if(e.getItemSelectable() == SetC)
    textField1.setText("Check box 1 clicked!");
    if(e.getItemSelectable() == freqC)
    freq = ((Choice)e.getItemSelectable()).getSelectedItem();
    public void activator()
    makeMHZ();
    makeKHZ();
    if(mhz > 254)
    int StartLink[]={0x0c,0x01,0x07,0x00,0x00,0x00,0x00,0x00,0x00};          //New Link Proc Start
    int TrapConfig[]={0x25,0x80,0x00,0x00,0x00,0xb7,0x00,0x0c,0x0b,          //TRAP Configuration
    0x00,0x00,0x00,0xff,0xa0,0xff,0x0d,0xff,0xe8,
    0xff,0x0d,0xff,0x00,0xff,0x15,0xff,0xb0,0xff,
    0xff,0xff,0x94,0x0a,0x01,0x06,0x1a,0x00,0x0d,
    0x2d,0x21};
    TrapConfig[11]=(mhz-255);
    TrapConfig[12]=(khz/5);
    int SetUserOutput[]={0x41,0x42,0x49,0x54,0x52,0x41,0x50,0x20,0x34, //Sets User Output Format
    0x35,0x34,0x35,0x30,0x30,0x2e,0x30,0x4e,0x30,
    0x38,0x32,0x34,0x35,0x30,0x30,0x2e,0x30,0x57,
    0x30,0x31,0x30,0x30,0x2e,0x30,0x30,0x4b,0x4d,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00};
    sendget CmdFunc;
    CmdFunc=new sendget();
    try
    //PolicyEngine.assertPermission(PermissionID.SYSTEM);
    Socket h = new Socket("192.9.200.155",9000);
    Socket s = new Socket("192.9.200.155",9001);
    Socket t = new Socket("192.9.200.155",9002);
    int j;
    CmdFunc.SendCmd(h,0,0x01,null);
    CmdFunc.GetCmd(h,HwListReply);
    CmdFunc.SendCmd(s,9,0x1e,StartLink); //New Link Proc Start
    CmdFunc.GetCmd(s,NotUsedReply);
    CmdFunc.SendCmd(s,37,0x00,TrapConfig); //TRAP Configuration
    CmdFunc.GetCmd(s,NotUsedReply);
    CmdFunc.SendCmd(s,155,0x03,SetUserOutput);//Sets User Output Format
    CmdFunc.GetCmd(s,NotUsedReply);
    catch(Exception e){}
    else
    textField1.setText( "000.000 is the null choice. Try another." );
    public void receiveText1( String select )
    Gselect=select;
    public void makeMHZ()
    String y = freqC.getSelectedItem();
    y = y.substring(0,3);
    mhz = Integer.parseInt(y);
    //textField1.setText( y );
    public void makeKHZ()
    String y = freqC.getSelectedItem();
    y = y.substring(4,7);
    khz = Integer.parseInt(y);
    //textField1.setText( y );
    import java.awt.*;
    import java.applet.*;
    import java.io.RandomAccessFile;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.LineNumberReader;
    import java.awt.event.*;
    import com.ms.security.*;
    import netscape.security.*;
    import netscape.util.*;
    public class saver extends Applet implements ActionListener
    String nameS = "Data.txt";
    String dataS = "Default Data";
    Button saveB;
    public void init()
    saveB = new Button("SaveFile");
    add(saveB);
    saveB.addActionListener(this);
    public void actionPerformed(ActionEvent event)
    if(event.getSource() == saveB)
    RandomAccessFile RAF;
    byte array0[] = dataS.getBytes();
    try
    if (Class.forName("com.ms.security.PolicyEngine") != null)
    PolicyEngine.assertPermission(PermissionID.SYSTEM);
    if(Class.forName("netscape.security.PrivilegeManager") != null)
    netscape.security.PrivilegeManager.enablePrivilege("UniversalFileWrite");
    catch (Throwable cnfe)
    try
    RAF = new RandomAccessFile(nameS, "rw");
    // RAF.writeUTF(dataS);
    RAF.write(dataS.getBytes());
    RAF.close();
    catch(Exception e)
    public void receiveND(String name, String data)
    if(name != null)
    nameS = name;
    dataS=data;
    import java.io.RandomAccessFile;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.LineNumberReader;
    //import java.security.*;
    import com.ms.security.*;
    import netscape.security.*;
    import netscape.util.*;
    public class reader
    //Signature sig;
    public String getData(String filename, int pass)
    //String nameS = "Data.txt";
    String dataS = "Default Data Sucks";
    String comma = ",";
    int get = pass, count=0, top=0, bottom=0;
    char[] work;
    try
    if (Class.forName("com.ms.security.PolicyEngine") != null)
    PolicyEngine.assertPermission(PermissionID.SYSTEM);
    if(Class.forName("netscape.security.PrivilegeManager") != null)
    netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");
    catch (Throwable cnfe)
    try
    //sig.sign();
    //nameS = filename;
    RandomAccessFile RAF = new RandomAccessFile(filename, "r");
    // dataS = RAF.readUTF();
    dataS = RAF.readLine();
    RAF.close();
    catch(Exception e)
    return e.toString();
    work = dataS.toCharArray();
    for(int i = 0; i < dataS.length(); i++)
    if( work[i] == ',' )
    count++;
    if(get == count)
    bottom = i + 1;
    if( (work[i] == ',') && (count > get) && (top == 0) )
    top = i;
    dataS = dataS.substring(bottom,top);
    return dataS;
    }

    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    import java.io.File;
    import java.awt.event.*;
    //import java.security.*;
    //import sun.security.*;
    //import java.awt.Window;
    //import com.ms.security.*;
    public class Edit extends Applet implements ActionListener, ItemListener
    String Gselect;
    reader readit;
    int mhz, khz;
    TextField textField1;
    String freq = "000.000";
    String data;
    Choice freqC;
    Button ActivateB, SaveB, /*CancelB, HelpB,*/ DeleteB;
    Checkbox SetC;
    int NotUsedReply[] = new int[200];
    int HwListReply[] = new int[200];
    public void init()
    readit = new reader();
    String myFile="satellite.st1";
    // myFile = myFile.concat(Gselect);
    File satellite = new File(myFile);
    textField1 = new TextField();
    textField1.setText( "(void) " );
    add( textField1 );
    SetC = new Checkbox("TRAP-RX");
    add(SetC);
    SetC.addItemListener(this);
    freqC = new Choice();
    freqC.setSize(20,50);
    freqC.add("000.000");
    add(freqC);
    freqC.addItemListener(this);
    ActivateB = new Button("Activate");
    add(ActivateB);
    ActivateB.addActionListener(this);
    SaveB = new Button("Save");
    add(SaveB);
    SaveB.addActionListener(this);
    DeleteB = new Button("Delete");
    add(DeleteB);
    DeleteB.addActionListener(this);
    /*CancelB = new Button("Cancel");
    add(CancelB);
    CancelB.addActionListener(this);
    HelpB = new Button("Help");
    add(HelpB);
    HelpB.addActionListener(this);*/
    //textField1.setText( data );
    for(int a = 1; a < 9; a++)
    data = readit.getData(satellite.getAbsolutePath(), a);//("E:\\forte4j\\system\\Projects\\Zebra\\satellite.st1", a);
    freqC.addItem(data);
    textField1.setText(satellite.getAbsolutePath() );
    public void paint(Graphics g)
    //g.drawString("Radio Setup Files",20, 20);
    //g.drawString(getParameter("wse"),20, 20);
    public void actionPerformed(ActionEvent event)
    if(event.getSource() == ActivateB)
    activator();
    if(event.getSource() == SaveB)
    /*if(event.getSource() == CancelB)
    stop();
    if(event.getSource() == HelpB)
    if(event.getSource() == DeleteB)
    public void itemStateChanged(ItemEvent e)
    if(e.getItemSelectable() == SetC)
    textField1.setText("Check box 1 clicked!");
    if(e.getItemSelectable() == freqC)
    freq = ((Choice)e.getItemSelectable()).getSelectedItem();
    public void activator()
    makeMHZ();
    makeKHZ();
    if(mhz > 254)
    int StartLink[]={0x0c,0x01,0x07,0x00,0x00,0x00,0x00,0x00,0x00}; //New Link Proc Start
    int TrapConfig[]={0x25,0x80,0x00,0x00,0x00,0xb7,0x00,0x0c,0x0b, //TRAP Configuration
    0x00,0x00,0x00,0xff,0xa0,0xff,0x0d,0xff,0xe8,
    0xff,0x0d,0xff,0x00,0xff,0x15,0xff,0xb0,0xff,
    0xff,0xff,0x94,0x0a,0x01,0x06,0x1a,0x00,0x0d,
    0x2d,0x21};
    TrapConfig[11]=(mhz-255);
    TrapConfig[12]=(khz/5);
    int SetUserOutput[]={0x41,0x42,0x49,0x54,0x52,0x41,0x50,0x20,0x34, //Sets User Output Format
    0x35,0x34,0x35,0x30,0x30,0x2e,0x30,0x4e,0x30,
    0x38,0x32,0x34,0x35,0x30,0x30,0x2e,0x30,0x57,
    0x30,0x31,0x30,0x30,0x2e,0x30,0x30,0x4b,0x4d,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    0x00,0x00};
    sendget CmdFunc;
    CmdFunc=new sendget();
    try
    //PolicyEngine.assertPermission(PermissionID.SYSTEM);
    Socket h = new Socket("192.9.200.155",9000);
    Socket s = new Socket("192.9.200.155",9001);
    Socket t = new Socket("192.9.200.155",9002);
    int j;
    CmdFunc.SendCmd(h,0,0x01,null);
    CmdFunc.GetCmd(h,HwListReply);
    CmdFunc.SendCmd(s,9,0x1e,StartLink); //New Link Proc Start
    CmdFunc.GetCmd(s,NotUsedReply);
    CmdFunc.SendCmd(s,37,0x00,TrapConfig); //TRAP Configuration
    CmdFunc.GetCmd(s,NotUsedReply);
    CmdFunc.SendCmd(s,155,0x03,SetUserOutput);//Sets User Output Format
    CmdFunc.GetCmd(s,NotUsedReply);
    catch(Exception e){}
    else
    textField1.setText( "000.000 is the null choice. Try another." );
    public void receiveText1( String select )
    Gselect=select;
    public void makeMHZ()
    String y = freqC.getSelectedItem();
    y = y.substring(0,3);
    mhz = Integer.parseInt(y);
    //textField1.setText( y );
    public void makeKHZ()
    String y = freqC.getSelectedItem();
    y = y.substring(4,7);
    khz = Integer.parseInt(y);
    //textField1.setText( y );
    import java.awt.*;
    import java.applet.*;
    import java.io.RandomAccessFile;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.LineNumberReader;
    import java.awt.event.*;
    import com.ms.security.*;
    import netscape.security.*;
    import netscape.util.*;
    public class saver extends Applet implements ActionListener
    String nameS = "Data.txt";
    String dataS = "Default Data";
    Button saveB;
    public void init()
    saveB = new Button("SaveFile");
    add(saveB);
    saveB.addActionListener(this);
    public void actionPerformed(ActionEvent event)
    if(event.getSource() == saveB)
    RandomAccessFile RAF;
    byte array0[] = dataS.getBytes();
    try
    if (Class.forName("com.ms.security.PolicyEngine") != null)
    PolicyEngine.assertPermission(PermissionID.SYSTEM);
    if(Class.forName("netscape.security.PrivilegeManager") != null)
    netscape.security.PrivilegeManager.enablePrivilege("UniversalFileWrite");
    catch (Throwable cnfe)
    try
    RAF = new RandomAccessFile(nameS, "rw");
    // RAF.writeUTF(dataS);
    RAF.write(dataS.getBytes());
    RAF.close();
    catch(Exception e)
    public void receiveND(String name, String data)
    if(name != null)
    nameS = name;
    dataS=data;
    import java.io.RandomAccessFile;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.LineNumberReader;
    //import java.security.*;
    import com.ms.security.*;
    import netscape.security.*;
    import netscape.util.*;
    public class reader
    //Signature sig;
    public String getData(String filename, int pass)
    //String nameS = "Data.txt";
    String dataS = "Default Data Sucks";
    String comma = ",";
    int get = pass, count=0, top=0, bottom=0;
    char[] work;
    try
    if (Class.forName("com.ms.security.PolicyEngine") != null)
    PolicyEngine.assertPermission(PermissionID.SYSTEM);
    if(Class.forName("netscape.security.PrivilegeManager") != null)
    netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");
    catch (Throwable cnfe)
    try
    //sig.sign();
    //nameS = filename;
    RandomAccessFile RAF = new RandomAccessFile(filename, "r");
    // dataS = RAF.readUTF();
    dataS = RAF.readLine();
    RAF.close();
    catch(Exception e)
    return e.toString();
    work = dataS.toCharArray();
    for(int i = 0; i < dataS.length(); i++)
    if( work == ',' )
    count++;
    if(get == count)
    bottom = i + 1;
    if( (work == ',') && (count > get) && (top == 0) )
    top = i;
    dataS = dataS.substring(bottom,top);
    return dataS;

  • Problem with running multiple servlet in same webapplication with tomcat 3

    Hi all,
    I am using Tomcat 3.0 as webserver with jdk1.3, Servlet 2.0,
    Templates for html file and oracle 8i on UNIX platform.
    I have problem with multiple servlet running same webapplication.
    There are two servlet used in my application. 1) GenServlet.class
                   and 2) ServletForPrinting.class
    All of my pages go through GenServlet.class which reads some property files
    and add header and footer in all pages.
    I want reports without header & footer that is not possible through GenServlet in my application.
    So I have used another servlet called ServletForPrinting --- just for reading html file.
    It is as follow:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ServletForPrinting extends HttpServlet {
    public void service (HttpServletRequest request,
    HttpServletResponse response) throws ServletException, IOException
    // set content-type header before accessing the Writer
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    File f1 = null;
    String report = null;
    String path = request.getPathInfo();
    try{
    String p = "/var/home/latif/proj/webapps/WEB-INF/classes" + path;
    System.out.println(p);
    f1 = new File(p);
    p = null;
    if (f1.exists()) {
    FileReader fr = new FileReader(f1);
    BufferedReader br = new BufferedReader(fr);
    report = new String();
    while ((report = br.readLine()) != null) {
    out.println(report);
    }catch(Exception e) {
    out.close();
    report = null;
    path = null;
    f1 = null;
    } // end class
    It works fine and display report properly.
    But now Problem is that if report is refreshed many times subsequently,
    WebServer will not take any new change in any of java file used in web-application.
    It works with the previous class only and not with updated one.
    Then I need to touch it. As soon as I touch it, webserver will take updated class file.
    Anybody has any idea regarding these situation?
    Is there any bug in my ServletForPrinting.java ?
    Any solution ????? Please suggest me.
    Suggestion from all are invited. That will help me a lot.
    Thanks in advance
    Deepalee.

    Llisas wrote:
    I solved the problem, I just had to wire the blocks in a sequential way (I still don't know why, but it works).
    Feel free to delete this topic.
    I would strongly suggest at least reading this tutorial to give you an idea of why your fix worked (or maybe only appeared to work).  Myself, I never just throw up my hands and say, "Whatever," and wash my hands of the situation without trying my best to understand just what fixed it.  Guranteed you'll run into the same/similar problem and this time your fix won't work.
    Please do yourself a favor and try to understand why it is working now, and save yourself (or more likely, the next poor dev to work on this project) some heartache.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Problems with a thread that records dvd on suse linux

    PLEASE HELP
    I am using SuSE linux, and I record dvd+/- RW with the program growisofs.
    By command line on the linux shell, growisofs records normally, but when I try to use the same line cone that I use in the shell in a java thread, it never stops recording, I mean, it records all data, but it apparently does not close the dvd session, for the grenn light on the drive never stops blinking, and I have to stop the proccess manually, because it never releases the dvd drive.
    I use the thread in a large program, but for debugging this I have made a simple program, whose error is the same.
    the code is:
            String s = "/usr/local/bin/growisofs -speed=1 -M /dev/dvdram  -V MIS27 -A growisofs -P MedImServer " +
               " -p MedImServer -sysid Linux -J -R -l -relaxed-filenames -allow-lowercase -allow-multidot  /windows/C/online";
           Process p;
                try {
                    p = Runtime.getRuntime().exec(s);
                    p.waitFor();
                catch (IOException ex) {
                    JOptionPane.showMessageDialog(null,"erro no runtime");
                    System.exit(0);
                catch (InterruptedException ex1) {
                    JOptionPane.showMessageDialog(null,"erro no waitfor");
                    System.exit(0);
                }with JBuilder 9 debug, I realized that it freezes at the moment of "p.waitFor()".
    I thought that it was a problem with the recording software, but it is not: the same command line that I use in the program I have used in the Linux shell and it recorded perfectly. The program does not require any user interaction but the command line I wrote before. The problem with the Java program is that it records all data, but never returns from the process. It's not a problem with the software, for it records perfectly when it's not called within the Java program, so I imagine that it is some funny thing in either the Runtime.getRuntime().exec(...) or the p.wait().
    Better yet:
    Is there a way to record dvds with a java command instead with an exteranal program?
    This would be the heaven...
    IF it is possible, do it require some sun package?
    Thans
    Tiago

    Did you mean like this?
            Process p = null;
            String s = null;
            File f;
            try {
                f = new File(pathtmp);
                f.mkdir();
                if(VERBOSE) Log.info(GRAVA_LOG_MARK + "Pasta " + f.getPath() + " criada");
                for (Iterator iter = estudos.iterator(); iter.hasNext(); ) {
                    HashMap item = (HashMap) iter.next();
                    String id = (String) item.get("id_paciente");
                    String dt_hr = (String) item.get("dt_hr_estudo");
                    String estudo = id + "." + dt_hr;
                    File dir = new File(distriOff.path);
                    String[] arquivos = dir.list(new FiltroInicio(estudo));
                    for (int i = 0; i < arquivos.length; i++) {
                        File src = new File(distriOff.path + arquivos);
    File dest = new File(pathtmp + arquivos[i]);
    try {
    Util.copy(src, dest);
    catch (Throwable ex) {
    Log.error(mensagem + " " + ex);
    prop.enviaMsg(mensagem + " " + ex);
    throw new ExcecaoDistribuicao(ExcecaoDistribuicao.ERRO, mensagem + " " + ex);
    String os = System.getProperty("os.name");
    String modo;
    if(midia.getEspaco_disponivel_midia() == midia.getTamanho_midia()) {
    //primeira gravagco
    modo = "-Z";
    else {
    //gravagco de novas segues
    modo = "-M";
    String speed = "-speed=1";
    String cmd = "/usr/local/bin/growisofs " + speed + " " + modo + " " + dvdDevice + " "
    +" -V " + prop.getIdMidiaAtual() + " -A growisofs -P MedImServer "
    +"-p MedImServer -sysid " + os + " -J -R -l -relaxed-filenames -allow-lowercase -allow-multidot " + pathtmp;
    p = Runtime.getRuntime().exec(cmd);
    p.waitFor();
    catch (IOException ex){
    Log.error(mensagem + " " + ex);
    prop.enviaMsg(mensagem + " " + ex);
    throw new ExcecaoDistribuicao(ExcecaoDistribuicao.ERRO, mensagem + " " + ex);
    catch (InterruptedException ex) {
    Log.error(mensagem + " " + ex);
    prop.enviaMsg(mensagem + " " + ex);
    throw new ExcecaoDistribuicao(ExcecaoDistribuicao.ERRO, mensagem + " " + ex);
    try
    BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
    // Lj saida padrco do comando
    while ( (s = stdInput.readLine()) != null)
    Log.info(GRAVA_LOG_MARK + s);
    catch (IOException ex)
    Log.error(mensagem + " " + ex);
    prop.enviaMsg(mensagem + " " + ex);
    throw new ExcecaoDistribuicao(ExcecaoDistribuicao.ERRO, mensagem + " " + ex);
    try
    BufferedReader stdErr = new BufferedReader(new InputStreamReader(p.getErrorStream()));
    // Lj qualquer erro do comando
    while ( (s = stdErr.readLine()) != null) {
    Log.info("Processo de Gravagco: " + s);
    if((s.indexOf("failed") != -1) || (s.indexOf("error") != -1) || (s.indexOf("unable") != -1)) {
    Log.error(mensagem + " " + s);
    prop.enviaMsg(mensagem + " " + s);
    throw new ExcecaoDistribuicao(ExcecaoDistribuicao.ERRO, mensagem + " " + s);
    catch (IOException ex)
    Log.error(mensagem + " " + ex);
    prop.enviaMsg(mensagem + " " + ex);
    throw new ExcecaoDistribuicao(ExcecaoDistribuicao.ERRO, mensagem + " " + ex);
    I tried to execute it, and it indeed doesn't freeze, but it doesn't record a thing either...
    now it doesn't even wait for the thread, which is VERY weird: it does not record a thing!!! It just passes by the line 'p.waitFor()'...
    Any sugestion?
    By the way, thanks for helping me...
    Tiago

Maybe you are looking for

  • 9802 with 9870 (serial comms) in Hybrid mode not working

    Hello, I am developing a project with several IO modules in FPGA and a 9870 RS232 module in Scan Engine so that I can use the VISA vis instead of custom FPGA code. This was all working well on a 9025 controller in a 9114 chassis. We just changed over

  • How to set the Screensaver in N72.I have downloade...

    How to set the Screensaver in N72.I have downloaded the screensaver from net

  • Merge files and remove non-static elements

    Where is the feature that allowed images to be merged while removing non-static elements.  I saw a demonstration of removing people from a scene when multiple pictures were taken and the people had changed their positions. This was touted as a featur

  • Importing graphics into iMHD

    I've built some 'title cards' using Graphic Converter. I saved them as .tif files. I can't get them into iMHD. I tried a backdoor method, but they won't import into iPhoto, although they show up in the photo album. What am I doing wrong?

  • Getting Error when creating sales order

    Hello expert, When i ma creating sales order In productive environment, not getting any error. While creating sales order in Quality system The Error is"Order Type ZSOS has not defined in sales area 0201,02.00. I checked customizing and both the syst