java.lang.NoClassDefFoundError: org/apache/spark/streaming/Duration

DataStax JIRA | Nathan Bijnens | 2 years ago
  1. 0

    At runtime following error appears: {code} java.lang.NoClassDefFoundError: org/apache/spark/streaming/Duration at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2531) at java.lang.Class.getDeclaredMethod(Class.java:2002) at java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java:1431) at java.io.ObjectStreamClass.access$1700(ObjectStreamClass.java:72) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:494) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:468) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:468) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:365) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1133) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347) at org.apache.spark.serializer.JavaSerializationStream.writeObject(JavaSerializer.scala:42) at org.apache.spark.serializer.JavaSerializerInstance.serialize(JavaSerializer.scala:73) at org.apache.spark.util.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:164) at org.apache.spark.util.ClosureCleaner$.clean(ClosureCleaner.scala:158) at org.apache.spark.SparkContext.clean(SparkContext.scala:1478) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1319) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1339) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1360) at com.datastax.spark.connector.RDDFunctions.saveToCassandra(RDDFunctions.scala:36) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply$mcV$sp(ThingsEventsJob.scala:86) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply(ThingsEventsJob.scala:85) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply(ThingsEventsJob.scala:85) at scala.util.Try$.apply(Try.scala:161) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3.apply(ThingsEventsJob.scala:85) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3.apply(ThingsEventsJob.scala:79) at scala.collection.immutable.Set$Set1.foreach(Set.scala:74) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob.<init>(ThingsEventsJob.scala:79) at com.virdata.core.compute.jobs.thingsevents.Main$delayedInit$body.apply(Main.scala:69) at scala.Function0$class.apply$mcV$sp(Function0.scala:40) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at scala.App$$anonfun$main$1.apply(App.scala:71) at scala.App$$anonfun$main$1.apply(App.scala:71) at scala.collection.immutable.List.foreach(List.scala:318) at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32) at scala.App$class.main(App.scala:71) at com.virdata.core.compute.jobs.thingsevents.Main$.main(Main.scala:9) at com.virdata.devops.common.cukes.base.GenericSteps$$anonfun$15.apply(GenericSteps.scala:134) at com.virdata.devops.common.cukes.base.GenericSteps$$anonfun$15.apply(GenericSteps.scala:113) at cucumber.api.scala.ScalaDsl$StepBody$$anonfun$apply$3.applyOrElse(ScalaDsl.scala:103) at cucumber.api.scala.ScalaDsl$StepBody$$anonfun$apply$3.applyOrElse(ScalaDsl.scala:101) at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:33) at cucumber.runtime.scala.ScalaStepDefinition.execute(ScalaStepDefinition.scala:71) at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:38) at cucumber.runtime.Runtime.runStep(Runtime.java:289) at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44) at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39) at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40) at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:83) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:82) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:41) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at cucumber.api.junit.Cucumber.run(Cucumber.java:87) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) at ?.When an App 'com.virdata.core.compute.jobs.thingsevents.Main' with arguments:(features/devcluster.feature:29) Caused by: java.lang.ClassNotFoundException: org.apache.spark.streaming.Duration 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) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2531) at java.lang.Class.getDeclaredMethod(Class.java:2002) at java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java:1431) at java.io.ObjectStreamClass.access$1700(ObjectStreamClass.java:72) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:494) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:468) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:468) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:365) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1133) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347) at org.apache.spark.serializer.JavaSerializationStream.writeObject(JavaSerializer.scala:42) at org.apache.spark.serializer.JavaSerializerInstance.serialize(JavaSerializer.scala:73) at org.apache.spark.util.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:164) at org.apache.spark.util.ClosureCleaner$.clean(ClosureCleaner.scala:158) at org.apache.spark.SparkContext.clean(SparkContext.scala:1478) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1319) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1339) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1360) at com.datastax.spark.connector.RDDFunctions.saveToCassandra(RDDFunctions.scala:36) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply$mcV$sp(ThingsEventsJob.scala:86) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply(ThingsEventsJob.scala:85) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply(ThingsEventsJob.scala:85) at scala.util.Try$.apply(Try.scala:161) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3.apply(ThingsEventsJob.scala:85) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3.apply(ThingsEventsJob.scala:79) at scala.collection.immutable.Set$Set1.foreach(Set.scala:74) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob.<init>(ThingsEventsJob.scala:79) at com.virdata.core.compute.jobs.thingsevents.Main$delayedInit$body.apply(Main.scala:69) at scala.Function0$class.apply$mcV$sp(Function0.scala:40) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at scala.App$$anonfun$main$1.apply(App.scala:71) at scala.App$$anonfun$main$1.apply(App.scala:71) at scala.collection.immutable.List.foreach(List.scala:318) at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32) at scala.App$class.main(App.scala:71) at com.virdata.core.compute.jobs.thingsevents.Main$.main(Main.scala:9) at com.virdata.devops.common.cukes.base.GenericSteps$$anonfun$15.apply(GenericSteps.scala:134) at com.virdata.devops.common.cukes.base.GenericSteps$$anonfun$15.apply(GenericSteps.scala:113) at cucumber.api.scala.ScalaDsl$StepBody$$anonfun$apply$3.applyOrElse(ScalaDsl.scala:103) at cucumber.api.scala.ScalaDsl$StepBody$$anonfun$apply$3.applyOrElse(ScalaDsl.scala:101) at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:33) at cucumber.runtime.scala.ScalaStepDefinition.execute(ScalaStepDefinition.scala:71) at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:38) at cucumber.runtime.Runtime.runStep(Runtime.java:289) at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44) at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39) at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40) at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:83) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:82) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:41) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at cucumber.api.junit.Cucumber.run(Cucumber.java:87) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) {code}

    DataStax JIRA | 2 years ago | Nathan Bijnens
    java.lang.NoClassDefFoundError: org/apache/spark/streaming/Duration
  2. 0

    At runtime following error appears: {code} java.lang.NoClassDefFoundError: org/apache/spark/streaming/Duration at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2531) at java.lang.Class.getDeclaredMethod(Class.java:2002) at java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java:1431) at java.io.ObjectStreamClass.access$1700(ObjectStreamClass.java:72) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:494) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:468) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:468) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:365) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1133) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347) at org.apache.spark.serializer.JavaSerializationStream.writeObject(JavaSerializer.scala:42) at org.apache.spark.serializer.JavaSerializerInstance.serialize(JavaSerializer.scala:73) at org.apache.spark.util.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:164) at org.apache.spark.util.ClosureCleaner$.clean(ClosureCleaner.scala:158) at org.apache.spark.SparkContext.clean(SparkContext.scala:1478) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1319) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1339) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1360) at com.datastax.spark.connector.RDDFunctions.saveToCassandra(RDDFunctions.scala:36) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply$mcV$sp(ThingsEventsJob.scala:86) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply(ThingsEventsJob.scala:85) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply(ThingsEventsJob.scala:85) at scala.util.Try$.apply(Try.scala:161) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3.apply(ThingsEventsJob.scala:85) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3.apply(ThingsEventsJob.scala:79) at scala.collection.immutable.Set$Set1.foreach(Set.scala:74) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob.<init>(ThingsEventsJob.scala:79) at com.virdata.core.compute.jobs.thingsevents.Main$delayedInit$body.apply(Main.scala:69) at scala.Function0$class.apply$mcV$sp(Function0.scala:40) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at scala.App$$anonfun$main$1.apply(App.scala:71) at scala.App$$anonfun$main$1.apply(App.scala:71) at scala.collection.immutable.List.foreach(List.scala:318) at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32) at scala.App$class.main(App.scala:71) at com.virdata.core.compute.jobs.thingsevents.Main$.main(Main.scala:9) at com.virdata.devops.common.cukes.base.GenericSteps$$anonfun$15.apply(GenericSteps.scala:134) at com.virdata.devops.common.cukes.base.GenericSteps$$anonfun$15.apply(GenericSteps.scala:113) at cucumber.api.scala.ScalaDsl$StepBody$$anonfun$apply$3.applyOrElse(ScalaDsl.scala:103) at cucumber.api.scala.ScalaDsl$StepBody$$anonfun$apply$3.applyOrElse(ScalaDsl.scala:101) at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:33) at cucumber.runtime.scala.ScalaStepDefinition.execute(ScalaStepDefinition.scala:71) at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:38) at cucumber.runtime.Runtime.runStep(Runtime.java:289) at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44) at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39) at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40) at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:83) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:82) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:41) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at cucumber.api.junit.Cucumber.run(Cucumber.java:87) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) at ?.When an App 'com.virdata.core.compute.jobs.thingsevents.Main' with arguments:(features/devcluster.feature:29) Caused by: java.lang.ClassNotFoundException: org.apache.spark.streaming.Duration 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) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2531) at java.lang.Class.getDeclaredMethod(Class.java:2002) at java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java:1431) at java.io.ObjectStreamClass.access$1700(ObjectStreamClass.java:72) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:494) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:468) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:468) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:365) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1133) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347) at org.apache.spark.serializer.JavaSerializationStream.writeObject(JavaSerializer.scala:42) at org.apache.spark.serializer.JavaSerializerInstance.serialize(JavaSerializer.scala:73) at org.apache.spark.util.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:164) at org.apache.spark.util.ClosureCleaner$.clean(ClosureCleaner.scala:158) at org.apache.spark.SparkContext.clean(SparkContext.scala:1478) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1319) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1339) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1360) at com.datastax.spark.connector.RDDFunctions.saveToCassandra(RDDFunctions.scala:36) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply$mcV$sp(ThingsEventsJob.scala:86) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply(ThingsEventsJob.scala:85) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply(ThingsEventsJob.scala:85) at scala.util.Try$.apply(Try.scala:161) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3.apply(ThingsEventsJob.scala:85) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3.apply(ThingsEventsJob.scala:79) at scala.collection.immutable.Set$Set1.foreach(Set.scala:74) at com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob.<init>(ThingsEventsJob.scala:79) at com.virdata.core.compute.jobs.thingsevents.Main$delayedInit$body.apply(Main.scala:69) at scala.Function0$class.apply$mcV$sp(Function0.scala:40) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at scala.App$$anonfun$main$1.apply(App.scala:71) at scala.App$$anonfun$main$1.apply(App.scala:71) at scala.collection.immutable.List.foreach(List.scala:318) at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32) at scala.App$class.main(App.scala:71) at com.virdata.core.compute.jobs.thingsevents.Main$.main(Main.scala:9) at com.virdata.devops.common.cukes.base.GenericSteps$$anonfun$15.apply(GenericSteps.scala:134) at com.virdata.devops.common.cukes.base.GenericSteps$$anonfun$15.apply(GenericSteps.scala:113) at cucumber.api.scala.ScalaDsl$StepBody$$anonfun$apply$3.applyOrElse(ScalaDsl.scala:103) at cucumber.api.scala.ScalaDsl$StepBody$$anonfun$apply$3.applyOrElse(ScalaDsl.scala:101) at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:33) at cucumber.runtime.scala.ScalaStepDefinition.execute(ScalaStepDefinition.scala:71) at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:38) at cucumber.runtime.Runtime.runStep(Runtime.java:289) at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44) at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39) at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40) at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:83) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:82) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:41) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at cucumber.api.junit.Cucumber.run(Cucumber.java:87) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) {code}

    DataStax JIRA | 2 years ago | Nathan Bijnens
    java.lang.NoClassDefFoundError: org/apache/spark/streaming/Duration
  3. 0

    Deploy Failed on GlassFish

    icesoft.org | 1 year ago
    java.lang.NoClassDefFoundError: java/sql/RowId
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/apache/spark/streaming/Duration

      at java.lang.Class.getDeclaredMethods0()
    2. Java RT
      ObjectOutputStream.writeObject
      1. java.lang.Class.getDeclaredMethods0(Native Method)
      2. java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
      3. java.lang.Class.getDeclaredMethod(Class.java:2002)
      4. java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java:1431)
      5. java.io.ObjectStreamClass.access$1700(ObjectStreamClass.java:72)
      6. java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:494)
      7. java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:468)
      8. java.security.AccessController.doPrivileged(Native Method)
      9. java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:468)
      10. java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:365)
      11. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1133)
      12. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
      13. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
      14. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
      15. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
      16. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
      17. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
      18. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
      19. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
      20. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
      21. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
      22. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
      23. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
      24. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
      24 frames
    3. Spark
      SparkContext.runJob
      1. org.apache.spark.serializer.JavaSerializationStream.writeObject(JavaSerializer.scala:42)
      2. org.apache.spark.serializer.JavaSerializerInstance.serialize(JavaSerializer.scala:73)
      3. org.apache.spark.util.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:164)
      4. org.apache.spark.util.ClosureCleaner$.clean(ClosureCleaner.scala:158)
      5. org.apache.spark.SparkContext.clean(SparkContext.scala:1478)
      6. org.apache.spark.SparkContext.runJob(SparkContext.scala:1319)
      7. org.apache.spark.SparkContext.runJob(SparkContext.scala:1339)
      8. org.apache.spark.SparkContext.runJob(SparkContext.scala:1360)
      8 frames
    4. spark-cassandra-connector
      RDDFunctions.saveToCassandra
      1. com.datastax.spark.connector.RDDFunctions.saveToCassandra(RDDFunctions.scala:36)
      1 frame
    5. com.virdata.core
      ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply
      1. com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply$mcV$sp(ThingsEventsJob.scala:86)
      2. com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply(ThingsEventsJob.scala:85)
      3. com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3$$anonfun$apply$2.apply(ThingsEventsJob.scala:85)
      3 frames
    6. Scala
      Try$.apply
      1. scala.util.Try$.apply(Try.scala:161)
      1 frame
    7. com.virdata.core
      ThingsEventsJob$$anonfun$3.apply
      1. com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3.apply(ThingsEventsJob.scala:85)
      2. com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob$$anonfun$3.apply(ThingsEventsJob.scala:79)
      2 frames
    8. Scala
      Set$Set1.foreach
      1. scala.collection.immutable.Set$Set1.foreach(Set.scala:74)
      1 frame
    9. com.virdata.core
      Main$delayedInit$body.apply
      1. com.virdata.core.compute.jobs.thingsevents.ThingsEventsJob.<init>(ThingsEventsJob.scala:79)
      2. com.virdata.core.compute.jobs.thingsevents.Main$delayedInit$body.apply(Main.scala:69)
      2 frames
    10. Scala
      App$class.main
      1. scala.Function0$class.apply$mcV$sp(Function0.scala:40)
      2. scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
      3. scala.App$$anonfun$main$1.apply(App.scala:71)
      4. scala.App$$anonfun$main$1.apply(App.scala:71)
      5. scala.collection.immutable.List.foreach(List.scala:318)
      6. scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
      7. scala.App$class.main(App.scala:71)
      7 frames
    11. com.virdata.core
      Main$.main
      1. com.virdata.core.compute.jobs.thingsevents.Main$.main(Main.scala:9)
      1 frame
    12. com.virdata.devops
      GenericSteps$$anonfun$15.apply
      1. com.virdata.devops.common.cukes.base.GenericSteps$$anonfun$15.apply(GenericSteps.scala:134)
      2. com.virdata.devops.common.cukes.base.GenericSteps$$anonfun$15.apply(GenericSteps.scala:113)
      2 frames
    13. cucumber.api.scala
      ScalaDsl$StepBody$$anonfun$apply$3.applyOrElse
      1. cucumber.api.scala.ScalaDsl$StepBody$$anonfun$apply$3.applyOrElse(ScalaDsl.scala:103)
      2. cucumber.api.scala.ScalaDsl$StepBody$$anonfun$apply$3.applyOrElse(ScalaDsl.scala:101)
      2 frames
    14. Scala
      AbstractPartialFunction.apply
      1. scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:33)
      1 frame
    15. cucumber.runtime.scala
      ScalaStepDefinition.execute
      1. cucumber.runtime.scala.ScalaStepDefinition.execute(ScalaStepDefinition.scala:71)
      1 frame
    16. Cucumber-JVM: Core
      CucumberScenario.run
      1. cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:38)
      2. cucumber.runtime.Runtime.runStep(Runtime.java:289)
      3. cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
      4. cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
      5. cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40)
      5 frames
    17. Cucumber-JVM: JUnit
      FeatureRunner.runChild
      1. cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:83)
      2. cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
      3. cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
      3 frames
    18. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      6. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      6 frames
    19. Cucumber-JVM: JUnit
      Cucumber.runChild
      1. cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
      2. cucumber.api.junit.Cucumber.runChild(Cucumber.java:82)
      3. cucumber.api.junit.Cucumber.runChild(Cucumber.java:41)
      3 frames
    20. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      6. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      6 frames
    21. Cucumber-JVM: JUnit
      Cucumber.run
      1. cucumber.api.junit.Cucumber.run(Cucumber.java:87)
      1 frame
    22. JUnit4 Provider
      JUnit4Provider.invoke
      1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      3 frames
    23. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      2. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      3 frames