Error establishing socket. Address already in use

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Error establishing socket. Address already in use

    Running CFMX 6.1 on Win2k3, I just recently started getting these errors from
    connections to one of our SQLServer database servers (2000, enterprise):
    [Q]Error Executing Database Query.[Macromedia][SQLServer JDBC Driver]Error
    establishing socket. Address already in use: connect[/Q]
    Any ideas what might cause this?


    betagreg Guest

  2. Similar Questions and Discussions

    1. Error establishing socket. No buffer space available
      I have a server problem that I cannot figure out. I found an old thread but no one ever posted a solution, so thought I would see if anyone has any...
    2. Error establishing socket. Connection refused:connect
      ODBC Connection saved the day. Thanks for the post.. i still have my hair intact. SP2 on Win XP Pro is a deadly combo it seems.
    3. Error establishing socket to SQL Server 2003
      I loaded 11 MS cirtical updates last night on my CF server and SQL server and now I can not get any of the ODBC connections to work. Hellp!
    4. Error establishing socket
      Need some help here! I am using Cold Fusion 7 MX standard and SQL server 2000 sp4 on Win XP sp1. All of the installation and setup looked good....
    5. Socket Error?
      The truth is I am helping a friend out with this and I didn't have the oppty. to see what the exact error message was. All I was told is that it...
  3. #2

    Default Re: Error establishing socket. Address already in use

    [q]Originally posted by: betagreg
    Running CFMX 6.1 on Win2k3, I just recently started getting these errors from
    connections to one of our SQLServer database servers (2000, enterprise):
    [Q]Error Executing Database Query.[Macromedia][SQLServer JDBC Driver]Error
    establishing socket. Address already in use: connect[/Q]
    Any ideas what might cause this?
    [/q]


    It caused by exactly what it says... The socket you are trying to connect to
    is already in use or it didnt close properly. i'll bet the error clears after a
    reboot of both the db server and the application server. what other connections
    do you have on the sql server? what version of jdbc are you using? check pete's
    site in help with this [url]http://www.petefreitag.com/item/118.cfm[/url]
    here is a tech note on known issues with the jdbc driver 3.3 and mx6.1
    [url]http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18807[/url]

    and here is an explanation of the error.
    [url]http://people.cs.uchicago.edu/~mark/51081/labs/LAB6/sock.html[/url]


    elDonrico Guest

  4. #3

    Default Re: Error establishing socket. Address already in use

    Okay, not really helpful. I guess I should ask, "I can read the error as good
    as you can, but what might cause CF to suddenly start throwing this error with
    no changes to configuration or software?"

    Maybe now I can get a real response?

    betagreg Guest

  5. #4

    Default Re: Error establishing socket. Address already in use

    ok. well, if you think that was useless, you might as well not read on... this
    isnt a coldfusion error. it only appears that way because you are using cfml.
    this is a most probably an SQL issue. i say most probably, because there are
    many reasons this could be happening. try doing things in these steps as they
    are in degrees of harshness.
    1. check the server event log, see if you have an entry like this
    .'You are running a version of Microsoft SQL Server 2000 or Microsoft SQL
    Server 2000 Desktop Engine (also called MSDE) that has known security
    vulnerabilities when used in conjunction with the Microsoft Windows Server 2003
    family. To reduce your computer's vulnerability to certain virus attacks, the
    TCP/IP and UDP network ports of Microsoft SQL Server 2000, MSDE, or both have
    been disabled. To enable these ports, you must install a patch, or the most
    recent service pack for Microsoft SQL Server 2000 or MSDE from
    [url]http://www.microsoft.com/sql/downloads/default.asp[/url]'

    install sp4 [url]http://www.microsoft.com/sql/downloads/2000/sp4.mspx[/url]
    2. change your database server name to its IP (if that doesnt work, you might
    as well change it back)
    3. make sure you are authenticating with an SQL account. windows integrated
    authentication does not work well ... in your SQL enterprise manager, set it to
    mixed authentication in the security tab, select SQL server and windows
    authentication. the microsoft driver seems to not handle the windows
    authentication properly. i wouldnt use the the SA account, create another one
    just for this purpose.
    4. under the general tab in your enterprise manager click network
    configuration. enable TCP/IP which is not enabled by default
    5. Install SQL Server 2000 sp3 or sp4

    and here are some other useless articles you might want to read...
    Know bug in SQL Server preventing it from listening on port 1433
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;306865[/url]
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;329329[/url]
    info on clustered SQL servers
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;815431[/url]



    elDonrico Guest

  6. #5

    Default Re: Error establishing socket. Address already in use

    hey, don't mind me, I'm just cranky because of the inexplicable errors (and
    reasons behind those errors). I appreciate the responses. Items 1, 3, and 5
    don't apply (we are running SQLServer 2000 enterprise SP4, using a SQL
    account). I will try the IP suggestion. Sorry for getting snippy.

    betagreg Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139