• Rkrips
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

com.sforce.ws.ConnectionException: Failed to send request to https://login.salesforce.com/services/S
oap/c/24.0
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:117)
at com.sforce.soap.enterprise.EnterpriseConnection.login(EnterpriseConnection.java:1)
at com.sforce.soap.enterprise.EnterpriseConnection.<init>(EnterpriseConnection.java:1)
at com.sforce.soap.enterprise.Connector.newConnection(Connector.java:1)
at wsc.Main.login(Main.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.comp.name.server.runtime.connect.impl.java.JavaOperator.invoke(JavaOperator.java:15
2)
at com.comp.name.engine.processor.TempProcessorT.invokeWithOutput(TempProcessorT.java:518)
at com.comp.name.engine.processor.TempProcessorT.process(TempProcessorT.java:357)
at com.comp.name.engine.processor.TempProcessorT.processTemp(TempProcessorT.java:53)
at com.comp.name.server.execute.impl.GenExecutor.execute(GenExecutor.java:41)
at com.comp.name.server.execute.ExecutorAdapter.execute(ExecutorAdapter.java:97)
at com.comp.name.server.execute.ExecutorAdapter.nextExecute(ExecutorAdapter.java:215)
at com.comp.name.server.execute.impl.Executor.execute(Executor.java:40)
at com.comp.name.engine.processor.MessageProcessor.doMessage(MessageProcessor.java:222)
at com.comp.name.engine.processor.MessageProcessor.processMessage(MessageProcessor.java:130
)
at com.comp.name.engine.processor.MessageProcessor.processMessages(MessageProcessor.java:11
9)
at com.comp.name.engine.processor.MessageProcessor.processRequest(MessageProcessor.java:49)

at com.comp.nameengine.services.SjInstantRespService$1.run(SjInstantRespService.java:60)
Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.I
nvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1731)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1692)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1675)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1204)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1181)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHtt
psURLConnection.java:166)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.
java:230)
at com.sforce.ws.transport.JdkHttpTransport.connectRaw(JdkHttpTransport.java:133)
at com.sforce.ws.transport.JdkHttpTransport.connectLocal(JdkHttpTransport.java:97)
at com.sforce.ws.transport.JdkHttpTransport.connectLocal(JdkHttpTransport.java:92)
at com.sforce.ws.transport.JdkHttpTransport.connect(JdkHttpTransport.java:88)
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:94)
... 21 more
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterExce
ption: the trustAnchors parameter must be non-empty
at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:57)
at sun.security.validator.Validator.getInstance(Validator.java:161)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:
108)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl
.java:204)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl
.java:249)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:118
5)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:136)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:925)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:117
0)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1197)
... 31 more
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-
empty
at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:183)
at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:103)
at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:87)
at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:55)
... 42 more

  • April 19, 2012
  • Like
  • 0

Hi,

 

I am new to this platform and having some wierd troubles and a hard time debugging it.

 

I am attempting to invoke the web service API of an AppExchange application whose WSDL has been provided to me.

 

I am using enterprise WSDL API to login and then switching the end point to the AppExchange WSDL URL.

 

all the service end points are being picked up from the WSDLs however, my java client runs fine on local machine but when I deploy it as a custom component in LiveCycle, I am getting this error:

 

com.sforce.ws.ConnectionException: Failed to send request to https://cs1-api.salesforce.com/services/Soap/c/22.0/00DS00000001RG1/0DFS00000008Rtd

 

Caused by: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:
    java.security.cert.CertPathValidatorException: The certificate issued by OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US is not trusted; internal cause is:
    java.security.cert.CertPathValidatorException: Certificate chaining error

 

I tried installing certificates on the server end but it didnt help. Then I realized when I am printing the authendpoint and service end point, they are different host names... auth being https://test.salesforce.com/services/Soap/c/22.0/0DFS00000008Rtd and service being https://cs1-api.salesforce.com/services/Soap/c/22.0/00DS00000001RG1/0DFS00000008Rtd

 

The service end point for the AppExchange app is https://cs1-api.salesforce.com/services/Soap/class/MyApp which when set was throwing the aforementioned error.

 

So I tried changing the host name from cs1-api.salesforce.com to test.salesforce.com expecting it to work fine.

 

But now I am getting a different error that too intermittently saying:

 

com.sforce.ws.SoapFaultException: INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session. Session not found, missing session key:

 

and sometimes I am getting this error:

UnexpectedErrorFault [ApiFault  exceptionCode='UNKNOWN_EXCEPTION'
 exceptionMessage='Destination URL not reset. The URL returned from login must be set in the SforceService'

 

I am totally confused and dont know what to do. Here is a code snippet I am using:

 

ConnectorConfig config = new ConnectorConfig();
config.setUsername(USERNAME);
config.setPassword(PASSWORD);

connection = Connector.newConnection(config);

//Change service end point to call my app
config.setServiceEndpoint(myAppEndPoint);
SoapConnection sc = new SoapConnection(config);

String retval = sc.callMyMethod();


Regards

D