+ Start a Discussion
URVASHIURVASHI 

Bulk Api java client application error.

when i am running the client application of bulk api in java.I am getting the following error:

Anyone there to help:

I took the client application from the bulk api developer guide.

http://www.salesforce.com/us/developer/docs/api_asynch/

Sample client application using java.


com.sforce.ws.ConnectionException: Failed to send request to https://login.salesforce.com/services/Soap/u/28.0
    at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:113)
    at com.sforce.soap.partner.PartnerConnection.login(PartnerConnection.java:791)
    at com.sforce.soap.partner.PartnerConnection.<init>(PartnerConnection.java:315)
    at com.jeffdouglas.BulkLoader.getRestConnection(BulkLoader.java:278)
    at com.jeffdouglas.BulkLoader.runJob(BulkLoader.java:160)
    at com.jeffdouglas.BulkLoader.run(BulkLoader.java:57)
    at com.jeffdouglas.BulkLoader.main(BulkLoader.java:42)
Caused by: java.net.ConnectException: Connection timed out: connect
    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 com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.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.connectLocal(JdkHttpTransport.java:132)
    at com.sforce.ws.transport.JdkHttpTransport.connect(JdkHttpTransport.java:78)
    at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)
    ... 6 more
Failed to send request to https://login.salesforce.com/services/Soap/u/28.0

 

Please help me i am stuck.

Thanks.:)

Sonam_SFDCSonam_SFDC

If you are working behind a proxy on Eclipse, please enable it by going to preferences > General > Network 

hitzhitz

Hi,

 

I am also getting simmiier error while doing connection from eclipes. Please refer below error message. We are using proxy configuration.

 

Unknown Error

 

Ubable to fetch organization details for 'hitesh.patel@order.dev'

 

www.salesforce.com

 

To ignore this error and create and empty force.com project without converting to the server , click Create Offline button

 

 

 

 

 

 

Sonam_SFDCSonam_SFDC

Hey Hitesh, 

 

This error could come up if you've exhausted your API limit for the day - could you please check if you are still getting the same error?

 

You can check your ORG API limits by going to : 

Setup | Company Profile | Company Information >  API Requests, Last 24 Hours