I get this exception when trying to connect to a remote sql server.. Though the server is properly started and the database is up still the error comes up.
"com.jnetdirect.jsql.x: TCP/IP connection failed to host:java.net.ConnectException: Connection refused: no further information"
What could be the reason anyone?
okay, let's just take that error message as read for the moment, and ignore all practical networking considerations:
TCP/IP connection failed to host:java.net.ConnectException
if i typed http://java.net.ConnectException in my browser too, i guess it would fail to connect..
now, let's assume that that error message is mangled up, and that it doesnt look like that on your machine (it is hence nearly impossible to help if you dont provide accurate information, by the way)
that error message means that your machine failed to connect to the database server. recheck the hostname and port that you are attempting to use. then, open telnet and attempt to telnet to the database server. if telnet fails too, then you need to have a look at your local network, uninstall ZoneAlarm, or any other stupid network-hindering software (most people call them firewalls) scratch your head a bit more etc etc and find out why your machine is logically disconnected from the machine hosting the DB
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center