Chat Applet - Sockets - Server

Hello Fellows!
I hope u all r fine..
I am facing a problem in my client/sever application. The communication is Socket Based. i.e the server is using sockets and the client which is an Applet, uses sockets to communicate with the sever.
The application is working fine in the appletviewer. i.e the applet server communication, both can send and recieve messages.
BUT
When I use IE5 the client applet can send messages to the sever but is not able to read from the specified socket...
If Any one can help me out, i will be greatfull. If u need some code segment then let me know.
Looking forward for any suggestions.
Thanking You!
Ahmad.

Thanks!
for your contribution....
but now i realised that the problem is that the client socket thread is not running.
//////////////////////// Client Applet
public class Client extends Applet implements ActionListener
Thread thRead;
ClientSocket cs;
private Panel pnlHead = new Panel();
private Panel pnlMain = new Panel();
public static Vector vtrMembers;
public void init()
thRead = (Thread) new ClientSocket();
     cs = (ClientSocket) thRead;
     vtrMembers = new Vector();
thRead.start();     
cs.out.println("INI ? INI");
////////////////////////////////////////Client scoket class
public class ClientSocket extends Thread
// public static Socket sClient;
public Socket sClient;
// A character-input stream to read from the socket.
public static BufferedReader in;
// A text-output stream to write to the socket.
public PrintWriter out ;
// String to store the input from the client
String strText;
// Boolean Flag to Check the read value
public boolean bFlag = true;
public ClientSocket ()
     try
     sClient = new Socket ("Ahmed" , 4000);
     // Initializing the Input straem used to read the socket.
in = new BufferedReader(new InputStreamReader(sClient.getInputStream()));
     // Initializing the Output straem used to write on the socket.
     out = new PrintWriter(sClient.getOutputStream(), true);
     catch (UnknownHostException uhe)
//     System.out.println (" Unknown Host Exception : " + uhe);
     catch (IOException ioe)
//     System.out.println (" I/O Exception : " + ioe);
public void run()
     for (;;)
     if (bFlag == true)
     Client.txtTry.setText("TRUE");
     else
     Client.txtTry.setText("False");
thRead.start() statment is executed but the thread does not stat running
because the text value is not set on the Client Applet.

Similar Messages

  • Applet socket server

    Is it possible to have applet socket server? if so, pls tell me the method. Thanks.
    regards,
    Bala

    applet socket server?hmm...i dont think so...this will produce an exception... but maybe you can try signing the applet....

  • Chat Applet locks up when connected to a server

    Hey, I am making a chat applet to reach out to IRC like servers. The problem I'm having is when it connects the program locks up till the server disconnect, then it prints the spool into my JTextArea.
    Now, and more bazaar, is that I cannot find a single instructor on the grounds of my tech school who can help me with networking java when 4 people teach in the damn format. Naturally, I'm very frustrated. Any help would be appreciated.

    The full code is at: [http://pastebin.com/m49fe14be|pastebin.com/m49fe14be]
    Naturally I'll be changing this again at least once when I figure out how to play this out.
    Where I'm having problems is: #
            public void connectOut(){
                    try{
                            connectionAddr = InetAddress.getByName(server);
                            connect = new Socket(server, port);
                            initiateReadWrite();
                            //threadRun();
                            //listener = new Thread();
                            //listener.start();
                            //while(listener.isAlive()){
                            readFromServer();
                            connect.setKeepAlive(true);
                    catch(Exception e){
                            exceptioner(e);
            }Or
            public synchronized void readFromServer(){
                    try{
                            String readin;
                            while((readin = in.readLine()) != null){
                                    scrolledText.append(readin + "\n");
                    catch(Exception e){
                            exceptioner(e);
                    }I'm utterly lost and cannot find anyone to help me at my technical college. Four instructors and not a one understands threading.

  • Send string to socket server from applet

    Am trying to send a string to socket server from my applet:
    Server:
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class Server extends JApplet
    ServerSocket srvr;
    Socket skt;
    PrintWriter out;
    BufferedReader in;
    Server()
    String data = "server";
    try
    srvr = new ServerSocket(5555);
    skt = srvr.accept();
    out = new PrintWriter(skt.getOutputStream(), true);
    in = new BufferedReader(new InputStreamReader(skt.getInputStream()));
    while (in.ready())
    System.out.println(in.readLine());
    out.print(data);
    out.close();
    in.close();
    skt.close();
    srvr.close();
    catch(Exception e)
    System.out.print(e);
    public static void main(String[] aslan)
    new Server();
    My applet where I have my client:
    Socket skt;
    BufferedReader in;
    PrintWriter out;
    try
    skt = new Socket("localhost", 5555);
    out = new PrintWriter(skt.getOutputStream(),true);
    in = new BufferedReader(new InputStreamReader(skt.getInputStream()));
    while (in.ready())
    System.out.println(in.readLine());
    in.close();
    catch(Exception e)
    System.out.print(e);
    public void actionPerformed( ActionEvent e )
    if(e.getSource() == button)
    out.println("test");
    But when the button is pushed the client is supposed to send the string "test" to the server but nothing happens can someone plz help me with this?

    Am trying to send a string to socket server from my
    applet:
    Server:
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class Server extends JApplet
    ServerSocket srvr;
    Socket skt;
    PrintWriter out;
    BufferedReader in;
    Server()
    String data = "server";
    try
    srvr = new ServerSocket(5555);
    skt = srvr.accept();
    out = new PrintWriter(skt.getOutputStream(), true);
    in = new BufferedReader(new
    InputStreamReader(skt.getInputStream()));
    while (in.ready())
    System.out.println(in.readLine());
    out.print(data);
    out.close();
    in.close();
    skt.close();
    srvr.close();
    catch(Exception e)
    System.out.print(e);
    public static void main(String[] aslan)
    new Server();
    My applet where I have my client:
    Socket skt;
    BufferedReader in;
    PrintWriter out;
    try
    skt = new Socket("localhost", 5555);
    out = new PrintWriter(skt.getOutputStream(),true);
    in = new BufferedReader(new
    InputStreamReader(skt.getInputStream()));
    while (in.ready())
    System.out.println(in.readLine());
    in.close();
    catch(Exception e)
    System.out.print(e);
    public void actionPerformed( ActionEvent e )
    if(e.getSource() == button)
    out.println("test");
    But when the button is pushed the client is supposed
    to send the string "test" to the server but nothing
    happens can someone plz help me with this? Your server code while (in.ready()) is going to block indefinitely.
    Remove the while loop and just write your ouput and close the connection on the server.

  • Chat applet closes browser!!

    I'm programming a chat applet using MulticastSockets
    the connect button does something like this:
    dest = new InetSocketAddress("228.5.6.7",4321);
    try{
    socket = new MulticastSocket(4321);
    NetworkInterface netif = NetworkInterface.getByInetAddress(InetAddress.getLocalHost());
    socket.joinGroup(dest, netif);
    InetAddress address = InetAddress.getByName("228.5.6.7");
    socket.joinGroup(address);
    I also have a signed jar file so the client gives rights to the applet (so it can open the sockets)
    It works on win2k and winXP but on win98 when the client clicks the connect button the browser closes itself. I don't know what kind of error could produce this.
    Any ideas??

    In response to the original: Have you tried updated browsers on the 98 machine?
    In response to everthing else:
    If you were developing a chat application using php and javascript, I could understand using the http protocol, but if you're using an applet, why not just connect with a socket? And, for that matter, it seems fairly simple to make it peer-to-peer and just connect to whoever you want to send to.(just keep a hash of names and ip's)
    The conversation is interesting though since I've thought about the feasability of creating a php/javascript client to jabber. As far as keeping the http connection open and polling, seems like you could specify some send rate from the server side(1 packet every other second isn't the end of the world) and re-poll whenever the client hasn't received a packet for a straight 3 seconds, or something like that...
    The problem with php and javascript is that they really have funny threading and time limits(some that are server invoked), but I suppose this can be circumvented. There are loopholes.

  • How does chat applet works?

    how does chat applet works? What specific technologies should i learn to make a chat messaging work?
    thanks in advance for ur help...

    Chat applets work on sockets. Normally there are two parts. One server and one or more clients. The clients connect to the server and any message sent by a client is then distributed by the server to all the other clients.
    Sun's site is incredibly slow tonite so I'll give you a google link
    http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=chatserver+chatclient+java

  • URGENT!! help on CHAT APPLET

    i've created a chat Applet as client. i want it to be used like this
    -user login
    -choose chat room
    -and start applet.
    what i've done now is chat applet. i want it to be used by multi user.
    and display online users name or username.
    but now it can only detect one user. if i run many applet concurrently using my pc, it can't detect other user's name.
    how to do that?
    please someone help me!!

    this is my codes.
    it can be compiled but nothing appears when i run appletviewer ChatApplet2.html
    what happen?
    import java.lang.*;
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    public class ChatApplet2 extends Applet implements ActionListener,Runnable
    String user;
    String msg;
         String chatServer;
         ObjectOutputStream output;
         ObjectInputStream input;
         Socket client;
         public void init() {
              super.init();
              //{{INIT_CONTROLS
              setLayout(new BorderLayout(0,0));
              addNotify();
              resize(518,347);
              setBackground(new Color(12632256));
    displayArea = new java.awt.TextArea("",2,0,TextArea.SCROLLBARS_NONE);
              displayArea.setEditable(false);
    displayArea.disable();
    //displayArea.hide();
              displayArea.reshape(0,0,380,216);
              add(displayArea);
              idbox = new java.awt.TextField();
              idbox.reshape(84,288,284,24);
              add(idbox);
              button1 = new java.awt.Button("EnterRoom");
              button1.reshape(384,288,72,21);
              add(button1);
    list = new java.awt.List();
    //list.TOP_ALIGNMENT();
    //list.disable();
    list = new java.awt.List(5);
    list.add("#Default User"+"\n");
    list.reshape(384,24,128,196);
    list.setFont(new Font("Helvetica", Font.BOLD, 12));
    add(list);
              label2 = new java.awt.Label("Members");
              label2.reshape(396,0,100,19);
              add(label2);
              label1 = new java.awt.Label("UserName");
              label1.reshape(0,288,72,27);
              add(label1);
              enterField = new java.awt.TextField();
              enterField.reshape(84,240,431,44);
              add(enterField);
              label3 = new java.awt.Label("EnterText");
              label3.reshape(0,252,72,25);
              add(label3);
    //uf = new UserFrame();
              button1.addActionListener(this);
    idbox.addActionListener(this);
    enterField.addActionListener(this);
    list.addActionListener(this);
    public void actionPerformed(ActionEvent ae)
              if(ae.getSource()==idbox)
    user = idbox.getText()+"\n";
    list.addItem(user.trim());
    idbox.setText("");
              displayArea.append(user +" HAS JOINED THE GROUP");
         if(ae.getSource().equals(button1))
    user = idbox.getText()+"\n";
    list.addItem(user.trim());
    idbox.setText("");
              displayArea.append(user +" HAS JOINED THE GROUP");
    if(ae.getSource().equals(enterField))
    sendData(ae.getActionCommand() );
                   /*msg = enterField.getText();
    displayArea.append(msg +"\n");
    enterField.setText("");*/
    if(ae.getSource().equals(list))
    String l = list.getSelectedItem();
                             //uf.setTitle(l);
                             //Frame i[] = uf.getFrames();
                             //uf.setVisible(true);
    public void start()
              try {
         // Step 1: Create a Socket to make connection
         connectToServer();
         // Step 2: Get the input and output streams
         getStreams();
         // Step 3: Process connection
         processConnection();
         // Step 4: Close connection
         closeConnection();
         // server closed connection
              catch ( EOFException eofException ) {
         System.out.println( "Server terminated connection" );
         // process problems communicating with server
              catch ( IOException ioException ) {
         ioException.printStackTrace();
    if(vt == null)
    vt = new Thread(this,getClass().getName());
    vt.start();
    public void run()
    try{
    for(int i=0;i<10;i++)
    displayArea.append("One stop Java source code - www.globalleafs.com"+"\n");
    displayArea.setForeground(Color.red);
    vt.sleep(30000);
    vt.resume();
    }catch(Exception e){e.printStackTrace();}
         private void sendData( String msg )
              // send object to server
              try {
              output.writeObject( user + ">>> " + msg );
              output.flush();
              displayArea.append( "\nuser>>>" + msg );
              // process problems sending object
              catch ( IOException ioException ) {
              displayArea.append( "\nError writing object" );
         // get streams to send and receive data
         private void getStreams() throws IOException
              // set up output stream for objects
              output = new ObjectOutputStream(
              client.getOutputStream() );
              // flush output buffer to send header information
              output.flush();
              // set up input stream for objects
              input = new ObjectInputStream(
         client.getInputStream() );
              displayArea.append( "\nGot I/O streams\n" );
         // connect to server
         private void connectToServer() throws IOException
              displayArea.setText( "Attempting connection\n" );
              // create Socket to make connection to server
              client = new Socket(
         InetAddress.getByName( chatServer ), 5000 );
              // display connection information
              displayArea.append( "Connected to: " +
         client.getInetAddress().getHostName() );
         // process connection with server
         private void processConnection() throws IOException
              // enable enterField so client user can send messages
              enterField.setEnabled( true );
              // process messages sent from server
              do {
              // read message and display it
              try {
              msg = ( String ) input.readObject();
              displayArea.append( "\n" + msg );
              displayArea.setCaretPosition(
              displayArea.getText().length() );
              // catch problems reading from server
              catch ( ClassNotFoundException classNotFoundException ) {
              displayArea.append( "\nUnknown object type received" );
              } while ( !msg.equals( "SERVER>>> TERMINATE" ) );
         } // end method process connection
         // close streams and socket
         private void closeConnection() throws IOException
              displayArea.append( "\nClosing connection" );
              output.close();
              input.close();
              client.close();
         java.awt.TextArea displayArea;
         java.awt.TextField idbox;
         java.awt.Button button1;
    java.awt.List list;
    java.awt.Label label2;
         java.awt.Label label1;
         java.awt.TextField enterField;
         java.awt.Label label3;
    private Thread vt;

  • Yet another chat applet, but with good reason...

    Hi, I realise there are thousands of perfectly good chat applets out there (and millions of rubbish ones) but this is a last ditch to make something functional, fun and effective for my Computing Coursework. Thanks to AQA's sylabus, any remotely interesting topics are inplausable as it would result in me getting an instant U.
    My questions on this topic are as follows...
    What would be the best way to connect applets to server?
    - Straightfoward Sockets
    - RMI
    - XML-RPC
    With the last two would these run on joe user's browser without an additional extra bit being installed? Also, if sockets is the best answer is it possible to use XML as my data transfer medium? How can I encrypt this? If RMI is the best solution, are there any quick and concise tutorials kicking around? Will RMI be secure? How can I make it secure? Are all of the above clouding the issue too much and is there a better solution?
    Thanks in advance. Sorry if that left your head in a spin...
    - Andrew

    I did this a few years ago with straight socket communication. I would say start off with that, then if you'd like to use XML you can still send XML through the existing socket connections and parse it on the other end. But, there's no reason to make it more complicated than you need it, especially if you'll get a bad grade.

  • How to design a chat applet?

    Hello,
    I have to design a chat applet in such a way that two users on different systems should be able to chat to each other after they login into a site. The applet should be able to save the transcript after the chat gets over (and that is considered to be done when one of the users logs out or closes the browser window).
    How do I design such an applet? Should I use sockets to enable communication between the browsers? Is there any place where I can get source code for similar applets?
    Regards,
    Arun Jayaprakash.

    The pages have to be designed in ASP. The applet should only provide the functionality of a chat room with the specifications that I had mentioned in an earlier post.
    Regards,
    Arun Jayaprakash.

  • Applet socket connection

    Hi,
    I have an applet that connects to a server java console program through a socket connection which works fine from the command line using appletviewer but doesn't work when running in a html page. The applet is not signed however because the applet and server are running on the same machine it shouldn't need to be. I have used socket connections in applets before and have managed to make the connection to server without having it signed but this one is not working for some reason. I have checked the port is opened and again its the same one I have used before so I know its open.
    I am getting the message java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:5000 connect,resolve) when calling:
      Socket s = new Socket(ip,port);I also have a java.policy.applet file in the project root directory which has the following in:
    grant {
      permission java.security.AllPermission;
    };Does anyone know a reason why access could be restricted?

    Night.Monkey wrote:
    Hi,
    I have an applet that connects to a server java console program through a socket connection which works fine from the command line using appletviewer but doesn't work when running in a html page. The applet is not signed however because the applet and server are running on the same machine it shouldn't need to be.Wrong. An unsigned applet can only connect back to the server from where it was downloaded. Your applet comes from www.javawebgames.co.uk and tries to connect to 127.0.0.1.
    Would your server be at www.javawebgames.co.uk there should be no problem.
    I also have a java.policy.applet file in the project root directory which has the following in:
    grant {
    permission java.security.AllPermission;
    };I think this should have zero effect when you are running in the actual browser.

  • How to get started on java applet client/server game?

    Hi,
    I've googled, but didn't find any useful information about creating java applet client/server game. I've followed the example of Client/Server Tic-Tac-Toe Using a Multithreaded Server in Java How to Program from Deitel, but I when I tried on Applet, my cliet doesn't communicate with the server at all. Any help to get started with Applet would be great. Thanks!

    well, i decided to put in portion of my codes to see if anyone can help me out. the problem I have here is the function excute() never gets called. here is my coding, see if you can help. Notice, I'm running this on Applet thru html page. This shouldn't be much different than running JFrame in term of coding right?
    Server.java
        public void init()
            runGame = Executors.newFixedThreadPool(2);
            gameLock = new ReentrantLock();
            otherPlayerConnected = gameLock.newCondition();
            otherPlayerTurn = gameLock.newCondition();
            players = new Player[2];
            currentPlayer = Player1;
            try
                server = new ServerSocket(12345, 2);
            catch (IOException ie)
                stop();
            message = "Server awaiting connections";
        public void execute()
           JOptionPane.showMessageDialog(null, "I'm about to execute!", "Testing", JOptionPane.PLAIN_MESSAGE);
            for(int i = 0; i < players.length; i++)
                try
                    players[i] = new Player(server.accept(), i);
                    runGame.execute(players);
    catch (IOException ie)
    stop();
    gameLock.lock();
    try
    players[Player1].setSuspended(false);
    otherPlayerConnected.signal();
    finally
    gameLock.unlock();
    Client.java
        public void init()
            startClient();
        public void startClient()
            try
                connection = new Socket(InetAddress.getByName(TienLenHost), 12345);
                input = new Scanner(connection.getInputStream());
                output = new Formatter(connection.getOutputStream());
            catch (IOException ie)
                stop();
            ExecutorService worker = Executors.newFixedThreadPool(1);
            worker.execute(this);
        }So after worker.execute(this), it should go to Server.java and run the function execute() right? But in my case, it doesn't. If you know how to fix this, please let me know. Thanks!

  • Firewall: Error sending to the socket, server is not responding.

    Hi all,
    I'm trying to connect AIX machine to NT DB2 Database through JDBC with a firewall. I'm using the standard port 6789 in JDBC Applet Server in NT DB2. But I've gotten the following message:
    COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0614E Error sending to the socket, server is not responding. SQLSTATE=08S01
    The connection chain I'm using for AIX side is:
    jdbc:db2://192.168.3.4:6789/DATABASE
    I've configured the firewal to allow the port 6789 to be used, and also the other port 51544 (it's for remote administration, I think). I've also checked that wires and other stuff is working fine, but stil I cannot connect to the Database.
    I don't know if there's something missing on the firewall configuration. Before, everything was working without the firewall.
    Any help will be apreciated, THanks.
    Rodrigo, SPAIN

    It looks like no port problem is happening, because we freed all the ports just to see if client tried to use some of them without our knowing. But it was still the same.
    We were thinking about routing issues, but we were able to ping from client to server, and ports 6789 and 51544 were open as well. Maybe JDBC Client Driver is looking for an different IP address than 192.168.3.4. We know the firewall doesn't receive any query from JDBC Client, and that's very strange because if you see the routing tables in AIX machine, the default route is the firewall. Of course, there's not any other static defined route for the server (192.168.3.4), so it's supposed that default route is going to be used. But it's not.
    We also restarted client machine from scratch but nothing. Maybe this problem happens because there's something wrong in AIX networking settings.
    Rodrigo

  • When my swf in a html page connected with a socket server other http requests were blocked, how to resolve?

    I have used php to write a socket server(text chat server),
    then I use xmlsocket to write a client, I put this swf file in my html page, erverything of this client swf were ok: ervery clients could send or receive messages, but the other http request in this html page was unable to send(or receive) data from webserver,
    webserver and chat server were on the same server,
    and I have tried to use socket to instead if xmlsocket in my flash, but the new swf can only work in flash cs3, but it couldn't work in html page as the chat server can't send the security xml file to this swf, and I have also use Security.loadPolicyFile("http://192.168.139.128/crossdomain.xml"); to load security file, but it took none effect.
    Is there anyone can suggest me ?
    That's very kind of you!

    Hi Franco,
    Yes, I solved that by reinstalling Java 6 Update 21.
    There are three versions for Solaris namely, SPARC, x64 and x86. Our platform is SPARC and I think System admin has installed the wrong version instead of installing SPARC version of Java.
    After installing SPARC version of Java this got resolved. And I confirmed everything is fine by running a small program as below. You can run this program from command line using the -d64 flag. If the installation is wrong you will get the same exception as I mentioned.
    public class Analyzer {
          public static void main(String args[]) throws Exception{
               InputStream fin = new FileInputStream(args[0]);
               int iSize = fin.available();
               byte mvIn[] = new byte[iSize];
               fin.read(mvIn,0,iSize);
               fin.close();
               String strText = new String(mvIn);
               PrintStream fout = new PrintStream(new FileOutputStream(args[0]+".csv"));
               fout.println("Before,After,Seconds");
               Pattern p = Pattern.compile("\\[(?:Full |)GC (\\d*)K->(\\d*)K\\(\\d*K\\), ([\\d.]*) secs\\]");
               Matcher m = p.matcher(strText);
               while(m.find()){
                    fout.println(m.group(1)+ "," + m.group(2) + "," + m.group(3));
               fout.close();
    }Hope this helps.
    Regards,
    Prabhu

  • Problem loading the chat applet, red x mark sign..

    Hello all - hopefully this is the correct place for this post. I've been trying to load a java enabled chat room, and keep getting a red X in the top left corner (java applet failed, etc).
    Java chat applet fails to load in the following website www.chat-web.com, but loads in the other websites. the following is the version i have installed in my computer. Version 6 Update 12 (build 1.6.0_12-b04). I have visited the help section of the website in which java applet fails to load and tried all the following steps,
    1) I cleared all the temp files from the internet options.
    2) cleared the cache in the java plug-in
    3) disabled the pop-up blocker
    insipite of the above steps the problem still persists..
    here is a screen shot of the error > http://i42.tinypic.com/2pzwhvp.jpg
    here is the details of the error :
    Java Plug-in 1.6.0_12
    Using JRE version 1.6.0_12 Java HotSpot(TM) Client VM
    User home directory = C:\Users\Guest
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class com.chatspace.v20090.Chat not found.
    java.lang.ClassNotFoundException: com.chatspace.v20090.Chat
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 7 more
    Exception: java.lang.ClassNotFoundException: com.chatspace.v20090.Chat
    Does this look like a chat room error? I think my side is fine, but I could be wrong. I'm not the best technical person, but just know the basics.
    Anyone have any ideas?
    Thanks!
    livelife

    Hi. Thank you for reply. I tried the steps suggested by you, but it still shows the same errors, i e-mailed to chat-web.com as well but seems the e-mail is invalid. i tried to load the chat rooms in my desktop pc too, i get the same error,
    Java Plug-in 1.6.0_13
    Using JRE version 1.6.0_13 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Intel
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class com.chatspace.v20090.Chat not found.
    java.lang.ClassNotFoundException: com.chatspace.v20090.Chat
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.SocketException: Network is unreachable: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 7 more
    Exception: java.lang.ClassNotFoundException: com.chatspace.v20090.Chat
    lifelive

  • I need help on steps on working and building chat applet

    is there a site where you can get some codes on building java chat applet?
    whats the easiest thing to do on making a chat server?

    java.sun.com has one.
    Check out the client and server source here:
    http://developer.java.sun.com/developer/technicalArticl
    s/InnerWorkings/Burrowing/SimpleChatApplet.java
    http://developer.java.sun.com/developer/technicalArticl
    s/InnerWorkings/Burrowing/SimpleChatServer.java
    Enjoy.
    ~Markhi mark! i'm sorry for the silly question i'm asking...
    i have compiled the two source code u suggest, but...
    i don't know what to do with them. i put the code of
    applet in a html, and i run the server on port 6006.
    do u need a web server? i've tryed to load
    http://localhost/chat.html and i see the page but also
    the error of communication.. so i put the :6006 but
    i have the error page... what do i need? help, please..
    thanks

Maybe you are looking for

  • Virtual Cube with DTP for direct access

    Hello experts, I would like to hear about some tips to improve performance on reporting over this kind of infoprovider. If there were no performance impact in reporting then this cubes would be perfect to face the requirement we are facing. So I woul

  • Ipod not syncing notes/calendars/contacts

    i use itunes 10.1.1.4 and office 2003 sp3(i think). everytime i try to sync itunes i get an error saying "iTunes could not sync contacts/calendars/notes to the iPod because an error occurred while merging data" aanything that can be done?

  • Hierarchy not fully loaded

    I am loading the following data via IM using create Hierarchy method. The parent is Parent, Child is ID and Node is set to Name. ID, Name, Parent 1, A, 2,B,1 3,B,1 4,B,1 5,C,1 When this is loaded I miss row # 3 and 4. If I make the name unique like:

  • Crash Report - Can someone interpret this?

    Like many others, my applications keep crashing ever since I installed Snow Leopard. Usually it is when I go to save something, but in this case Finder crashed just by trying to move the page up and down. Can anyone make sense of this crash log to le

  • Problem with Support Package SAP_BASIS (Error Stop) IMPORT_PROPER

    Hi Everyone, i want to apply Support Pack for SAP_BASIS. Now Its Level is 0009 (ECC 6.0). i did import the SPs SAPKB70010 and SAPKB70011. We only want until Stack 11. The test scenario was without an error. But during the Standard scenario there occu