aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Problem with client initialization" Watch "Problem with client initialization" New topic
Author

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 ]
 
 
subject: Problem with client initialization