DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004

    java.net Exception

    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?

  2. #2
    Join Date
    Feb 2004
    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
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center