Closed jschappet closed 10 years ago
Hi,
It looks like a classpath problem
Could you check the version of cassandra you're using in your classpath?
Jérémy
Yep, still had cassandra-all 1.2.8 in my POM File. Thanks
I have this exactly same error. Can you shed some light on how to fix it? These are the dependencies in my pom file:
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>cassandra-clientutil</artifactId>
<version>2.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>cassandra-all</artifactId>
<version>2.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.thrift</groupId>
<artifactId>libthrift</artifactId>
<version>0.9.1</version>
</dependency>
<dependency>
<groupId>org.apache-extras.cassandra-jdbc</groupId>
<artifactId>cassandra-jdbc</artifactId>
<version>1.2.5</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit-dep</artifactId>
<version>4.11</version>
</dependency>
<dependency>
<groupId>org.cassandraunit</groupId>
<artifactId>cassandra-unit</artifactId>
<version>2.0.2.1</version>
</dependency>
Thanks!
I met same problem. Can anyone enlighten me on this? Thanks!
Yes, please what is the solution here?
I'm getting the same error here. We are trying to switch to cassandra driver 2.1.6. and newest version of cassandra-unit
.
Am I right if I think the problem is in cassandra-all
version missmatch between driver and cassandra-unit
or is there other problem involved here?
Hi,
I think this pull request is about to solve your classpath problem : https://github.com/jsevellec/cassandra-unit/pull/120
Tested with versions: 2.1.3.2-SNAPSHOT
and '2.1.3.1'. Others had some more luck?
pom:
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>cassandra-all</artifactId>
<version>2.1.6</version>
</dependency>
<dependency>
<groupId>com.datastax.cassandra</groupId>
<artifactId>cassandra-driver-core</artifactId>
<version>2.1.6</version>
</dependency>
<dependency>
<groupId>com.datastax.cassandra</groupId>
<artifactId>cassandra-driver-mapping</artifactId>
<version>2.1.6</version>
</dependency>
<dependency>
<groupId>org.cassandraunit</groupId>
<artifactId>cassandra-unit</artifactId>
<version>2.1.3.2-SNAPSHOT</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.cassandraunit</groupId>
<artifactId>cassandra-unit</artifactId>
</exclusion>
</exclusions>
</dependency>
the pull request i mentioned is about a new artifact : "cassandra-unit-shaded". It would be great if you could give a try using it instead of the cassandra-unit dependency to see if it solves your issue
Working with shaded artifact like a charm! Thanks! When we can expect release version of it?
I'm waiting a bit for feedback and will perhaps just apply the shaded stuff into the same artifact id instead of having a dedicated one. It might be for this month.
Neat. I support this to go in the same artifact id. Keep up the good work.
I am trying to run the following test: @Rule public CassandraCQLUnit cassandraCQLUnit = new CassandraCQLUnit(new ClassPathCQLDataSet("tcgadata.cql","tcgadata"));
Using: cassandra-unit-spring 2.0.2.1-SNAPSHOT
And I get the following exception, looking at this yaml file, I do see the cas timeout setting.
in "", line 10, column 1:
cluster_name: 'Test Cluster'
^
null; Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot create property=cas_contention_timeout_in_ms for JavaBean=org.apache.cassandra.config.Config@76a9b9c; Unable to find property 'cas_contention_timeout_in_ms' on class: org.apache.cassandra.config.Config Invalid yaml; unable to start server. See log for stacktrace.