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
we-mpwe-mp 

ConnectException

I have been encountering a
java.net.ConnectException: 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,
 
 java.net.ConnectException: Connection refused: connect
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.net.ConnectException: Connection refused: connect
 faultActor:
 faultNode:
 faultDetail:
 {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection refused: connect
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
 at java.net.Socket.connect(Socket.java:507)
 at java.net.Socket.connect(Socket.java:457)
 at java.net.Socket.<init>(Socket.java:365)
 at java.net.Socket.<init>(Socket.java:178)
 at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:103)
 at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
 at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
 at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
 at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
 at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
 at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
 at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
 at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
 at org.apache.axis.client.Call.invoke(Call.java:2767)
 at org.apache.axis.client.Call.invoke(Call.java:2443)
 at org.apache.axis.client.Call.invoke(Call.java:2366)
 at org.apache.axis.client.Call.invoke(Call.java:1812)
 at com.sforce.soap.enterprise.SoapBindingStub.login(SoapBindingStub.java:1932)
 at we.WebServiceConnector.login(WebServiceConnector.java:106)
 at we.WebServiceConnector.main(WebServiceConnector.java:48)
vandervander
Make sure you are using www.salesforce.com as your endpoint when establishing your session (rather than na1.salesforce.com or some other).
 
-Cory