4 Replies Latest reply on Sep 12, 2016 10:44 AM by Ramesh Reddy

    Issue using salesforce-34 api

    Thomas Esche Newbie

      Hi,

      I am currently evaluating teiid and I am really excited. But now I have a strange issue. Maybe realted to https://developer.jboss.org/thread/263098 and [TEIID-3981] Salesforce-34 connector dependency on "com.force.api" is wrong - JBoss Issue Tracker.

      As server I use wildfly 10.0.0.Final and teiid-9.1.0.Beta1. In the standalone.xml I configured the resource adapters "salesforce" and "salesforce-34". And I defined two VDB's, one for salesforce and one for salesforce-34.

      Both work fine with squirell as client.

       

      My own written java standalone client (based on the quickstarts and https://docs.jboss.org/author/display/teiid830final/Connecting+to+Teiid+-+SimpleClient+Example) works proper with v22 only. As soon as I use a WHERE condition to select a certain ID, the v34 version throws the following exception:

       

      java.lang.NoSuchMethodError: Remote java.lang.NoSuchMethodError: com.sforce.soap.partner.QueryResult.setRecords([Lcom/sforce/soap/partner/sobject/SObject;>V

      at org.teiid.resource.adapter.salesforce.SalesforceConnectionImpl.retrieve(SalesforceConnectionImpl.java:456)

      at org.teiid.translator.salesforce.execution.QueryExecutionImpl.execute(QueryExecutionImpl.java:206)

      at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.execute(ConnectorWorkItem.java:367)

      ...

       

      My client use the jdbc driver teiid-9.1.0.Beta1-jdbc.jar and has no other dependencies. It makes also no difference if I use org.teiid.jdbc.TeiidDataSource or org.teiid.jdbc.TeiidDriver.

      By the way: The same issue I have if I try to use salesforce-34 from an EJB that runs within the teiid server.

       

      Any ideas?

      Very thanks in advance.

      Thomas