Skip to content
xamry edited this page Aug 1, 2011 · 20 revisions

1. I get the following exception while starting Cassandra.

ERROR 12:29:45,253 Exception encountered during startup. java.lang.RuntimeException: Could not inflate CFMetaData for {"keyspace": "L", "name": "TI", "column_type": "Standard", "comparator_type": "lucandra.VIntType", "subcomparator type": null, "comment": "Stores term information with indexName/field/term as composit e key", "row_cache_size": 0.0, "key_cache_size": 0.0, "read_repair_chance": 1.0, "gc_gr ace_seconds": 864000, "default_validation_class": "org.apache.cassandra.db.marshal.Byte sType", "min_compaction_threshold": 4, "max_compaction_threshold": 32, "row_cache_save period_in_seconds": 0, "key_cache_save_period_in_seconds": 14400, "memtable_flush_after _mins": 1440, "memtable_throughput_in_mb": 15, "memtable_operations_in_millions": 0.070 3125, "id": 1004, "column_metadata": []} at org.apache.cassandra.config.CFMetaData.inflate(CFMetaData.java:404) at org.apache.cassandra.config.KSMetaData.inflate(KSMetaData.java:137) at org.apache.cassandra.db.DefsTable.loadFromStorage(DefsTable.java:99) at org.apache.cassandra.config.DatabaseDescriptor.loadSchemas(DatabaseDescripto r.java:462) at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandra Daemon.java:140) at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassan draDaemon.java:317) at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:79) Caused by: org.apache.cassandra.config.ConfigurationException: Unable to find abstract- type class 'lucandra.VIntType' at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:508) at org.apache.cassandra.utils.FBUtilities.getComparator(FBUtilities.java:474) at org.apache.cassandra.config.DatabaseDescriptor.getComparator(DatabaseDescrip tor.java:681) at org.apache.cassandra.config.CFMetaData.inflate(CFMetaData.java:395) ... 6 more Exception encountered during startup. java.lang.RuntimeException: Could not inflate CFMetaData for {"keyspace": "L", "name": "TI", "column_type": "Standard", "comparator_type": "lucandra.VIntType", "subcomparator type": null, "comment": "Stores term information with indexName/field/term as composit e key", "row_cache_size": 0.0, "key_cache_size": 0.0, "read_repair_chance": 1.0, "gc_gr ace_seconds": 864000, "default_validation_class": "org.apache.cassandra.db.marshal.Byte sType", "min_compaction_threshold": 4, "max_compaction_threshold": 32, "row_cache_save period_in_seconds": 0, "key_cache_save_period_in_seconds": 14400, "memtable_flush_after _mins": 1440, "memtable_throughput_in_mb": 15, "memtable_operations_in_millions": 0.070 3125, "id": 1004, "column_metadata": []} at org.apache.cassandra.config.CFMetaData.inflate(CFMetaData.java:404) at org.apache.cassandra.config.KSMetaData.inflate(KSMetaData.java:137) at org.apache.cassandra.db.DefsTable.loadFromStorage(DefsTable.java:99) at org.apache.cassandra.config.DatabaseDescriptor.loadSchemas(DatabaseDescripto r.java:462) at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandra Daemon.java:140) at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassan draDaemon.java:317) at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:79) Caused by: org.apache.cassandra.config.ConfigurationException: Unable to find abstract- type class 'lucandra.VIntType' at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:508) at org.apache.cassandra.utils.FBUtilities.getComparator(FBUtilities.java:474) at org.apache.cassandra.config.DatabaseDescriptor.getComparator(DatabaseDescrip tor.java:681) at org.apache.cassandra.config.CFMetaData.inflate(CFMetaData.java:395) ... 6 more

Solution: Kundera uses Solandra for indexing entity fields. If you are using standalone Cassandra server, solandra requires that you put solandra Jar into Cassandra lib folder. So, you have to put solandra-UNKNOWN.jar file (found in Kundera dependency) into /lib folder.

2. I get the following exception while starting Cassandra.

ERROR 12:33:57,365 Exception encountered during startup. java.lang.NoClassDefFoundError: org/xerial/snappy/SnappyException at lucandra.VIntType.getString(VIntType.java:35) at org.apache.cassandra.db.Column.getString(Column.java:223) at org.apache.cassandra.db.marshal.AbstractType.getColumnsString(AbstractType.j ava:135) at org.apache.cassandra.db.ColumnFamily.toString(ColumnFamily.java:359) at org.apache.commons.lang.ObjectUtils.toString(ObjectUtils.java:241) at org.apache.commons.lang.StringUtils.join(StringUtils.java:3073) at org.apache.commons.lang.StringUtils.join(StringUtils.java:3133) at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:269) at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:156) at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandra Daemon.java:175) at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassan draDaemon.java:317) at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:79) Caused by: java.lang.ClassNotFoundException: org.xerial.snappy.SnappyException at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 12 more Exception encountered during startup. java.lang.NoClassDefFoundError: org/xerial/snappy/SnappyException at lucandra.VIntType.getString(VIntType.java:35) at org.apache.cassandra.db.Column.getString(Column.java:223) at org.apache.cassandra.db.marshal.AbstractType.getColumnsString(AbstractType.j ava:135) at org.apache.cassandra.db.ColumnFamily.toString(ColumnFamily.java:359) at org.apache.commons.lang.ObjectUtils.toString(ObjectUtils.java:241) at org.apache.commons.lang.StringUtils.join(StringUtils.java:3073) at org.apache.commons.lang.StringUtils.join(StringUtils.java:3133) at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:269) at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:156) at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandra Daemon.java:175) at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassan draDaemon.java:317) at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:79) Caused by: java.lang.ClassNotFoundException: org.xerial.snappy.SnappyException at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 12 more

Solution: If you are using cassandra as standalone server, solandra requires snappy-1.0.1-rc4.jar for integration with cassandra. Put snappy-1.0.1-rc4.jar into /lib folder and restart cassandra.

3. I get the following exception while starting Cassandra. ERROR 12:35:26,804 Exception encountered during startup. java.lang.ExceptionInInitializerError at lucandra.VIntType.getString(VIntType.java:35) at org.apache.cassandra.db.Column.getString(Column.java:223) at org.apache.cassandra.db.marshal.AbstractType.getColumnsString(AbstractType.j ava:135) at org.apache.cassandra.db.ColumnFamily.toString(ColumnFamily.java:359) at org.apache.commons.lang.ObjectUtils.toString(ObjectUtils.java:241) at org.apache.commons.lang.StringUtils.join(StringUtils.java:3073) at org.apache.commons.lang.StringUtils.join(StringUtils.java:3133) at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:269) at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:156) at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandra Daemon.java:175) at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassan draDaemon.java:317) at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:79) Caused by: java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Properties.java:418) at java.util.Properties.load0(Properties.java:337) at java.util.Properties.load(Properties.java:325) at lucandra.CassandraUtils.(CassandraUtils.java:78) ... 12 more Exception encountered during startup. java.lang.ExceptionInInitializerError at lucandra.VIntType.getString(VIntType.java:35) at org.apache.cassandra.db.Column.getString(Column.java:223) at org.apache.cassandra.db.marshal.AbstractType.getColumnsString(AbstractType.j ava:135) at org.apache.cassandra.db.ColumnFamily.toString(ColumnFamily.java:359) at org.apache.commons.lang.ObjectUtils.toString(ObjectUtils.java:241) at org.apache.commons.lang.StringUtils.join(StringUtils.java:3073) at org.apache.commons.lang.StringUtils.join(StringUtils.java:3133) at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:269) at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:156) at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandra Daemon.java:175) at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassan draDaemon.java:317) at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:79) Caused by: java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Properties.java:418) at java.util.Properties.load0(Properties.java:337) at java.util.Properties.load(Properties.java:325) at lucandra.CassandraUtils.(CassandraUtils.java:78) ... 12 more

Home

Clone this wiki locally