jsevellec / cassandra-unit

Utility tool to load Data into Cassandra to help you writing good isolated JUnit Test into your application
GNU Lesser General Public License v3.0
424 stars 1 forks source link

ClassNotFoundException: org.apache.cassandra.thrift.Cassandra$Iface #331

Open amichair opened 3 years ago

amichair commented 3 years ago

When attempting to upgrade to 3.11.11, the following exception is thrown (same code in 3.11.10 works fine):

Exception (java.lang.NoClassDefFoundError) encountered during startup: org/apache/cassandra/thrift/Cassandra$Iface java.lang.NoClassDefFoundError: org/apache/cassandra/thrift/Cassandra$Iface at org.apache.cassandra.service.CassandraDaemon.initializeClientTransports(CassandraDaemon.java:450) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:438) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:633) at org.cassandraunit.utils.EmbeddedCassandraServerHelper.lambda$startEmbeddedCassandra$1(EmbeddedCassandraServerHelper.java:152) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: org.apache.cassandra.thrift.Cassandra$Iface at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 7 more

btw is this project abandoned?

elahrvivaz commented 1 year ago

I had this same issue and was able to resolve it by adding org.apache.cassandra:cassandra-thrift:3.11.14 as a test dependency