com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting element 'urn:tooling.soap.sforce.com:returnType' but found 'urn:tooling.soap.sforce.com:visibility'

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Unexpected element... again!
    via GitHub by dwfallin
    ,
  • GitHub comment 35#26545073
    via GitHub by sfell
    ,
  • GitHub comment 35#26555882
    via GitHub by earlofrose
    ,
  • Salesforce Hacks
    via by Unknown author,
  • Salesforce connector exception
    via Salesforce by amcep123
    ,
    • com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting element 'urn:tooling.soap.sforce.com:returnType' but found 'urn:tooling.soap.sforce.com:visibility' at com.sforce.ws.bind.TypeMapper.verifyTag(TypeMapper.java:411) at com.sforce.ws.bind.TypeMapper.verifyElement(TypeMapper.java:440) at com.sforce.soap.tooling.Method.setReturnType(Method.java:36) at com.sforce.soap.tooling.Method.loadFields(Method.java:71) at com.sforce.soap.tooling.Method.load(Method.java:64) at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:662) at com.sforce.ws.bind.TypeMapper.readArray(TypeMapper.java:553) at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:531) at com.sforce.soap.tooling.SymbolTable.setMethods(SymbolTable.java:177) at com.sforce.soap.tooling.SymbolTable.loadFields(SymbolTable.java:392) at com.sforce.soap.tooling.SymbolTable.load(SymbolTable.java:381) at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:662) at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:529) at com.sforce.soap.tooling.ApexClassMember.setSymbolTable(ApexClassMember.java:485) at com.sforce.soap.tooling.ApexClassMember.loadFields(ApexClassMember.java:580) at com.sforce.soap.tooling.ApexClassMember.load(ApexClassMember.java:557) at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:662) at com.sforce.ws.bind.TypeMapper.readArray(TypeMapper.java:553) at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:531) at com.sforce.soap.tooling.QueryResult.setRecords(QueryResult.java:153) at com.sforce.soap.tooling.QueryResult.loadFields(QueryResult.java:250) at com.sforce.soap.tooling.QueryResult.load(QueryResult.java:240) at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:662) at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:529) at com.sforce.soap.tooling.QueryResponse_element.setResult(QueryResponse_element.java:37) at com.sforce.soap.tooling.QueryResponse_element.loadFields(QueryResponse_element.java:68) at com.sforce.soap.tooling.QueryResponse_element.load(QueryResponse_element.java:62) at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:662) at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:529) 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.tooling.ToolingConnection.query(ToolingConnection.java:588)
    No Bugmate found.