• Lakshminarayana CV
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Getting following error when I try to login through java client failing at          connection = new EnterpriseConnection(config); Thanks in advance for the answer.

com.sforce.ws.ConnectionException: Failed to create object
    at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:677)
    at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:556)
    at com.sforce.soap.enterprise.LoginResponse_element.setResult(LoginResponse_element.java:38)
    at com.sforce.soap.enterprise.LoginResponse_element.loadFields(LoginResponse_element.java:69)
    at com.sforce.soap.enterprise.LoginResponse_element.load(LoginResponse_element.java:63)
    at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:674)
    at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:556)
    at com.sforce.ws.transport.SoapConnection.bind(SoapConnection.java:180)
    at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:154)
    at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)
    at com.sforce.soap.enterprise.EnterpriseConnection.login(EnterpriseConnection.java:1097)
    at com.sforce.soap.enterprise.EnterpriseConnection.<init>(EnterpriseConnection.java:387)
    at com.orangelake.tourmanifest.client.QuickstartApiSample.login(abc.java:93)
    at com.orangelake.tourmanifest.client.QuickstartApiSample.run(abc.java:47)
    at com.orangelake.tourmanifest.client.QuickstartApiSample.main(abc.java:42)
Caused by: java.lang.InstantiationException: com.sforce.soap.enterprise.LoginResult
    at java.lang.Class.newInstance(Unknown Source)
    at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:673)
    ... 14 more
Caused by: java.lang.NoSuchMethodException: com.sforce.soap.enterprise.LoginResult.<init>()
    at java.lang.Class.getConstructor0(Unknown Source)
Getting following error when I try to login through java client failing at          connection = new EnterpriseConnection(config); Thanks in advance for the answer.

com.sforce.ws.ConnectionException: Failed to create object
    at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:677)
    at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:556)
    at com.sforce.soap.enterprise.LoginResponse_element.setResult(LoginResponse_element.java:38)
    at com.sforce.soap.enterprise.LoginResponse_element.loadFields(LoginResponse_element.java:69)
    at com.sforce.soap.enterprise.LoginResponse_element.load(LoginResponse_element.java:63)
    at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:674)
    at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:556)
    at com.sforce.ws.transport.SoapConnection.bind(SoapConnection.java:180)
    at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:154)
    at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)
    at com.sforce.soap.enterprise.EnterpriseConnection.login(EnterpriseConnection.java:1097)
    at com.sforce.soap.enterprise.EnterpriseConnection.<init>(EnterpriseConnection.java:387)
    at com.orangelake.tourmanifest.client.QuickstartApiSample.login(abc.java:93)
    at com.orangelake.tourmanifest.client.QuickstartApiSample.run(abc.java:47)
    at com.orangelake.tourmanifest.client.QuickstartApiSample.main(abc.java:42)
Caused by: java.lang.InstantiationException: com.sforce.soap.enterprise.LoginResult
    at java.lang.Class.newInstance(Unknown Source)
    at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:673)
    ... 14 more
Caused by: java.lang.NoSuchMethodException: com.sforce.soap.enterprise.LoginResult.<init>()
    at java.lang.Class.getConstructor0(Unknown Source)