function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion


I have been encountering a Connection refused: connect
exception each time I try to run my code.   It was running fine last week and I have been having issues since Tuesday.  (I installed an anti-virus over the weekend, which I have now uninstalled.  Also installed a Windows Update)
The Exception is being thrown when I try to login
lr = binding.login("user", "pwd");
My machine doesn't use any proxy and doesn't have any specific firewall installed (many message board posts refer to a firewall as being the main cause for this error).  I am running Windows XP SP2.  The Windows Firewall in Control Panel has been disabled.
I am baffled and looking for hints on what I should try next.  Please help
Thanks, Connection refused: connect
 faultCode: {}Server.userException
 faultString: Connection refused: connect
 {} Connection refused: connect
 at Method)
 at org.apache.axis.transport.http.HTTPSender.getSocket(
 at org.apache.axis.transport.http.HTTPSender.writeToSocket(
 at org.apache.axis.transport.http.HTTPSender.invoke(
 at org.apache.axis.strategies.InvocationStrategy.visit(
 at org.apache.axis.SimpleChain.doVisiting(
 at org.apache.axis.SimpleChain.invoke(
 at org.apache.axis.client.AxisClient.invoke(
 at org.apache.axis.client.Call.invokeEngine(
 at org.apache.axis.client.Call.invoke(
 at org.apache.axis.client.Call.invoke(
 at org.apache.axis.client.Call.invoke(
 at org.apache.axis.client.Call.invoke(
 at com.sforce.soap.enterprise.SoapBindingStub.login(
 at we.WebServiceConnector.login(
 at we.WebServiceConnector.main(
Make sure you are using as your endpoint when establishing your session (rather than or some other).