java.lang.RuntimeException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

tip

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

tip

Check if you didn't forget to instantiate your topic in the kafka broker.

tip

NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.

tip

You need to add httpcore to your dependencies. Try adding version 4.3 or further.

tip

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

tip

This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

tip

jsp-api and servlet-api jars must NOT be deployed by your web app. They should be marked as provided but not deployed by your app.

tip

The server rejects all jars that already belong to the server runtime (such as tomcat-**.jar, servlet**.jar). Consider substituting the CORS filter you're using for this one: https://goo.gl/ctQ7Fs

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Unable to find partitioner class - Cassandra
    via Stack Overflow by Raja
    ,
  • I am successfully able create keyspace and table in Cassandra using Hive. Select operation fails and throws error: 15/05/12 09:33:36 [main]: INFO ql.Driver: OK 15/05/12 09:33:36 [main]: INFO log.PerfLogger: <PERFLOG method=releaseLocks from=org.apache.hadoop.hive.ql.Driver> 15/05/12 09:33:36 [main]: INFO log.PerfLogger: </PERFLOG method=releaseLocks start=1431408816048 end=1431408816049 duration=1 from=org.apache.hadoop.hive.ql.Driver> 15/05/12 09:33:36 [main]: INFO log.PerfLogger: </PERFLOG method=Driver.run start=1431408814335 end=1431408816049 duration=1714 from=org.apache.hadoop.hive.ql.Driver> 15/05/12 09:33:36 [main]: INFO Configuration.deprecation: mapred.input.dir is deprecated. Instead, use mapreduce.input.fileinputformat.inputdir 15/05/12 09:33:36 [main]: INFO hadoop2.AbstractColumnFamilyInputFormat: -------------------- Getting input splits -------------------- Failed with exception java.io.IOException:java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' 15/05/12 09:33:36 [main]: ERROR CliDriver: Failed with exception java.io.IOException:java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' java.io.IOException: java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:507) at org.apache.hadoop.hive.ql.exec.FetchOperator.pushRow(FetchOperator.java:414) at org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:138) at org.apache.hadoop.hive.ql.Driver.getResults(Driver.java:1655) at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:227) at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:159) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:370) at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:754) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' at org.apache.cassandra.hadoop2.ConfigHelper.getInputPartitioner(ConfigHelper.java:401) at org.apache.cassandra.hadoop2.AbstractColumnFamilyInputFormat.validateConfiguration(AbstractColumnFamilyInputFormat.java:87) at org.apache.cassandra.hadoop2.AbstractColumnFamilyInputFormat.getSplits(AbstractColumnFamilyInputFormat.java:117) at org.apache.hadoop.hive.cassandra.input.cql.HiveCqlInputFormat.getSplits(HiveCqlInputFormat.java:192) at org.apache.hadoop.hive.cassandra.input.cql.HiveCqlInputFormat.getSplits(HiveCqlInputFormat.java:149) at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextSplits(FetchOperator.java:362) at org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:294) at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:445) ... 15 more Caused by: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:462) at org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:474) at org.apache.cassandra.utils.FBUtilities.newPartitioner(FBUtilities.java:420) at org.apache.cassandra.hadoop2.ConfigHelper.getInputPartitioner(ConfigHelper.java:399) ... 22 more Caused by: java.lang.NoClassDefFoundError: org/github/jamm/MemoryMeter at org.apache.cassandra.utils.ObjectSizes.<clinit>(ObjectSizes.java:34) at org.apache.cassandra.dht.RandomPartitioner.<clinit>(RandomPartitioner.java:45) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:190) at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:454) ... 25 more Caused by: java.lang.ClassNotFoundException: org.github.jamm.MemoryMeter at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 30 more 15/05/12 09:33:36 [main]: INFO exec.TableScanOperator: 0 finished. closing...
    via by madheswaran,
  • I am successfully able create keyspace and table in Cassandra using Hive. Select operation fails and throws error: 15/05/12 09:33:36 [main]: INFO ql.Driver: OK 15/05/12 09:33:36 [main]: INFO log.PerfLogger: <PERFLOG method=releaseLocks from=org.apache.hadoop.hive.ql.Driver> 15/05/12 09:33:36 [main]: INFO log.PerfLogger: </PERFLOG method=releaseLocks start=1431408816048 end=1431408816049 duration=1 from=org.apache.hadoop.hive.ql.Driver> 15/05/12 09:33:36 [main]: INFO log.PerfLogger: </PERFLOG method=Driver.run start=1431408814335 end=1431408816049 duration=1714 from=org.apache.hadoop.hive.ql.Driver> 15/05/12 09:33:36 [main]: INFO Configuration.deprecation: mapred.input.dir is deprecated. Instead, use mapreduce.input.fileinputformat.inputdir 15/05/12 09:33:36 [main]: INFO hadoop2.AbstractColumnFamilyInputFormat: -------------------- Getting input splits -------------------- Failed with exception java.io.IOException:java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' 15/05/12 09:33:36 [main]: ERROR CliDriver: Failed with exception java.io.IOException:java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' java.io.IOException: java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:507) at org.apache.hadoop.hive.ql.exec.FetchOperator.pushRow(FetchOperator.java:414) at org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:138) at org.apache.hadoop.hive.ql.Driver.getResults(Driver.java:1655) at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:227) at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:159) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:370) at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:754) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' at org.apache.cassandra.hadoop2.ConfigHelper.getInputPartitioner(ConfigHelper.java:401) at org.apache.cassandra.hadoop2.AbstractColumnFamilyInputFormat.validateConfiguration(AbstractColumnFamilyInputFormat.java:87) at org.apache.cassandra.hadoop2.AbstractColumnFamilyInputFormat.getSplits(AbstractColumnFamilyInputFormat.java:117) at org.apache.hadoop.hive.cassandra.input.cql.HiveCqlInputFormat.getSplits(HiveCqlInputFormat.java:192) at org.apache.hadoop.hive.cassandra.input.cql.HiveCqlInputFormat.getSplits(HiveCqlInputFormat.java:149) at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextSplits(FetchOperator.java:362) at org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:294) at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:445) ... 15 more Caused by: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:462) at org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:474) at org.apache.cassandra.utils.FBUtilities.newPartitioner(FBUtilities.java:420) at org.apache.cassandra.hadoop2.ConfigHelper.getInputPartitioner(ConfigHelper.java:399) ... 22 more Caused by: java.lang.NoClassDefFoundError: org/github/jamm/MemoryMeter at org.apache.cassandra.utils.ObjectSizes.<clinit>(ObjectSizes.java:34) at org.apache.cassandra.dht.RandomPartitioner.<clinit>(RandomPartitioner.java:45) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:190) at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:454) ... 25 more Caused by: java.lang.ClassNotFoundException: org.github.jamm.MemoryMeter at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 30 more 15/05/12 09:33:36 [main]: INFO exec.TableScanOperator: 0 finished. closing...
    via by madheswaran,
  • GitHub comment 15#82162290
    via GitHub by valioDOTch
    ,
    • java.lang.RuntimeException: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' at org.apache.cassandra.hadoop.ConfigHelper.getInputPartitioner(ConfigHelper.java:426) at org.apache.cassandra.hadoop.AbstractColumnFamilyInputFormat.validateConfiguration(AbstractColumnFamilyInputFormat.java:85) at org.apache.cassandra.hadoop.ColumnFamilyInputFormat.validateConfiguration(ColumnFamilyInputFormat.java:74) at org.apache.cassandra.hadoop.AbstractColumnFamilyInputFormat.getSplits(AbstractColumnFamilyInputFormat.java:122) at org.apache.hadoop.mapreduce.JobSubmitter.writeNewSplits(JobSubmitter.java:493) at org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:510) at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:394) at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1295) at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1292) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1554) at org.apache.hadoop.mapreduce.Job.submit(Job.java:1292) at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1313) at com.test.cassandratest.WcJob.run(WcJob.java:96) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) at com.test.cassandratest.WcJob.main(WcJob.java:104) Caused by: org.apache.cassandra.exceptions.ConfigurationException: Unable to find partitioner class 'org.apache.cassandra.dht.RandomPartitioner' at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:458) at org.apache.cassandra.utils.FBUtilities.construct(FBUtilities.java:470) at org.apache.cassandra.utils.FBUtilities.newPartitioner(FBUtilities.java:416) at org.apache.cassandra.hadoop.ConfigHelper.getInputPartitioner(ConfigHelper.java:422) ... 17 more Caused by: java.lang.NoClassDefFoundError: org/github/jamm/MemoryMeter$Guess at org.apache.cassandra.utils.ObjectSizes.<clinit>(ObjectSizes.java:34) at org.apache.cassandra.dht.RandomPartitioner.<clinit>(RandomPartitioner.java:45) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:190) at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:450) ... 21 more Caused by: java.lang.ClassNotFoundException: org.github.jamm.MemoryMeter$Guess at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 26 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    2285 more bugmates