Howdy Y'all! Java greenhorn here, with an email application readLine() hanging problem.
I'm just trying to build a simple POP3 client that downloads email headers from POP accounts. For some reason, my application will hang when trying to read the input stream after I have sent some text out the output stream. Here's the kicker, this code works flawlessly on another machine that I have tested it on. This problem appears to not pertain as much to the code.
Details: Using the latest JRE (1.4.2_04)
Again, this code works just fine on one of my machines. I've been trying to isolate the differences in these machines, but I haven't found any that (I think) would affect this Java program. I've tried earlier JVMs and still have the same problem. Here's a sample output when the system hangs:
+OK (rwcrpxc55) Maillennium POP3/PROXY server #235
USER dfribley
**Program Hangs**
Here's a sample of the working machine:
+OK InterMail POP3 server ready.
USER dfribley
+OK please send PASS command
PASS *****
+OK dfribley is welcome here
STAT
+OK 0 0
QUIT
+OK dfribley InterMail POP3 server signing off.
Again, everything works great on another machine. Even though I'm using both of these computers on the same network configuration, I still have the hanging problem on one of them. When I try to run the app on other computers/network configs (friend's comps, etc.), the program hangs. I've also tried disabling Norton Anti-virus while running the application and it still hangs. A big difference my two machines is that the working one is using McAfee Enterprise 7, and the other is using Norton 2003.
Other than that, I have no idea why my application runs on one machine and not the other. Do I need to account for anything else in my code? What other factors are there when reading and writing to sockets with the JVM?
Thank you in advance for your help!!!
[ June 01, 2004: Message edited by: Dave Fribley ]
[ June 01, 2004: Message edited by: Dave Fribley ]
I'm just trying to build a simple POP3 client that downloads email headers from POP accounts. For some reason, my application will hang when trying to read the input stream after I have sent some text out the output stream. Here's the kicker, this code works flawlessly on another machine that I have tested it on. This problem appears to not pertain as much to the code.
Details: Using the latest JRE (1.4.2_04)
Again, this code works just fine on one of my machines. I've been trying to isolate the differences in these machines, but I haven't found any that (I think) would affect this Java program. I've tried earlier JVMs and still have the same problem. Here's a sample output when the system hangs:
+OK (rwcrpxc55) Maillennium POP3/PROXY server #235
USER dfribley
**Program Hangs**
Here's a sample of the working machine:
+OK InterMail POP3 server ready.
USER dfribley
+OK please send PASS command
PASS *****
+OK dfribley is welcome here
STAT
+OK 0 0
QUIT
+OK dfribley InterMail POP3 server signing off.
Again, everything works great on another machine. Even though I'm using both of these computers on the same network configuration, I still have the hanging problem on one of them. When I try to run the app on other computers/network configs (friend's comps, etc.), the program hangs. I've also tried disabling Norton Anti-virus while running the application and it still hangs. A big difference my two machines is that the working one is using McAfee Enterprise 7, and the other is using Norton 2003.
Other than that, I have no idea why my application runs on one machine and not the other. Do I need to account for anything else in my code? What other factors are there when reading and writing to sockets with the JVM?
Thank you in advance for your help!!!
[ June 01, 2004: Message edited by: Dave Fribley ]
[ June 01, 2004: Message edited by: Dave Fribley ]