com.sforce.ws.ConnectionException: Failed to parse detail: START_TAG seen ...</

The new project needs to communicate with the Salesforce system to realize the joint development of API.

When calling the API to execute the login call, the following error occurs

com.sforce.ws.ConnectionException: Failed to parse detail:  START_TAG seen ...</sf:exceptionMessage><sf:upgradeURL>... @1:755 due to: com.sforce.ws.ConnectionException: unable to find end tag at:  START_TAG seen ...</sf:exceptionMessage><sf:upgradeURL>... @1:755

at com.sforce.ws.transport.SoapConnection.parseDetail(SoapConnection.java:246)

at com.sforce.ws.transport.SoapConnection.createException(SoapConnection.java:210)

at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:156)

at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)

at com.sforce.soap.enterprise.EnterpriseConnection.login(EnterpriseConnection.java:1217)

at com.sforce.soap.enterprise.EnterpriseConnection.<init>(EnterpriseConnection.java:387)

at com.sforce.TestLogin.main(TestLogin.java:22)

After investigation, it turned out that it was caused by the version of JDK. I used jdk 1.7, and the version of TLS was too low, which caused the problem of parsing errors.

 

There are two solutions

1. Using JDK 1.8, I did not upgrade my JDK, I still use JDK 1.7

2. Set the JVM to join the configuration -Dhttps.protocols=TLSv1.1,TLSv1.2


 

Problem solved.
 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326496577&siteId=291194637