Iam getting java.net.ConnectException even when my server is running

Hi all,

I started my server and after the server started successfully,i tried to login .But iam getting the the java.net.ConnectException:Connection Refused exception.

The stack trace is as follows.

java.net.ConnectException: Connection refused

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)

at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)

at java.net.Socket.connect(Socket.java:452)

at java.net.Socket.connect(Socket.java:402)

at java.net.Socket.<init>(Socket.java:309)

at java.net.Socket.<init>(Socket.java:124)

Can anybody help me out in solving this issue.

Thanks in advance,

Prabakaran

[852 byte] By [prabakarana] at [2007-10-2 10:39:17]
# 1

Hi,

Iam sorry for missing one thing.I didnt give the ful stack trace due to some official problems.So anybody plz help me out in solving this issue.This issue occurs very rarely.(i.e)When i close my server abruptly and then try to login my application,the Connect Exception comes.This is the scenario.Plz help me out.

Thanks

prabakarana at 2007-7-13 2:45:07 > top of Java-index,Archived Forums,Socket Programming...
# 2

> issue occurs very rarely.(i.e)When i close my server

> abruptly

...I don't know what you mean by that. if you don't have the server running it's not going to connect.

Does it connect without the exception sometimes? only on specific computers? or what... you probly have to change the firewall settings or change the port

java318a at 2007-7-13 2:45:07 > top of Java-index,Archived Forums,Socket Programming...