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

Salesforce | podhornyi96 | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    ConnectionException while trying to query SymbolTable

    Salesforce | 1 year ago | podhornyi96
    com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting element 'urn:tooling.soap.sforce.com:returnType' but found 'urn:tooling.soap.sforce.com:visibility'
  2. 0

    Unexpected element... again!

    GitHub | 3 years ago | dwfallin
    com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting element 'urn:enterprise.soap.sforce.com:height' but found 'urn:enterprise.soap.sforce.com:theme'
  3. 0

    Facing Parsing issue while using the connector

    GitHub | 4 months ago | kapil9186
    com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting element 'urn:partner.soap.sforce.com:orgDisallowHtmlAttachments' but found 'urn:partner.soap.sforce.com:orgDefaultCurrencyLocale'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    com.sforce.ws.ConnectionException: Unexpected element

    GitHub | 4 years ago | earlofrose
    com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting element 'urn:enterprise.soap.sforce.com:compactLayoutable' but found 'urn:enterprise.soap.sforce.com:createable'
  6. 0

    GitHub comment 35#26545073

    GitHub | 4 years ago | sfell
    com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting element 'urn:enterprise.soap.sforce.com:compactLayoutable' but found 'urn:enterprise.soap.sforce.com:createable'

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. force-wsc
      TypeMapper.verifyElement
      1. com.sforce.ws.bind.TypeMapper.verifyTag(TypeMapper.java:411)
      2. com.sforce.ws.bind.TypeMapper.verifyElement(TypeMapper.java:440)
      2 frames
    3. com.sforce.soap
      Method.load
      1. com.sforce.soap.tooling.Method.setReturnType(Method.java:36)
      2. com.sforce.soap.tooling.Method.loadFields(Method.java:71)
      3. com.sforce.soap.tooling.Method.load(Method.java:64)
      3 frames
    4. force-wsc
      TypeMapper.readObject
      1. com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:662)
      2. com.sforce.ws.bind.TypeMapper.readArray(TypeMapper.java:553)
      3. com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:531)
      3 frames
    5. com.sforce.soap
      SymbolTable.load
      1. com.sforce.soap.tooling.SymbolTable.setMethods(SymbolTable.java:177)
      2. com.sforce.soap.tooling.SymbolTable.loadFields(SymbolTable.java:392)
      3. com.sforce.soap.tooling.SymbolTable.load(SymbolTable.java:381)
      3 frames
    6. force-wsc
      TypeMapper.readObject
      1. com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:662)
      2. com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:529)
      2 frames
    7. com.sforce.soap
      ApexClassMember.load
      1. com.sforce.soap.tooling.ApexClassMember.setSymbolTable(ApexClassMember.java:485)
      2. com.sforce.soap.tooling.ApexClassMember.loadFields(ApexClassMember.java:580)
      3. com.sforce.soap.tooling.ApexClassMember.load(ApexClassMember.java:557)
      3 frames
    8. force-wsc
      TypeMapper.readObject
      1. com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:662)
      2. com.sforce.ws.bind.TypeMapper.readArray(TypeMapper.java:553)
      3. com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:531)
      3 frames
    9. com.sforce.soap
      QueryResult.load
      1. com.sforce.soap.tooling.QueryResult.setRecords(QueryResult.java:153)
      2. com.sforce.soap.tooling.QueryResult.loadFields(QueryResult.java:250)
      3. com.sforce.soap.tooling.QueryResult.load(QueryResult.java:240)
      3 frames
    10. force-wsc
      TypeMapper.readObject
      1. com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:662)
      2. com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:529)
      2 frames
    11. com.sforce.soap
      QueryResponse_element.load
      1. com.sforce.soap.tooling.QueryResponse_element.setResult(QueryResponse_element.java:37)
      2. com.sforce.soap.tooling.QueryResponse_element.loadFields(QueryResponse_element.java:68)
      3. com.sforce.soap.tooling.QueryResponse_element.load(QueryResponse_element.java:62)
      3 frames
    12. force-wsc
      SoapConnection.send
      1. com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:662)
      2. com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:529)
      3. com.sforce.ws.transport.SoapConnection.bind(SoapConnection.java:180)
      4. com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:154)
      5. com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:99)
      5 frames
    13. com.sforce.soap
      ToolingConnection.query
      1. com.sforce.soap.tooling.ToolingConnection.query(ToolingConnection.java:588)
      1 frame