[Jaimbot-users] Read timed out during login
Brought to you by:
ostersc
|
From: David R. <dav...@re...> - 2005-08-25 14:48:14
|
Hi,
I have a quick test program to show a problem logging in:
------------------------------------------------------------------------
import java.io.BufferedReader;
import java.io.InputStreamReader;
import com.levelonelabs.aim.AIMBuddy;
import com.levelonelabs.aim.AIMClient;
public class JaimTest {
public static void main(String args[]) throws Exception {
if (args.length < 2) {
System.out.println("Usage: JaimTest <username> <password>");
}
// Make a new client
AIMClient client = new AIMClient(args[0], args[1]);
// Start the thread
Thread thread = new Thread(client);
thread.setDaemon(true);
thread.start();
// Add a buddy (drig23 is me, Dave Rudder)
AIMBuddy buddy = client.getBuddy("drig23");
client.addBuddy(buddy);
// Send me a nice message
client.sendMessage(buddy, "Hi Dave, how ya' doin?");
// Wait until the user hits the enter button
new BufferedReader(new InputStreamReader(System.in)).readLine();
}
}
------------------------------------------------------------------------
When I run this with a an account that works fine with gaim, I get:
Aug 25, 2005 8:43:35 AM com.levelonelabs.aim.AIMClient run
INFO: *** Starting AIM CLIENT (SEQNO:37833) ***
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.net.SocketInputStream.skip(SocketInputStream.java:203)
at java.io.FilterInputStream.skip(FilterInputStream.java:129)
at com.levelonelabs.aim.AIMClient.run(AIMClient.java:343)
at java.lang.Thread.run(Thread.java:534)
Aug 25, 2005 8:43:45 AM com.levelonelabs.aim.AIMClient signoff
INFO: Trying to close IM (2.5).....
Aug 25, 2005 8:43:45 AM com.levelonelabs.aim.AIMClient signoff
INFO: *** AIM CLIENT SIGNED OFF.
Aug 25, 2005 8:43:45 AM com.levelonelabs.aim.AIMClient run
SEVERE: *** AIM ERROR: java.net.SocketException: Socket closed ***
I haven't been able to login from a Java program for quite a while. I
searched the mailing lists and forums of both this project and JaimLib
(which apparently is showing the same issue). No dice. I found some
suggestions to hardcode the IP address of the server, since the AIM DNS
seems to be responding with some bad addresses, but the given address
didn't seem to help.
Can anyone help me out?
Thanks a lot,
Dave
|