File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Problem with client initialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Problem with client initialization" Watch "Problem with client initialization" New topic

Problem with client initialization

Saraswathy Krishnamoorth
Ranch Hand

Joined: Mar 07, 2003
Posts: 73
When the client choses Network mode, he has to enter the server host and port. If the user enters a port other than the one on which Rmiregistry is running, I catch the connectException,IOException and display an error message to the user.
When I try to enter a port, which is used by some other application, I get a ConnectIOException and SocketTimeoutException and the system hangs. How to solve this problem. Only for few ports the system hangs. (i.e for example if 1027 and 1030 ports are used by some other application, if I enter 1030 , it catches the connectException and displays a highlevel information to the user. If I enter 1027, it throws ConnectIOException and sockettimeoutexception and the system hangs). Please help.
[ April 11, 2003: Message edited by: Saraswathy Krishnamoorth ]
[ April 11, 2003: Message edited by: Saraswathy Krishnamoorth ]
I agree. Here's the link:
subject: Problem with client initialization
It's not a secret anymore!