2 Replies Latest reply on Nov 2, 2015 1:40 PM by Ashu Ashu

    Java client throws org.jboss.jca.adapters.jdbc.WrapperDataSource is was not a ConnectionFactory implementation exception while executing sql query

    Ashu Ashu Newbie

      Jboss EAP : jboss-eap-6.4.0

      Data Virtualization Platform : jboss-dv-installer-6.2.0.redhat-3


      I have created a  sample Teiid project  using eclipse and created a sample VDB  to read data from XML file. The VDB  is deployed successfully on JBOSS EAP 6.4 and Test connection for datasource is also successful from Jboss console UI.

       

      While running java client code I am getting “org.jboss.jca.adapters.jdbc.WrapperDataSource is was not a ConnectionFactory implementation at org.teiid.jdbc.TeiidSQLException.create(TeiidSQLException.java:135)” exception  .

       

      Following is the JNDI ” java:/SourceModel” configured in the Jboss server . I tried in both Standalone, Domain server configuration with  Datasource , xa datasource always got the following error trace .


      Attached  Word Doc has following data :

       

      - Problem Detail

      - Error Stack trace

      - Sample Java Client code

       

      Please also find the attached VDB deployed project


      org.teiid.jdbc.TeiidSQLException: TEIID30504 Remote org.teiid.core.TeiidProcessingException: TEIID30504 SourceModel: org.jboss.jca.adapters.jdbc.WrapperDataSource is was not a ConnectionFactory implementation

                                    at org.teiid.jdbc.TeiidSQLException.create(TeiidSQLException.java:135)

                                    at org.teiid.jdbc.TeiidSQLException.create(TeiidSQLException.java:71)

                                    at org.teiid.jdbc.StatementImpl.postReceiveResults(StatementImpl.java:667)

                                    at org.teiid.jdbc.StatementImpl.access$100(StatementImpl.java:63)

                                    at org.teiid.jdbc.StatementImpl$2.onCompletion(StatementImpl.java:515)

                                    at org.teiid.client.util.ResultsFuture.done(ResultsFuture.java:135)

                                    at org.teiid.client.util.ResultsFuture.access$200(ResultsFuture.java:40)

                                    at org.teiid.client.util.ResultsFuture$1.receiveResults(ResultsFuture.java:79)

                                    at org.teiid.net.socket.SocketServerInstanceImpl.receivedMessage(SocketServerInstanceImpl.java:264)

                                    at org.teiid.net.socket.SocketServerInstanceImpl.read(SocketServerInstanceImpl.java:302)

                                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                    at java.lang.reflect.Method.invoke(Method.java:483)

                                    at org.teiid.net.socket.SocketServerConnectionFactory$ShutdownHandler.invoke(SocketServerConnectionFactory.java:98)

                                    at com.sun.proxy.$Proxy1.read(Unknown Source)

                                    at org.teiid.net.socket.SocketServerInstanceImpl$RemoteInvocationHandler$1.get(SocketServerInstanceImpl.java:401)

                                    at org.teiid.jdbc.StatementImpl.executeSql(StatementImpl.java:524)

                                    at org.teiid.jdbc.StatementImpl.executeSql(StatementImpl.java:393)

                                    at org.teiid.jdbc.StatementImpl.executeQuery(StatementImpl.java:327)

                                    at samples.customerlist.TeiidClient.execute(TeiidClient.java:76)

                                    at samples.customerlist.TeiidClient.<init>(TeiidClient.java:33)

                                    at samples.customerlist.TeiidClient.main(TeiidClient.java:110)