Getting the below exception while connecting Salesforce instance from Java code. I am using Partner WSDL now. But still getting the same exception.

```
com.sforce.ws.ConnectionException: Failed to parse detail:  START_TAG seen ...</sf:exceptionMessage><sf:upgradeURL>... @1:752 due to: com.sforce.ws.ConnectionException: unable to find end tag at:  START_TAG seen ...</sf:exceptionMessage><sf:upgradeURL>... @1:752
    at com.sforce.ws.transport.SoapConnection.parseDetail(SoapConnection.java:233)
    at com.sforce.ws.transport.SoapConnection.createException(SoapConnection.java:202)
    at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:148)
    at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:110)
    at com.sforce.soap.partner.PartnerConnection.login(PartnerConnection.java:1426)
    at com.sforce.soap.partner.PartnerConnection.<init>(PartnerConnection.java:406)
    at com.netapp.sfdc.sandbox.objects.CreatePartnerContact.login(CreatePartnerContact.java:76)
    at com.netapp.sfdc.sandbox.objects.CreatePartnerContact.main(CreatePartnerContact.java:25)

```

I am running the below code: 

```
ConnectorConfig config = new ConnectorConfig(); 
config.setUsername(username); 
config.setPassword(password); 
config.setAuthEndpoint(authEndPoint); 
config.setTraceFile("traceLogs.txt"); 
config.setTraceMessage(true); 
config.setPrettyPrintXml(true); 
partnerConnection = new PartnerConnection(config); 

```