ServerSocket accept method

In my application, the serversocket object is waiting forever in the accept() method. The client applications tries to connect but the server doesn?t answer. Is there any bug in JVM or a TCP/socket delay that can explain it ?

Here's code for a simple multi-socket echo server that uses mutiple threads. It takes an argument of a port number. Try it and see if you can connect to it, if not then your problem isn't your code or the Java system. This code works in JDK 1.3, 1.4 and 1.5.
If this doesn't work your problem is likely network related, eg. you are on a private network and trying to connect from the internet.
import java.io.*;
import java.net.*;
import java.util.*;
import java.text.*;
public class Echo
     public static boolean abortFlag = false;
     public static boolean running = false;
     private void start(int port)
          running = true;
          System.out.println("Listening on port="+port);
          try
               ServerSocket ss = new ServerSocket(port);     // listen for connections
               while(running)new EchoUser(ss.accept()).start();     // start a client connection     
          catch(IOException ie){ie.printStackTrace(); System.exit(0);}
     static public void main(String [] args)
          int port = 5050;
          for(int i = 0; i<args.length; i++)
               if(args.equals("-a"))abortFlag = true;
               else
                    try{port = new Integer(args[i]).intValue();}
                    catch(NumberFormatException exc)
                         System.out.println("invalid port"+args[i]);
                         System.exit(0);
          new Echo().start(port);
     private class EchoUser
          private Socket sock = null;
          private InputStream in = null;
          private OutputStream out = null;
          private Thread recvThread;
          private Thread sendThread;
          private String name="";
          private Queue outQ= new Queue();
          private boolean running = false;          
          private long millis;
          private long bytes;
          public EchoUser(Socket sock){this.sock = sock;}
          public int start()
               name = ""+sock.getInetAddress()+":"+sock.getPort();
               System.out.println("Connection received from "+name);
               millis = System.currentTimeMillis();
               try
                    in = sock.getInputStream();
                    out = sock.getOutputStream();
               catch(Exception e){return fail(e);}
               recvThread = new Thread(new Runnable()
               {public void run(){runRecv();}},"Recv."+name);
               sendThread = new Thread(new Runnable()
               {public void run(){runSend();}},"Send."+name );
               running = true;
               sendThread.start();
               recvThread.start();
               return 0;
          private int runRecv()
               byte [] buffer = new byte[8192];
               int length;
               while (running && Echo.running)
                    try{length = in.read(buffer);}
                    catch(Exception e){return fail(e);}
                    if(length < 0)
                         System.out.println("EOF received from "+name);
                         outQ.push(null);
                         return fail(null);
                    else
                         System.out.println("received "+length+" bytes from user="+name);
                         byte [] b = new byte[length];
                         System.arraycopy(buffer,0,b,0,length);                         
                         outQ.push(b);
               return 0;
          private int runSend()
               while(running && Echo.running)
                    Object d = outQ.pop();
                    if(d == null)return 0;
                    byte[] bv = (byte[])d;
                    try
                         out.write(bv);
                         out.flush();
                         bytes+=bv.length;
                    catch(Exception e){return fail(e);}
               return 0;
          private int fail(Exception e)
               int v = 0;
               if(e != null)
                    e.printStackTrace();
                    v = 1;
                    if(Echo.abortFlag)
                         Echo.running = false;
                         System.exit(0);
               if(running)
                    double dur = (System.currentTimeMillis()-millis)/1000.0;
                    double rate = (bytes*8)/dur;
                    DecimalFormat f = (DecimalFormat)DecimalFormat.getInstance();
                    f.applyPattern("###0.00");
                    System.out.println("Closing "+name+": "+bytes+" bytes transferred in "
                         dur"seconds rate="+f.format(rate)+"bps");
                    try{sock.close();}catch(Exception ce){ce.printStackTrace();}
                    running = false;
               return v;
     // a simple queue class between two threads
     private class Queue
          LinkedList q = new LinkedList();
          public synchronized void push(Object obj)
               q.add(obj);
               this.notify();     // tell pop to run with it
          public synchronized Object pop()
               while(q.isEmpty())
                    try{this.wait();}
                    catch (InterruptedException e){}
               return q.remove(0);

Similar Messages

  • ServerSocket accept method is not working...

    ServerSocket provider = new ServerSocket(10000);
    Socket clientSocket = provider .accept();
    In my application accept() has some problem and unable to return Socket instance.Can anyone tell me and suggest some idea.
    Regards,
    Pradeep

    pradeep_dubey wrote:
    ServerSocket provider = new ServerSocket(10000);
    Socket clientSocket = provider .accept();
    In my application accept() has some problem and unable to return Socket instance.No, accept works just fine and is able to return a Socket instance.
    Can anyone tell me and suggest some idea.*** Make sure you're using accept() correctly.
    *** Make sure you're properly interpreting what you're observing before drawing the conclusion "unable to return Socket instance."
    *** Make sure no other process is already listening on that port. (Probably would manifest before you even called accept(), but not having seen your code, test procedures, or thought process, I figured I'd throw it out there.)
    *** Make sure you have permission to open the port on which you're trying to listen. (Probably would manifest before you even called accept(), but not having seen your code, test procedures, or thought process, I figured I'd throw it out there.)
    *** Make sure you're not smothering any exceptions that might be occurring prior to accept() and then going on as if everything were fine.
    *** Provide an SSCCE that shows exactly what you're doing, and describe exactly what is going wrong. "Doesn't work" contains no information.

  • How does the .accept() method work?

    Hi,
    I have checked the source code of the ServerSocket implementation that comes with the jdk.
    I tought I was going to find some type of loop. However I found nothing like that! so how does the accept method work.
    I mean when we call the .accept() method, the thread in which the socketServer is initialized gets stoped untill a new client connection is recieved! how is this actually managed?
    Regards,
    Sim085

    At a guess, the accept call that Java makes, relies on the OS system call through JNI. accept would then block until a new connection is present if you are using blocking.

  • Socket.accept() method ?

    Hi,
    I'm trying to write a networking app. The client seems to work - it sends a String object through an ObjectOutuptStream.
    The problem seems to be that the socket.accept() method in the server isnt working!
    //PlusServer.java
    //Server that takes commands from Android Client, executes commands & finally returns result.
    import java.net.*;
    import java.io.*;
    public class PlusServer
        //instance variables
        static Boolean finished = false;
        //Main method
        public static void main(String[] args)
            System.out.println(" 000 Entered Main method");
            //Disable Security Manager
            //System.setSecurityManager(null);
                try
            ServerSocket listener = new ServerSocket(1234);
            System.out.println("0 setup ServerSocket on port 1234");
                while(!finished)
                    Socket client = listener.accept();//wait for connection
                    //The program doesn't proceed any further! Why?
                    InputStream in = client.getInputStream();
                    OutputStream out = client.getOutputStream();
                    //read cmd
                    ObjectInputStream oin = new ObjectInputStream(in);
                    String cmd = (String)oin.readObject();
                    if (cmd.equals("Connect"))
                        client.close();
                        finished=true;
                    //Send results
                    // blah, blah, blah
                listener.close();   
                catch(Exception e){System.out.println("Error: "+e);}
    }The code for the client is available in another forum, here:
    http://androidforums.com/developer-101/144926-android-network-programming.html#post1333747

    If you plan to use ServerSocket for networking in java, you better get much more familiar and friendly with threads, cause you are going to need them.
    I can't look at the other forum from work to see what the client code is, but your code looks really funny here.
    Some advice, you are obviously new to this part of java coding, stick to sending strings instead of objects while you are new, it is much easier if you just stick to sending strings, and there is nothing you can't do by just sending strings. Even though in some cases sending objects is the better approach, first learn how to do client server communications the easy way and it will then naturally come to you when you should use objects. Your program clearly could have used strings only. And I am willing to bet that you would have possibly seen the problem yourself if you had.
    Also, this is a very poor algorithm. What happens if you want to send two objects (or two strings if you adhear to my advice above)? Do you really think it is necessary and sound to have to reconnect the server and client for every objoct/string you want to send between them? In some cases, perhaps not this one since you are communicating with a mobile device it seems, it is ideal to not ever terminate the connection between the client and server, but instead allow threads to handle keeping open lines of communication.
    Now, were I a betting man, I would bet that in your client code you are either neglecting to flush at all, or doing it incorrectly. Again I can't see that code so I am not certain, but that is a common mistake for people new to this and its symptoms fit with what you are describing seeing perfectly. I highely recomend using autoflush, especially to someone new to network programming.
    JSG
    Edited by: JustSomeGuy on Aug 10, 2010 11:29 AM
    Edited by: JustSomeGuy on Aug 10, 2010 11:30 AM

  • Problem with ServerSocket.accept

    Hi, I'm from Italy so I apologize for my English.
    The problem is this, I created a separated Thread to listen the connections that come from the various clients, when it receive a connection it creates a new Thread to manage the connection.
    The problem is that I need to stop the Thread (the one that look for new connetions), whenever I need it, but how can i do it if the method ServerSocket.accept(); stop the execution of the thread.
    The listener of new connections extends Thread and this is the run method overridden.
    public void run() {
         ServerSocket ss;
         Server myServer; /* Another class that extends Thread to manage the connection */
         while (true) {
              try {
                   ss = new ServerSocket(port, queueLength);
                   Socket sd = ss.accept();
                   myServer = new Server(sd);
                   myServer.start();
              catch (IOException e) {
    }

    public void run() {
        ServerSocket ss;
        Server myServer;
        /* Another class that extends Thread to manage the connection */
        while (true) {
            try {
                ss = new ServerSocket(port, queueLength);
                Socket sd = ss.accept();
                myServer = new Server(sd);
                myServer.start();
            catch (IOException e) {
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Control the socket retuned by ServerSocket.accept()

    Hi,
    I'm writing a server side application that must run behind a firewall.
    In order to allow the clients to connect the server I opened a port in the firewall.
    The problem is that the accpet() uses a random port for the newly created port.
    And this port isn't opened in the firewall.
    Is there away I can force the accept() method to use a specific port of the newly created socket?
    Thanks,
    Guy

    The problem is that the accpet() uses a random port
    for the newly created port.
    And this port isn't opened in the firewall.No it doesn't, it uses the same port as the server socket was listening to. It is probably the client which is using a random outbound port. If the firewall is trying to control the client's port number it shouldn't.

  • Java Interface does not accept method that passes ArrayList...Why?

    Java Interface does not accept method that passes ArrayList...Why?
    for example...
    public interface Interface extends java.rmi.Remote
    public ArrayList getSomething(String ID) throws java.rmi.RemoteException;
    Why is this not acceptable?

    Java Interface does not accept method that passes ArrayList...Why?for example...
    ALSO:
    You are not 'passing' ArrayList, you are returning it.
    If you are 'passing' anything, it is String.
    ~David

  • Distinguishing ServerSocket.accept() exceptions

    I've a multi-threaded server, and one of its threads has a ServerSocket on which it repeatedly calls accept(). Because this call blocks, when I want the thread to terminate nicely I have another thread call close() on that ServerSocket. This works nicely so far.
    The problem I face is that ServerSocket.accept() can presumably also throw an exception if a legitimate attempt to accept an incoming connection fails. In that case I don't want the thread to terminate, I just want it to shrug it off and keep trying to accept new connections.
    Right now I'm handling this by setting a boolean value in the class that manages the ServerSocket just before calling close() on it, but I was wondering if there's a proper way to distinguish between the exception that gets thrown if the ServerSocket is closed and the exception that gets thrown if the attempt to accept a new connection failed. The JavaDoc doesn't say.
    Any pointers? Thanks,
    Richard 'Tony' Goold

    I put my server sockets in a thread. that way, if an exception occurs, then it just kills the thread, not the app.

  • Call and accept method in P2P connection

    Hi,
    People, can anybody give clear idea of call and accept method in P2P connection.
    Sureshkumar G

    Can you please be little more specific ? Do you mean the connection.call between the client and server on RTMFP ?

  • How should i protect accept() method from TooManyOpenFiles?

    I am calling accept() method assuming it will always work, considering it might result in NULL, but i've noticed in some situations the accept will fail and result in a CPU problem because it fails and since i did not do anything with the failure the key might still be valid and it tries to accept over and over again.
    What is the right thing to do here - should i surround with try-catch and it will not attempt to accept the connection again?
            SocketChannel channel = ((ServerSocketChannel) key.channel()).accept();
            if (channel != null)
                if (!isApprovedClient(channel))
                    channel.close();
                    channel = null;
                    rejectedClients++;
                    return;
                acceptedClients++;
                channel.configureBlocking(false);
                BasicContext context = onClientAccept(channel);
                context.setCurrentSocket(channel);
                context.setEstablishTime();
                channel.register(selector, SelectionKey.OP_READ, context);
                log.log(Level.FINER, "Added main-channel {0}", channel.socket().getInetAddress());
            }

    I am calling accept() method assuming it will always work, considering it might result in NULL, but i've noticed in some situations the accept will failFail how?
    and result in a CPU problemWhat CPU problem?
    because it fails and since i did not do anything with the failure the key might still be validWhat key? The key of the ServerSocketChannel? It is valid until you close or deregister it. Nothing to do with accept failures.
    and it tries to accept over and over again.If the accept fails there is no SocketChannel to leak/to be closed.

  • A question about ServerSocket.accept

    HI all
    Please see the following code.
    For example: the server was created, then there's some client connect to the server, the server accept these connections. However how can the server know it can stop to listen?
    How can the server know when they can stop.
    package bdn;
    public class MultipleSocketServer implements Runnable {
      private Socket connection;
      private String TimeStamp;
      private int ID;
      public static void main(String[] args) {
      int port = 19999;
      int count = 0;
        try{
          ServerSocket socket1 = new ServerSocket(port);
          System.out.println("MultipleSocketServer Initialized");
          while (true) {
            Socket connection = socket1.accept();
            Runnable runnable = new MultipleSocketServer(connection, ++count);
            Thread thread = new Thread(runnable);
            thread.start();
        catch (Exception e) {}
    MultipleSocketServer(Socket s, int i) {
      this.connection = s;
      this.ID = i;
    }

    For example: the 5th connection tell the server that him is the last connection, the server can stop to listen. How can the server break the loop an exit?

  • Server Socket only accept from certain IP addresses?

    I'm trying to write a Server Socket that listens for connections. But I only want it to accept connections from known IP addresses. If I'm using the code below:
    try {
    serverSocket = new ServerSocket(myPort);
    } catch (IOException e) {
    for (;;) { //loop forever
    Socket clientSocket = null;
    try {
    clientSocket = serverSocket.accept();
    Is there a way that I can influence the serverSocket.accept() method to make it first check the IP address BEFORE the connection is made? If not, then is it a security vulnerability to do the following code (knownClientAddress is the only IP address I want to accept connections from):
    try {
    serverSocket = new ServerSocket(myPort);
    } catch (IOException e) {
    for (;;) { //loop forever
    Socket clientSocket = null;
    try {
    clientSocket = serverSocket.accept();
    if (clientSocket.getRemoteSocketAddress() != knownClientAddress)
    clientSocket.close();
    }

    jobocop17 wrote:
    what would such an interface look like / example? Would that be sufficient for socket security? Can you spoof the IP when using such a method?He doesn't mean interface in the java type hierarchy sense. He means network interface. Like if your machine is on a LAN, with a 10.0, or 192.168 address AND has a public IP address as well. The IP address can be spoofed no matter where it comes from, but if you're only accepting connections on the NIC that's on your LAN, not from one that's on the WAN, then you may be able to trust all the potential connectors, and not have to worry about filtering the incoming address. The outward facing router should take care of the rest for you, or at the very least, will be better equipped to do so than any code that you could write.

  • TCP Reflector ServerSocket simply want close() !!!

    I have implemented a TCP Reflector which through a ServerSocket creates new threaded Sockets within a while(true) loop. This is attached to a JPanel within a JFrame.
    The class responsible for creating this is a TCPConnectionListener, implementing a TCP Monitor. For each of the new Sockets that gets created from the ServerSocket.accept() method a new Thread is launched with a monitoring Agent to capture all traffic.
    public class TCPConnectionListener implements TCPMonitor {
    while (true) {
          try {
            Socket clientSocket;
            if(! connectionStopped) {
              clientSocket = server.accept();
            else {
              clientSocket = null;
            if(clientSocket != null) {
              con = new TCPConnection(someJPanel,
                                      clientSocket, (TCPConnectionMonitor)this,
                                      this.address, this.port);
          catch (IOException e) {
            System.out.println("ClientSocket IOException..." + e.getMessage());
        public closeConnection() {
          connectionStopped = true;
          // tried various ServerSocket.close(); ServerSocket.setSoTimeout(1), etc...
    }This within the GUI is implemented in the simplest of ways:
    public CurrentJPanel extends JPanel {
       private TCPConnectionListener con;
       private JButton start, stop;
       CurrentJPanel() {
       start.addActionL.... {
       con = new TCPConnection(..);
       stop.addActionLis... {
        con.stopConnection();
    }The problem is that everytime I attempt to access TCPConnectionListener con that has been initialised and is running, I simply get a null pointer exception.
    The questions are two:
    How can I get to the object that instantiated the TCPConnectionListener?
    How can I close the TCP Reflector sitting behind ServerSocket and its childs at the click of a button?
    There are various elements to this (e.g. SwingWorker3 within the MouseListener that I haven't described here) which have been omitted for clarity.
    The complete source code, including the TCPConnectionListener is a small sourceforge project I have recently started. You might find it useful to get a full picture of the problem at:
    http://sourceforge.net/projects/jbrofuzz
    In all honesty, this is not an attempt to get more visits at the project but to simply solve the problem at hand. I have browsed quite a lot of documentation and have not managed to find a process for closing the ServerSocket in a clean way when a TCP reflector is in place.
    Thank you in advance

    And for completeness, here is the code to the above description:
    public class TCPConnectionListener extends Thread implements TCPConnectionMonitor  {
      public void run() {
        while(!connectionStopped) {
          try {
            Socket clientSocket = server.accept();
            con = new TCPConnection(mn.getMainWindow().getJBroFuzz(),
                                    clientSocket, (TCPConnectionMonitor)this,
                                    this.remoteAddress, this.remotePort);
          catch (Exception e) {
            connectionStopped = true;
            break;
        try {
          server.close();
        catch(Exception e) {
        finally {
          try {
            server.close();
          catch(Exception e) {
      public void stopConnection() {
          try {
            server.close();
          catch (Exception e) {
            connectionStopped = true;
    ...So from the GUI we have the call to this class:
    public class MainSniffingPanel
        extends JPanel {
    // The action listener for the start button
        startButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            worker = new SwingWorker() {
              public Object construct() {
                startButton.setEnabled(false);
                stopButton.setEnabled(true);
                getMainWindow().setTabFuzzingEnabled(false);
                getMainWindow().getMainMenuBar().setFuzzStartEnabled(false);
                setupNewConnectionListener();
                return "start-window-return";
              public void finished() {
            worker.start();
      private void setupNewConnectionListener() {
        reflector = new TCPConnectionListener(this, rh, rp, lh, lp);
        reflector.start();
        stopPressed = false;
    }

  • About serversocket

    When a server encounter serverl concurrent connection request,via the ServerSocket.accept method?
    What happend?
    Is it deadlock?
    This method is a thread safe method,or should i solve the concrrention problem by myself?

    Hi,
    The accept will only return the socket for the first request, and your next call to accept will return the socket for the second request and so on. You don't have to do anything special to be able to handle connection attempts at the same time.
    Kaj

  • Connection between Windows XP & Mac OS X very slow

    Hi,
    I have a custom server running on a Windows XP SP2, using jre1.6.0_01. When I connect to this server with a client running on another Windows OS, the ServerSocket.accept() method returns successfully & rapidly. However, when the same client is run on a Mac OS X 1.4.9 using jre1.5.0_07, the server takes about 20 seconds to accept the connection, which is an unacceptable period of latency in my production environment. Is it due to a compliance issue between the two vendors of the JRE? Should I install the Sun JRE on the Mac OS X client (if it is possible)? Is there another way to get this to work efficiently?
    Here are the system properties of my server:
    java.runtime.name: Java(TM) SE Runtime Environment
    sun.boot.library.path: C:\java\jre1.6.0_01\bin
    java.vm.version: 1.6.0_01-b06
    java.vm.vendor: Sun Microsystems Inc.
    java.vendor.url: http://java.sun.com/
    path.separator: ;
    java.vm.name: Java HotSpot(TM) Client VM
    file.encoding.pkg: sun.io
    sun.java.launcher: SUN_STANDARD
    user.country: CH
    sun.os.patch.level: Service Pack 2
    java.vm.specification.name: Java Virtual Machine Specification
    user.dir: C:\java\transmediaco\lib
    java.runtime.version: 1.6.0_01-b06
    java.awt.graphicsenv: sun.awt.Win32GraphicsEnvironment
    java.endorsed.dirs: C:\java\jre1.6.0_01\lib\endorsed
    os.arch: x86
    java.io.tmpdir: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
    line.separator:
    java.vm.specification.vendor: Sun Microsystems Inc.
    user.variant:
    os.name: Windows XP
    sun.jnu.encoding: Cp1252
    java.library.path: C:\WINDOWS\system32;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Autodesk\Backburner\;C:\Program Files\Java\jdk1.5.0_09\bin;C:\ffmpeg;C:\Program Files\QuickTime\QTSystem\
    java.specification.name: Java Platform API Specification
    java.class.version: 50.0
    sun.management.compiler: HotSpot Client Compiler
    os.version: 5.1
    user.home: C:\Documents and Settings\administrateur
    user.timezone:
    java.awt.printerjob: sun.awt.windows.WPrinterJob
    file.encoding: Cp1252
    java.specification.version: 1.6
    java.class.path: properties-displayer.jar
    user.name: administrateur
    java.vm.specification.version: 1.0
    java.home: C:\java\jre1.6.0_01
    sun.arch.data.model: 32
    user.language: fr
    java.specification.vendor: Sun Microsystems Inc.
    awt.toolkit: sun.awt.windows.WToolkit
    java.vm.info: mixed mode, sharing
    java.version: 1.6.0_01
    java.ext.dirs: C:\java\jre1.6.0_01\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
    sun.boot.class.path: C:\java\jre1.6.0_01\lib\resources.jar;C:\java\jre1.6.0_01\lib\rt.jar;C:\java\jre1.6.0_01\lib\sunrsasign.jar;C:\java\jre1.6.0_01\lib\jsse.jar;C:\java\jre1.6.0_01\lib\jce.jar;C:\java\jre1.6.0_01\lib\charsets.jar;C:\java\jre1.6.0_01\classes
    java.vendor: Sun Microsystems Inc.
    file.separator: \
    java.vendor.url.bug: http://java.sun.com/cgi-bin/bugreport.cgi
    sun.io.unicode.encoding: UnicodeLittle
    sun.cpu.endian: little
    sun.desktop: windows
    sun.cpu.isalist:And here are the system properties of my client:
    java.runtime.name: Java(TM) 2 Runtime Environment, Standard Edition
    sun.boot.library.path: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries
    java.vm.version: 1.5.0_07-87
    awt.nativeDoubleBuffering: true
    gopherProxySet: false
    java.vm.vendor: "Apple Computer, Inc."
    java.vendor.url: http://apple.com/
    path.separator: :
    java.vm.name: Java HotSpot(TM) Client VM
    file.encoding.pkg: sun.io
    user.country: FR
    sun.os.patch.level: unknown
    java.vm.specification.name: Java Virtual Machine Specification
    user.dir: /Volumes/Stockage/lib
    java.runtime.version: 1.5.0_07-164
    java.awt.graphicsenv: apple.awt.CGraphicsEnvironment
    java.endorsed.dirs: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/endorsed
    os.arch: ppc
    java.io.tmpdir: /tmp
    line.separator:
    java.vm.specification.vendor: Sun Microsystems Inc.
    os.name: Mac OS X
    sun.jnu.encoding: MacRoman
    java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
    java.specification.name: Java Platform API Specification
    java.class.version: 49.0
    sun.management.compiler: HotSpot Client Compiler
    os.version: 10.4.9
    user.home: /Users/admin
    user.timezone:
    java.awt.printerjob: apple.awt.CPrinterJob
    file.encoding: MacRoman
    java.specification.version: 1.5
    java.class.path: properties-displayer.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/.compatibility/14compatibility.jar
    user.name: admin
    java.vm.specification.version: 1.0
    java.home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
    sun.arch.data.model: 32
    user.language: fr
    java.specification.vendor: Sun Microsystems Inc.
    awt.toolkit: apple.awt.CToolkit
    java.vm.info: mixed mode, sharing
    java.version: 1.5.0_07
    java.ext.dirs: /Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext
    sun.boot.class.path: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/charsets.jar
    java.vendor: Apple Computer, Inc.
    file.separator: /
    java.vendor.url.bug: http://developer.apple.com/java/
    sun.io.unicode.encoding: UnicodeBig
    sun.cpu.endian: big
    mrj.version: 1040.1.5.0_07-164
    sun.cpu.isalist: Your help is appreciated
    -Jerome

    I'm not sure if Mac is affected, but this could be the slow connect bug
    in JDK 1.5: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5092063
    Fixes are: upgrade to Java 6, or add a reverse DNS mapping to your
    name server, or (I don't know if this applies to the Mac) start the program
    with "java -Dsun.net.spi.nameservice.provider.1=dns,sun TheProgram".

Maybe you are looking for

  • How do I install Snow Leopard onto a blank hard drive?

    I just got a hard drive for my macbook and I cant install it i boot with the disc holding "c" etc. what do i do?

  • How Can I Revert To A Previous Version Of ITunes

    I downloaded the new version - 11.0.  Big mistake.  How can I get back to the previous version?

  • Java applet failures after updating to Java 6 Update 19

    Hi, I'm currently experiencing a failure of unsigned Java applets after upgrading to JRE/Plugin 1.6.0_19. The problem with the update has been narrowed down to an interim fix for a TLS/SSL Man-in-the-Middle attack (see http://java.sun.com/javase/java

  • Report Fonts Help

    I have a font selected in the Report Builder that is registered with ColdFusion server but will not display. Server has been rebooted but still no luck. Anyone out there have any thoughts? Thanks in advance for any ideas.

  • Where to find .war in NetBeans/Tomcat

    I have Netbeans with tomcat bundled. i wish to move the project to a web server from my local server. Could someone tell me where to find the .WAR file on my system? Or how to make one myself please. Many thanks