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
dfinlaysondfinlayson 

"Failed to send request to https://www.salesforce.com/services/Soap/u/9.0" message

Am trying to configure email-to-case.  I downloaded the latest agent and updated to the current JDK, configured sfdcconfig.txt and email2case.txt as follow:

<configFile>
    <server1>
        <url>secure.email.com</url>
        <protocol>imap</protocol>
        <userName>autoalerts@mydomain.com</userName>
        <password>************</password>
        <interval>10</interval>
        <inbox>Inbox</inbox>
        <readbox>Inbox</readbox>
        <errorbox>Inbox</errorbox>
    </server1>
</configFile>



<configFile>
    <sfdcLogin>
        <url>https://www.salesforce.com/services/Soap/u/8.0</url>
        <userName>me@mydomain.com</userName>
        <password>MysfcomPwdMysfcomToken</password>
        <loginRefresh>30</loginRefresh>
        <timeout>600</timeout>
    </sfdcLogin>
    <notify>
        <notifyEmail>
me@mydomain.com</notifyEmail>
        <from>autoalerts@mydomain.com</from>
        <host>secure.email.com</host>
        <port>8025</port>
        <user>autoalerts@mydomain.com</user>
        <password>**********</password>
        <service>com.sforce.mail.SMTPNotification</service>
    </notify>
    <attachments>
        <largeAttachmentDirectory>\\C:\AdminTools\sfcomemailtocase\</largeAttachmentDirectory>
        <largeAttachmentURLPrefix>file:\\C:\AdminTools\sfcomemailtocase\</largeAttachmentURLPrefix>
        <largeAttachmentSize>0.5</largeAttachmentSize>
    </attachments>
    <services>
        <com.sforce.mail.EmailService>C:\\AdminTools\\sfcomemailtocase\\email2case.txt</com.sforce.mail.EmailService>
    </services>
</configFile>



I checked into other similar threads and confirmed I can ping www.salesforce.com.  I've turned off all the firewalls on test network & laptop.  Test laptop is an XP machine.  I'm not knowledgeable about the errors cited below.  Any help would be greatly appreciated.


log contents:
2009-01-03 08:51:40,843 1281 [main] ERROR com.sforce.mail.GenericClient  - Failed to connect to SFDC service
com.sforce.ws.ConnectionException: Failed to send request to https://www.salesforce.com/services/Soap/u/9.0
    at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:79)
    at com.sforce.soap.partner.wsc.PartnerConnection.login(PartnerConnection.java:734)
    at com.sforce.mail.GenericClient.login(GenericClient.java:267)
    at com.sforce.mail.GenericClient.getConnection(GenericClient.java:179)
    at com.sforce.mail.GenericClient.<init>(GenericClient.java:135)
    at com.sforce.mail.ImapClient.<init>(ImapClient.java:40)
    at com.sforce.mail.EmailService.loadService(EmailService.java:153)
    at com.sforce.SalesforceAgent.main(SalesforceAgent.java:138)
Caused by: java.net.SocketTimeoutException: connect timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
    at com.sforce.ws.transport.JdkHttpTransport.connect(JdkHttpTransport.java:99)
    at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:72)
    ... 7 more

dfinlaysondfinlayson
Nevermind --
I corrected the issue.  It was a previously disabled firewall function in a wireless router.  Works fine on the physical network.

Thanks.
jonathanrico.jonathanrico.

Hello,

 

I'm having the same issue, could you please share with us what was the exact setting in your router that was causing this?

 

Thanks in advance

mjackmetavantemjackmetavante
I'm seeing the same problem. Apex Explorer is able to connect, but the email2case agent is encountering errors even though they are using the same URL and credentials. Any thoughts?