1 2 Previous Next 18 Replies Latest reply on Sep 20, 2013 1:43 PM by rareddy

    CustomTranslator - AbstractMethodError exception

    radek.koubsky

      Hi guys,

      I am developing connector and translator to Cassandra database. Now, I am testing it on simple VDB. Seems that it connects to cassandra database I am running, but when the translator calls CassandraConnection.keyspaceInfo() within getMetadata(...) method, it throws java.lang.AbstractMethodError. Looks like the interface can't find implemented method. Thanks for help.

       

      Here is my code https://code.google.com/p/cassandra-connector/source/browse/#svn%2Ftrunk%2F%20cassandra-connector

      And log from JBoss AS 7:

       

      21:06:55,393 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      21:06:57,169 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      21:06:57,306 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

      21:07:05,119 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

      21:07:05,138 INFO  [org.xnio] XNIO Version 3.0.3.GA

      21:07:05,154 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

      21:07:05,197 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

      21:07:05,313 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

      21:07:05,377 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 34)  JBAS010280: Activating Infinispan subsystem.

      21:07:05,460 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 52)  JBAS015537: Activating WebServices Extension

      21:07:05,363 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 41)  JBAS011800: Activating Naming Subsystem

      21:07:05,363 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 47)  JBAS013101: Activating Security Subsystem

      21:07:05,375 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 42)  JBAS011940: Activating OSGi Subsystem

      21:07:05,536 INFO  [org.jboss.as.security] (MSC service thread 1-7)  JBAS013100: Current PicketBox version=4.0.7.Final

      21:07:06,039 INFO  [org.jboss.as.connector] (MSC service thread 1-5)  JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

      21:07:06,564 INFO  [org.jboss.as.naming] (MSC service thread 1-6)  JBAS011802: Starting Naming Service

      21:07:06,567 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-5)  JBAS015400: Bound mail session [java:jboss/mail/Default]

      21:07:07,314 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1)  Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

      21:07:07,940 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 30)  JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      21:07:08,166 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 30)  JBAS010404: Deploying non-JDBC-compliant driver class org.teiid.jdbc.TeiidDriver (version 8.3)

      21:07:08,184 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 30)  JBAS010404: Deploying non-JDBC-compliant driver class org.teiid.jdbc.TeiidDriver (version 8.3)

      21:07:08,456 INFO  [org.teiid.SECURITY] (ServerService Thread Pool -- 48)  TEIID50011 Security enabled for transport "jdbc" with security-domain set to teiid-security

      21:07:08,458 INFO  [org.teiid.SECURITY] (ServerService Thread Pool -- 48)  TEIID50011 Security enabled for transport "odata" with security-domain set to teiid-security

      21:07:08,463 INFO  [org.teiid.SECURITY] (ServerService Thread Pool -- 48)  TEIID50011 Security enabled for transport "odbc" with security-domain set to teiid-security

      21:07:08,616 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2)  JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      21:07:08,838 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "access" added.

      21:07:09,015 INFO  [org.infinispan.factories.GlobalComponentRegistry] (pool-10-thread-1)  ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.2.FINAL

      21:07:09,467 INFO  [org.infinispan.jmx.CacheJmxRegistration] (pool-12-thread-1)  ISPN000031: MBeans were successfully registered to the platform mbean server.

      21:07:09,470 INFO  [org.infinispan.jmx.CacheJmxRegistration] (pool-10-thread-1)  ISPN000031: MBeans were successfully registered to the platform mbean server.

      21:07:09,473 INFO  [org.jboss.as.clustering.infinispan] (pool-10-thread-1)  JBAS010281: Started resultset cache from teiid container

      21:07:09,473 INFO  [org.jboss.as.clustering.infinispan] (pool-12-thread-1)  JBAS010281: Started preparedplan cache from teiid container

      21:07:09,524 INFO  [org.infinispan.jmx.CacheJmxRegistration] (pool-11-thread-1)  ISPN000031: MBeans were successfully registered to the platform mbean server.

      21:07:09,525 INFO  [org.jboss.as.clustering.infinispan] (pool-11-thread-1)  JBAS010281: Started resultset-repl cache from teiid container

      21:07:11,118 INFO  [org.teiid.RUNTIME] (MSC service thread 1-6)  TEIID50001 Teiid Engine 8.3.0.Final Started = Thu Aug 08 21:07:11 CEST 2013

      21:07:11,151 INFO  [org.teiid.RUNTIME] (MSC service thread 1-4)  TEIID50038 Teiid Embedded transport enabled. Bound to: teiid/queryengine/odata

      21:07:11,153 INFO  [org.teiid.RUNTIME] (MSC service thread 1-6)  TEIID50038 Teiid Embedded transport enabled. Bound to: teiid/queryengine/embedded

      21:07:11,306 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-3)  JBoss Web Services - Stack CXF Server 4.0.2.GA

      21:07:11,426 INFO  [org.teiid.RUNTIME] (MSC service thread 1-2)  TEIID50012 Teiid JDBC - Name = jdbc, Host = localhost,  Port = 31000, SSL = OFF, security-domains = [teiid-security]

      21:07:11,428 INFO  [org.teiid.RUNTIME] (MSC service thread 1-5)  TEIID50037 Teiid ODBC - Name = odbc, Host = localhost,  Port = 35432, SSL = OFF, security-domains = [teiid-security]

      21:07:11,558 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "cassandra" added.

      21:07:11,617 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "db2" added.

      21:07:11,659 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "derby" added.

      21:07:11,965 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "file" added.

      21:07:12,071 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "h2" added.

      21:07:12,168 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "hive" added.

      21:07:12,207 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "hsql" added.

      21:07:12,358 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "infinispan-cache" added.

      21:07:12,468 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "informix" added.

      21:07:12,538 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "ingres" added.

      21:07:12,609 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "ingres93" added.

      21:07:12,706 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "intersystems-cache" added.

      21:07:12,714 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "jdbc-ansi" added.

      21:07:12,727 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "jdbc-simple" added.

      21:07:12,815 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "jpa2" added.

      21:07:12,878 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "ldap" added.

      21:07:12,917 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "loopback" added.

      21:07:12,924 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "map-cache" added.

      21:07:12,973 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "metamatrix" added.

      21:07:13,039 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "modeshape" added.

      21:07:13,092 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "mysql" added.

      21:07:13,140 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "mysql5" added.

      21:07:13,214 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "netezza" added.

      21:07:13,510 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "odata" added.

      21:07:13,526 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "olap" added.

      21:07:13,567 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "oracle" added.

      21:07:13,613 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "postgresql" added.

      21:07:13,749 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "salesforce" added.

      21:07:13,800 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "sqlserver" added.

      21:07:13,835 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "sybase" added.

      21:07:13,872 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "teiid" added.

      21:07:13,929 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "teradata" added.

      21:07:13,939 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 48)  TEIID50006 Teiid translator "ws" added.

      21:07:14,019 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2)  JBAS015876: Starting deployment of "teiid-odata-8.3.0.Final.war"

      21:07:14,096 INFO  [org.jboss.as.remoting] (MSC service thread 1-6)  JBAS017100: Listening on /127.0.0.1:9999

      21:07:14,099 INFO  [org.jboss.as.remoting] (MSC service thread 1-7)  JBAS017100: Listening on localhost/127.0.0.1:4447

      21:07:14,190 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5)  JBAS015012: Started FileSystemDeploymentService for directory C:\jboss-as-7.1.1.Final\standalone\deployments

      21:07:17,432 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-6)  Deploying javax.ws.rs.core.Application: class org.teiid.odata.TeiidODataApplication

      21:07:18,298 INFO  [org.jboss.web] (MSC service thread 1-6)  JBAS018210: Registering web context: /odata

      21:07:18,334 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 48)  JBAS018559: Deployed "teiid-odata-8.3.0.Final.war"

      21:07:18,349 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6)  JBAS015876: Starting deployment of "cassandra-vdb.xml"

      21:07:18,354 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8)  JBAS015876: Starting deployment of "connector-cassandra-8.3.0.CR2-SNAPSHOT.rar"

      21:07:18,354 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5)  JBAS015876: Starting deployment of "teiid-connector-file.rar"

      21:07:18,358 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6)  JBAS015876: Starting deployment of "teiid-connector-ldap.rar"

      21:07:18,357 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3)  JBAS015876: Starting deployment of "teiid-connector-infinispan.rar"

      21:07:18,360 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3)  JBAS015876: Starting deployment of "teiid-connector-ws.rar"

      21:07:18,356 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8)  JBAS015876: Starting deployment of "teiid-connector-google.rar"

      21:07:18,359 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5)  JBAS015876: Starting deployment of "teiid-connector-salesforce.rar"

      21:07:18,910 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-7)  JBAS018567: Deployment "deployment.teiid-connector-salesforce.rar" is using a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.

      21:07:18,913 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-7)  JBAS018567: Deployment "deployment.teiid-connector-salesforce.rar" is using a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.

      21:07:18,975 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-5)  JBAS018567: Deployment "deployment.teiid-connector-ws.rar" is using a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.

      21:07:18,992 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-5)  JBAS018567: Deployment "deployment.teiid-connector-ws.rar" is using a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.

      21:07:18,998 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-1)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp7db976683b0d1c24/teiid-connector-ldap.rar-6ec78cec9964221d/contents/

      21:07:19,035 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-7)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp7db976683b0d1c24/teiid-connector-file.rar-46b72daa69b89408/contents/

      21:07:19,044 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-5)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp7db976683b0d1c24/teiid-connector-ws.rar-b4e59fbb6ada61bb/contents/

      21:07:19,016 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-8)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp7db976683b0d1c24/teiid-connector-salesforce.rar-5c0bee2426666ebd/contents/

      21:07:19,172 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4)  JBAS018567: Deployment "deployment.teiid-connector-infinispan.rar" is using a private module ("org.infinispan.client.hotrod:main") which may be changed or removed in future versions without notice.

      21:07:19,174 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4)  JBAS018567: Deployment "deployment.teiid-connector-infinispan.rar" is using a private module ("org.infinispan.cachestore.remote:main") which may be changed or removed in future versions without notice.

      21:07:19,175 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4)  JBAS018567: Deployment "deployment.teiid-connector-infinispan.rar" is using a private module ("org.jboss.as.clustering.infinispan:main") which may be changed or removed in future versions without notice.

      21:07:19,176 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4)  JBAS018567: Deployment "deployment.teiid-connector-infinispan.rar" is using a private module ("org.infinispan.client.hotrod:main") which may be changed or removed in future versions without notice.

      21:07:19,177 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4)  JBAS018567: Deployment "deployment.teiid-connector-infinispan.rar" is using a private module ("org.infinispan.cachestore.remote:main") which may be changed or removed in future versions without notice.

      21:07:19,178 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4)  JBAS018567: Deployment "deployment.teiid-connector-infinispan.rar" is using a private module ("org.jboss.as.clustering.infinispan:main") which may be changed or removed in future versions without notice.

      21:07:19,187 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-4)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp7db976683b0d1c24/teiid-connector-infinispan.rar-fdfad6ab26513f6e/contents/

      21:07:19,326 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-7)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp7db976683b0d1c24/teiid-connector-google.rar-19d83dd338b69ba4/contents/

      21:07:20,772 INFO  [org.teiid.RUNTIME] (MSC service thread 1-1)  TEIID50029 VDB Cassandra.1 model "CassandraNoSql" metadata is currently being loaded. Start Time: 08/08/13 21:07

      21:07:20,780 WARN  [org.teiid.RUNTIME] (teiid-async-threads - 1)  TEIID50036 VDB Cassandra.1 model "CassandraNoSql" metadata failed to load. Reason:TEIID31097 Connection Factory (no data source found) provided is null; Can not proceed with metadata load.

      21:07:22,556 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6)  Class Path entry apache-cassandra-clientutil-1.2.3.jar in "/C:/jboss-as-7.1.1.Final/bin/content/connector-cassandra-8.3.0.CR2-SNAPSHOT.rar/cassandra-all-1.2.3.jar"  does not point to a valid jar for a Class-Path reference.

      21:07:22,557 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6)  Class Path entry apache-cassandra-thrift-1.2.3.jar in "/C:/jboss-as-7.1.1.Final/bin/content/connector-cassandra-8.3.0.CR2-SNAPSHOT.rar/cassandra-all-1.2.3.jar"  does not point to a valid jar for a Class-Path reference.

      21:07:22,571 INFO  [org.jboss.as.pojo] (MSC service thread 1-7)  JBAS017000: Found legacy bean/pojo namespace: urn:jboss:bean-deployer:2.0 - might be missing some xml features (potential exceptions).

      21:07:23,591 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-3)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp7db976683b0d1c24/connector-cassandra-8.3.0.CR2-SNAPSHOT.rar-5cb58c93240c1eae/contents/

      21:07:23,603 INFO  [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-1)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp7db976683b0d1c24/connector-cassandra-8.3.0.CR2-SNAPSHOT.rar-5cb58c93240c1eae/contents/

      21:07:23,631 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-1)  JBAS010406: Registered connection factory java:/cassandra

      21:07:23,638 INFO  [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-1)  IJ020002: Deployed: file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp7db976683b0d1c24/connector-cassandra-8.3.0.CR2-SNAPSHOT.rar-5cb58c93240c1eae/contents/

      21:07:23,641 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-8)  JBAS010401: Bound JCA ConnectionFactory [java:/cassandra]

      21:07:23,643 INFO  [org.jboss.as] (MSC service thread 1-5)  JBAS015951: Admin console listening on http://127.0.0.1:9990

      21:07:23,645 INFO  [org.jboss.as] (MSC service thread 1-5)  JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 29755ms - Started 425 of 535 services (109 services are passive or on-demand)

      21:07:23,835 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "teiid-connector-ws.rar"

      21:07:23,836 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "teiid-connector-salesforce.rar"

      21:07:23,837 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "teiid-connector-ldap.rar"

      21:07:23,838 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "teiid-connector-infinispan.rar"

      21:07:23,838 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "teiid-connector-google.rar"

      21:07:23,839 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "teiid-connector-file.rar"

      21:07:23,840 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "connector-cassandra-8.3.0.CR2-SNAPSHOT.rar"

      21:07:23,841 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "cassandra-vdb.xml"

      21:07:24,187 ERROR [stderr] (teiid-async-threads - 2)  log4j:WARN No appenders could be found for logger (com.datastax.driver.core.Cluster).

       

       

      21:07:24,187 ERROR [stderr] (teiid-async-threads - 2)  log4j:WARN Please initialize the log4j system properly.

       

       

      21:07:24,188 ERROR [stderr] (teiid-async-threads - 2)  log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

       

       

      21:07:26,150 ERROR [org.jboss.threads.executor] (teiid-async-threads - 2)  Task execution failed for task org.teiid.jboss.VDBService$6@25b909b5: java.lang.AbstractMethodError: org.teiid.resource.adapter.cassandra.CassandraConnectionImpl.keyspaceInfo()Lcom/datastax/driver/core/KeyspaceMetadata;

                at org.teiid.translator.cassandra.CassandraExecutionFactory.getMetadata(CassandraExecutionFactory.java:43)

                at org.teiid.translator.cassandra.CassandraExecutionFactory.getMetadata(CassandraExecutionFactory.java:1)

                at org.teiid.query.metadata.NativeMetadataRepository.loadMetadata(NativeMetadataRepository.java:61) [teiid-engine-8.3.0.Final.jar:8.3.0.Final]

                at org.teiid.query.metadata.ChainingMetadataRepository.loadMetadata(ChainingMetadataRepository.java:55) [teiid-engine-8.3.0.Final.jar:8.3.0.Final]

                at org.teiid.jboss.VDBService$6.run(VDBService.java:384) [teiid-jboss-integration-8.3.0.Final.jar:8.3.0.Final]

                at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)

                at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801)

                at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)

                at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:821)

                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122)

        • 1. Re: CustomTranslator - AbstractMethodError exception
          rareddy

          You need to provide implementation of CassandraConnection class, that is what it is saying, or something wrong with compilation.

          • 2. Re: CustomTranslator - AbstractMethodError exception
            shawkins

            Can you verify the com.datastax.cassandra.driver.core contains the expected jars?

            • 3. Re: CustomTranslator - AbstractMethodError exception
              radek.koubsky

              That's the problem, the abstract method is implemented in CassandraConnectionImpl class, but not at runtime.

               

              To Steven Hawkins: Yes, I made new module in jboss/modules and added all jars there.

              • 4. Re: CustomTranslator - AbstractMethodError exception
                shawkins

                When I run through your code in Embedded mode through the ide, which is automatically resolving the maven dependencies, it seems to work fine.  Can you post your cassandra module so that I can very this in the container as well.  Also what are your plans for this connectivity?  Are you looking to contribute to Teiid for https://issues.jboss.org/browse/TEIID-1311

                 

                Steve

                • 5. Re: CustomTranslator - AbstractMethodError exception
                  radek.koubsky

                  Here is my cassandra module (under org\jboss\teiid\translator\cassandra) and cassandra driver core module(under com\datastax\cassandra\driver\core, I had to improvise because a lot of jars that the core uses are not available in jboss modules, so I added them manually to the resources) in modules.rar archive below. This project is my bachelor thesis at the university, when I finish I can contribute this connector to Teiid, I will discuss it with my advisor. But first it must work.

                  • 6. Re: CustomTranslator - AbstractMethodError exception
                    shawkins

                    Can you also supply the .rar used to deploy the cassandra connector? 

                     

                    The lines:

                     

                    21:07:22,556 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6)  Class Path entry apache-cassandra-clientutil-1.2.3.jar in "/C:/jboss-as-7.1.1.Final/bin/content/connector-cassandra-8.3.0.CR2-SNAPSHOT.rar/cassandra-all-1.2.3.jar"  does not point to a valid jar for a Class-Path reference.

                    21:07:22,557 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6)  Class Path entry apache-cassandra-thrift-1.2.3.jar in "/C:/jboss-as-7.1.1.Final/bin/content/connector-cassandra-8.3.0.CR2-SNAPSHOT.rar/cassandra-all-1.2.3.jar"  does not point to a valid jar for a Class-Path reference.

                     

                    make it seem like it also has the cassandra dependencies included.  If that's the case then there may be a classloader conflict.

                     

                    Steve

                    • 7. Re: CustomTranslator - AbstractMethodError exception
                      rareddy

                      How does your "module" in AS7 (module.xml and respective jar files) in the modules directory look? I see the dependency specified in your connector for "com.datastax.cassandra.driver.core", that is module where you need to define all the jars for cassendra. If you use any of the classes from cassendra in your translator too.

                       

                      So the expectation here is you have three different modules

                      1) com.datastax.cassandra.driver.core module that has all the cassendra jars (in "modules" directory)

                      2) translator module (in "modules" directory)

                      3) connector module or RAR file (in "modules" directory, if RAR deployed separately when the server is started)

                       

                      both 2 and 3 have dependencies on 1 in their module.xml or MANIFEST.MF files.

                       

                      Ramesh..

                      • 8. Re: CustomTranslator - AbstractMethodError exception
                        radek.koubsky

                        To Steve: Yes, in .rar were all the jars that are provided in module, I fixed that, now .rar contains only the connector jar, this solved the class path entry warns, thanks for that. But the main problem is still unsloved.

                         

                        To Ramesh:

                        You can find com.datastax.cassandra.driver.core and org.jboss.teiid.translator.cassandra module.xml files in modules.rar that I attached to my post above (post number 5).

                         

                        ad1) yes

                        ad2) yes

                        ad3) rar file is under standalone/deployments

                         

                        Log from jboss:

                        21:56:49,058 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

                        21:56:50,344 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

                        21:56:50,422 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

                        21:56:54,635 INFO  [org.xnio] XNIO Version 3.0.3.GA

                        21:56:54,646 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

                        21:56:54,708 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

                        21:56:54,744 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

                        21:56:54,796 INFO  [org.jboss.as.configadmin] JBAS016200: Activating ConfigAdmin Subsystem

                        21:56:54,801 INFO  [org.jboss.as.naming] JBAS011800: Activating Naming Subsystem

                        21:56:54,806 INFO  [org.jboss.as.webservices] JBAS015537: Activating WebServices Extension

                        21:56:54,810 INFO  [org.jboss.as.clustering.infinispan] JBAS010280: Activating Infinispan subsystem.

                        21:56:54,818 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

                        21:56:54,993 INFO  [org.jboss.as.security] (MSC service thread 1-6)  JBAS013100: Current PicketBox version=4.0.7.Final

                        21:56:55,082 INFO  [org.jboss.as.connector] (MSC service thread 1-3)  JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

                        21:56:56,378 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 28)  JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

                        21:56:56,379 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-7)  Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

                        21:56:56,481 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 28)  JBAS010404: Deploying non-JDBC-compliant driver class org.teiid.jdbc.TeiidDriver (version 8.3)

                        21:56:56,483 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 28)  JBAS010404: Deploying non-JDBC-compliant driver class org.teiid.jdbc.TeiidDriver (version 8.3)

                        21:56:56,638 INFO  [org.jboss.as.naming] (MSC service thread 1-7)  JBAS011802: Starting Naming Service

                        21:56:56,643 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-4)  JBAS015400: Bound mail session [java:jboss/mail/Default]

                        21:56:57,096 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-5)  JBoss Web Services - Stack CXF Server 4.0.2.GA

                        21:56:57,226 INFO  [org.teiid.SECURITY] (ServerService Thread Pool -- 46)  TEIID50011 Security enabled for transport "jdbc" with security-domain set to teiid-security

                        21:56:57,228 INFO  [org.teiid.SECURITY] (ServerService Thread Pool -- 46)  TEIID50011 Security enabled for transport "odata" with security-domain set to teiid-security

                        21:56:57,230 INFO  [org.teiid.SECURITY] (ServerService Thread Pool -- 46)  TEIID50011 Security enabled for transport "odbc" with security-domain set to teiid-security

                        21:56:57,354 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5)  JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

                        21:56:57,515 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "access" added.

                        21:56:57,792 INFO  [org.infinispan.factories.GlobalComponentRegistry] (pool-10-thread-1)  ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.2.FINAL

                        21:56:58,037 INFO  [org.infinispan.jmx.CacheJmxRegistration] (pool-10-thread-1)  ISPN000031: MBeans were successfully registered to the platform mbean server.

                        21:56:58,042 INFO  [org.infinispan.jmx.CacheJmxRegistration] (pool-9-thread-1)  ISPN000031: MBeans were successfully registered to the platform mbean server.

                        21:56:58,046 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "cassandra" added.

                        21:56:58,048 INFO  [org.jboss.as.clustering.infinispan] (pool-10-thread-1)  JBAS010281: Started resultset-repl cache from teiid container

                        21:56:58,048 INFO  [org.jboss.as.clustering.infinispan] (pool-9-thread-1)  JBAS010281: Started resultset cache from teiid container

                        21:56:58,066 INFO  [org.infinispan.jmx.CacheJmxRegistration] (pool-11-thread-1)  ISPN000031: MBeans were successfully registered to the platform mbean server.

                        21:56:58,067 INFO  [org.jboss.as.clustering.infinispan] (pool-11-thread-1)  JBAS010281: Started preparedplan cache from teiid container

                        21:56:58,165 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "db2" added.

                        21:56:58,220 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "derby" added.

                        21:56:58,301 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "file" added.

                        21:56:58,379 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "h2" added.

                        21:56:58,431 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "hive" added.

                        21:56:58,477 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "hsql" added.

                        21:56:58,535 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "infinispan-cache" added.

                        21:56:58,577 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "informix" added.

                        21:56:58,647 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "ingres" added.

                        21:56:58,689 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "ingres93" added.

                        21:56:58,746 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "intersystems-cache" added.

                        21:56:58,752 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "jdbc-ansi" added.

                        21:56:58,759 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "jdbc-simple" added.

                        21:56:58,793 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "jpa2" added.

                        21:56:58,852 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "ldap" added.

                        21:56:58,886 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "loopback" added.

                        21:56:58,894 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "map-cache" added.

                        21:56:58,929 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "metamatrix" added.

                        21:56:58,952 INFO  [org.teiid.RUNTIME] (MSC service thread 1-1)  TEIID50001 Teiid Engine 8.3.0.Final Started = Wed Aug 14 21:56:58 CEST 2013

                        21:56:58,977 INFO  [org.teiid.RUNTIME] (MSC service thread 1-2)  TEIID50038 Teiid Embedded transport enabled. Bound to: teiid/queryengine/odata

                        21:56:58,977 INFO  [org.teiid.RUNTIME] (MSC service thread 1-8)  TEIID50038 Teiid Embedded transport enabled. Bound to: teiid/queryengine/embedded

                        21:56:58,987 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "modeshape" added.

                        21:56:59,019 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "mysql" added.

                        21:56:59,056 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "mysql5" added.

                        21:56:59,101 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "netezza" added.

                        21:56:59,131 INFO  [org.teiid.RUNTIME] (MSC service thread 1-1)  TEIID50012 Teiid JDBC - Name = jdbc, Host = localhost,  Port = 31000, SSL = OFF, security-domains = [teiid-security]

                        21:56:59,132 INFO  [org.teiid.RUNTIME] (MSC service thread 1-6)  TEIID50037 Teiid ODBC - Name = odbc, Host = localhost,  Port = 35432, SSL = OFF, security-domains = [teiid-security]

                        21:56:59,281 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "odata" added.

                        21:56:59,311 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "olap" added.

                        21:56:59,358 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "oracle" added.

                        21:56:59,399 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "postgresql" added.

                        21:56:59,441 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "salesforce" added.

                        21:56:59,478 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "sqlserver" added.

                        21:56:59,504 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "sybase" added.

                        21:56:59,528 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "teiid" added.

                        21:56:59,560 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "teradata" added.

                        21:56:59,578 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 46)  TEIID50006 Teiid translator "ws" added.

                        21:56:59,618 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5)  JBAS015876: Starting deployment of "teiid-odata-8.3.0.Final.war"

                        21:56:59,672 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3)  JBAS015012: Started FileSystemDeploymentService for directory C:\jboss-as-7.1.1.Final\standalone\deployments

                        21:56:59,677 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1)  JBAS015014: Re-attempting failed deployment cassandra-vdb.xml

                        21:56:59,686 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1)  JBAS015014: Re-attempting failed deployment teiid-connector-file.rar

                        21:56:59,691 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1)  JBAS015014: Re-attempting failed deployment teiid-connector-google.rar

                        21:56:59,694 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1)  JBAS015014: Re-attempting failed deployment teiid-connector-infinispan.rar

                        21:56:59,696 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1)  JBAS015014: Re-attempting failed deployment teiid-connector-ldap.rar

                        21:56:59,699 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1)  JBAS015014: Re-attempting failed deployment teiid-connector-salesforce.rar

                        21:56:59,704 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1)  JBAS015014: Re-attempting failed deployment teiid-connector-ws.rar

                        21:56:59,712 INFO  [org.jboss.as.remoting] (MSC service thread 1-4)  JBAS017100: Listening on /127.0.0.1:9999

                        21:56:59,712 INFO  [org.jboss.as.remoting] (MSC service thread 1-8)  JBAS017100: Listening on localhost/127.0.0.1:4447

                        21:57:01,978 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-3)  Deploying javax.ws.rs.core.Application: class org.teiid.odata.TeiidODataApplication

                        21:57:02,356 INFO  [org.jboss.web] (MSC service thread 1-3)  JBAS018210: Registering web context: /odata

                        21:57:02,395 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 46)  JBAS018559: Deployed "teiid-odata-8.3.0.Final.war"

                        21:57:02,409 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4)  JBAS015876: Starting deployment of "cassandra-vdb.xml"

                        21:57:02,413 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4)  JBAS015876: Starting deployment of "connector-cassandra-8.3.0.CR2-SNAPSHOT.rar"

                        21:57:02,414 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8)  JBAS015876: Starting deployment of "teiid-connector-file.rar"

                        21:57:02,414 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8)  JBAS015876: Starting deployment of "teiid-connector-google.rar"

                        21:57:02,415 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4)  JBAS015876: Starting deployment of "teiid-connector-infinispan.rar"

                        21:57:02,415 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8)  JBAS015876: Starting deployment of "teiid-connector-ldap.rar"

                        21:57:02,416 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2)  JBAS015876: Starting deployment of "teiid-connector-salesforce.rar"

                        21:57:02,417 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5)  JBAS015876: Starting deployment of "teiid-connector-ws.rar"

                        21:57:02,671 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2)  JBAS018567: Deployment "deployment.teiid-connector-salesforce.rar" is using a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.

                        21:57:02,674 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2)  JBAS018567: Deployment "deployment.teiid-connector-salesforce.rar" is using a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.

                        21:57:03,009 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4)  JBAS018567: Deployment "deployment.teiid-connector-infinispan.rar" is using a private module ("org.infinispan.client.hotrod:main") which may be changed or removed in future versions without notice.

                        21:57:03,011 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4)  JBAS018567: Deployment "deployment.teiid-connector-infinispan.rar" is using a private module ("org.infinispan.cachestore.remote:main") which may be changed or removed in future versions without notice.

                        21:57:03,013 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4)  JBAS018567: Deployment "deployment.teiid-connector-infinispan.rar" is using a private module ("org.jboss.as.clustering.infinispan:main") which may be changed or removed in future versions without notice.

                        21:57:03,014 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4)  JBAS018567: Deployment "deployment.teiid-connector-infinispan.rar" is using a private module ("org.infinispan.client.hotrod:main") which may be changed or removed in future versions without notice.

                        21:57:03,033 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-5)  JBAS018567: Deployment "deployment.teiid-connector-ws.rar" is using a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.

                        21:57:03,037 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4)  JBAS018567: Deployment "deployment.teiid-connector-infinispan.rar" is using a private module ("org.infinispan.cachestore.remote:main") which may be changed or removed in future versions without notice.

                        21:57:03,039 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4)  JBAS018567: Deployment "deployment.teiid-connector-infinispan.rar" is using a private module ("org.jboss.as.clustering.infinispan:main") which may be changed or removed in future versions without notice.

                        21:57:03,044 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-5)  JBAS018567: Deployment "deployment.teiid-connector-ws.rar" is using a private module ("org.apache.cxf:main") which may be changed or removed in future versions without notice.

                        21:57:03,111 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-7)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/tempdad977c6e72430e2/teiid-connector-ldap.rar-65d836fec246bf94/contents/

                        21:57:03,140 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-6)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/tempdad977c6e72430e2/teiid-connector-google.rar-f2ba8082f67ee2c5/contents/

                        21:57:03,146 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-8)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/tempdad977c6e72430e2/connector-cassandra-8.3.0.CR2-SNAPSHOT.rar-205529440baa403c/contents/

                        21:57:03,149 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-4)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/tempdad977c6e72430e2/teiid-connector-ws.rar-647deef73eca80db/contents/

                        21:57:03,153 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-5)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/tempdad977c6e72430e2/teiid-connector-infinispan.rar-fe7943aae9d89ca0/contents/

                        21:57:03,154 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-1)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/tempdad977c6e72430e2/teiid-connector-file.rar-c13b68b5099089b1/contents/

                        21:57:03,155 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-2)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/tempdad977c6e72430e2/teiid-connector-salesforce.rar-b1f28a4f50e5545e/contents/

                        21:57:03,176 INFO  [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-8)  IJ020001: Required license terms for file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/tempdad977c6e72430e2/connector-cassandra-8.3.0.CR2-SNAPSHOT.rar-205529440baa403c/contents/

                        21:57:03,219 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-8)  JBAS010406: Registered connection factory java:/cassandra

                        21:57:03,229 INFO  [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-8)  IJ020002: Deployed: file:/C:/jboss-as-7.1.1.Final/standalone/tmp/vfs/tempdad977c6e72430e2/connector-cassandra-8.3.0.CR2-SNAPSHOT.rar-205529440baa403c/contents/

                        21:57:03,236 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-8)  JBAS010401: Bound JCA ConnectionFactory [java:/cassandra]

                        21:57:03,495 INFO  [org.jboss.as] (MSC service thread 1-5)  JBAS015951: Admin console listening on http://127.0.0.1:9990

                        21:57:03,498 INFO  [org.jboss.as] (MSC service thread 1-5)  JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 16266ms - Started 425 of 534 services (108 services are passive or on-demand)

                        21:57:04,274 INFO  [org.teiid.RUNTIME] (MSC service thread 1-2)  TEIID50029 VDB Cassandra.1 model "CassandraNoSql" metadata is currently being loaded. Start Time: 14/08/13 21:57

                        21:57:04,590 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "teiid-connector-ws.rar"

                        21:57:04,591 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "teiid-connector-salesforce.rar"

                        21:57:04,592 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "teiid-connector-ldap.rar"

                        21:57:04,593 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "teiid-connector-infinispan.rar"

                        21:57:04,595 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "teiid-connector-google.rar"

                        21:57:04,596 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "teiid-connector-file.rar"

                        21:57:04,597 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "connector-cassandra-8.3.0.CR2-SNAPSHOT.rar"

                        21:57:04,599 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)  JBAS018559: Deployed "cassandra-vdb.xml"

                        21:57:05,167 ERROR [stderr] (teiid-async-threads - 1)  log4j:WARN No appenders could be found for logger (com.datastax.driver.core.Cluster).

                         

                         

                        21:57:05,168 ERROR [stderr] (teiid-async-threads - 1)  log4j:WARN Please initialize the log4j system properly.

                         

                         

                        21:57:05,168 ERROR [stderr] (teiid-async-threads - 1)  log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

                         

                         

                        21:57:10,816 ERROR [org.jboss.threads.executor] (teiid-async-threads - 1)  Task execution failed for task org.teiid.jboss.VDBService$6@47e90473: java.lang.AbstractMethodError: org.teiid.resource.adapter.cassandra.CassandraConnectionImpl.keyspaceInfo()Lcom/datastax/driver/core/KeyspaceMetadata;

                                  at org.teiid.translator.cassandra.CassandraExecutionFactory.getMetadata(CassandraExecutionFactory.java:43)

                                  at org.teiid.translator.cassandra.CassandraExecutionFactory.getMetadata(CassandraExecutionFactory.java:1)

                                  at org.teiid.query.metadata.NativeMetadataRepository.loadMetadata(NativeMetadataRepository.java:61) [teiid-engine-8.3.0.Final.jar:8.3.0.Final]

                                  at org.teiid.query.metadata.ChainingMetadataRepository.loadMetadata(ChainingMetadataRepository.java:55) [teiid-engine-8.3.0.Final.jar:8.3.0.Final]

                                  at org.teiid.jboss.VDBService$6.run(VDBService.java:384) [teiid-jboss-integration-8.3.0.Final.jar:8.3.0.Final]

                                  at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)

                                  at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801)

                                  at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)

                                  at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:821)

                                  at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0]

                                  at org.jboss.threads.JBossThread.run(JBossThread.java:122)

                         

                         

                        22:42:04,483 INFO  [org.teiid.CONNECTOR] (IdleRemover)  Shutting down Cassandra cluster.

                        • 9. Re: CustomTranslator - AbstractMethodError exception
                          shawkins

                          Radek,

                           

                          Can you also supply the updated .rar (resource adapter archive) used to deploy the cassandra connector?

                           

                          Steve

                          • 10. Re: CustomTranslator - AbstractMethodError exception
                            rareddy

                            I could not open your archive from above link, looks like it got corrupted.

                            • 11. Re: CustomTranslator - AbstractMethodError exception
                              shawkins

                              Ramesh, it's a compressed rar - http://en.wikipedia.org/wiki/RAR which requires additional effort for us linux types.  The deployment rar hasn't been provided yet.

                              • 12. Re: CustomTranslator - AbstractMethodError exception
                                radek.koubsky

                                Sure, here is updated version of connector.rar.

                                • 13. Re: CustomTranslator - AbstractMethodError exception
                                  shawkins

                                  The rar jar is out of date - if you recompile/redeploy it should work just fine.

                                   

                                  As for all of the dependencies in the driver.core module it looks like most will not be required.  To just get the metadata (I didn't try querying) it worked with:

                                   

                                      <resource-root path="cassandra-driver-core-1.0.0.jar"/>

                                      <resource-root path="cassandra-all-1.2.3.jar"/>

                                      <resource-root path="snappy-java-1.0.4.1.jar"/>

                                      <resource-root path="metrics-core-2.2.0.jar"/>

                                      <resource-root path="libthrift-0.7.0.jar"/>

                                     

                                      <!-- exists in AS -->

                                      <resource-root path="guava-14.0.1.jar"/>

                                      <resource-root path="netty-3.6.3.Final.jar"/>

                                      <resource-root path="jackson-core-asl-1.9.2.jar"/>

                                      <resource-root path="jackson-mapper-asl-1.9.2.jar"/>

                                   

                                  The jackson dependencies match to exactly what the as provides, but for a reason that I didn't track down trying to reuse the as versions results in bad behavior.  For example if you try this you may see that our asynch loading task gets held up indefinitely and appearently will prevent normal shutdown:

                                   

                                  "teiid-async-threads - 3" prio=10 tid=0x00007f3c30336800 nid=0x13cf in Object.wait() [0x00007f3c80d78000]

                                     java.lang.Thread.State: WAITING (on object monitor)

                                      at java.lang.Object.wait(Native Method)

                                      - waiting on <0x00000000e3a52d58> (a org.jboss.modules.Module)

                                      at java.lang.Object.wait(Object.java:503)

                                      at org.jboss.modules.Module.getPaths(Module.java:1141)

                                      - locked <0x00000000e3a52d58> (a org.jboss.modules.Module)

                                      at org.jboss.modules.Module.getPathsUnchecked(Module.java:1164)

                                      at org.jboss.modules.Module.loadModuleClass(Module.java:512)

                                      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

                                      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                                      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                                      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                                      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                                      at com.datastax.driver.core.Cluster.<clinit>(Cluster.java:61)

                                      at org.teiid.resource.adapter.cassandra.CassandraConnectionImpl.<init>(CassandraConnectionImpl.java:26)

                                      at org.teiid.resource.adapter.cassandra.CassandraManagedConnectionFactory$1.getConnection(CassandraManagedConnectionFactory.java:26)

                                      at org.teiid.resource.adapter.cassandra.CassandraManagedConnectionFactory$1.getConnection(CassandraManagedConnectionFactory.java:23)

                                      at org.teiid.resource.spi.BasicManagedConnectionFactory.createManagedConnection(BasicManagedConnectionFactory.java:70)

                                      at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:761)

                                      at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:343)

                                      at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:397)

                                      at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:365)

                                      at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:329)

                                      at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:302)

                                      at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:464)

                                      at org.teiid.resource.spi.WrappedConnectionFactory.getConnection(WrappedConnectionFactory.java:58)

                                      at org.teiid.translator.ExecutionFactory.getConnection(ExecutionFactory.java:169)

                                      at org.teiid.translator.ExecutionFactory.getConnection(ExecutionFactory.java:190)

                                      at org.teiid.query.metadata.NativeMetadataRepository.loadMetadata(NativeMetadataRepository.java:46)

                                      at org.teiid.query.metadata.ChainingMetadataRepository.loadMetadata(ChainingMetadataRepository.java:55)

                                      at org.teiid.jboss.VDBService$6.run(VDBService.java:384)

                                      at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)

                                   

                                  So there may be an AS bug lurking there.

                                  • 14. Re: CustomTranslator - AbstractMethodError exception
                                    radek.koubsky

                                    After recompilation/redeploying it works! There were some bugs in querying, but I fixed them and now it returns correct results (ofcourse the translator has limitations because of cassandra data model). Thank you again for help. I will mark this question as answered.

                                     

                                    Radek

                                    1 2 Previous Next