java.lang.NoClassDefFoundError: akka/util/Helpers$ConfigOps$

Stack Overflow | Mez | 1 year ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd , Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    Spark kafka streaming - java.lang.NoClassDefFoundError: akka/util/Helpers$ConfigOps$

    Stack Overflow | 1 year ago | Mez
    java.lang.NoClassDefFoundError: akka/util/Helpers$ConfigOps$
  2. 0
    samebug 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.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
  5. 0
    samebug tip
    Check if you didn't forget to instantiate your topic in the kafka broker.

  1. osvzs 4 times, last 1 week ago
  2. olle.hallin 3 times, last 6 days ago
  3. rp 1 times, last 2 weeks ago
  4. Dunmer 1 times, last 3 weeks ago
  5. poroszd 1 times, last 3 weeks ago
78 more registered users
17 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.ClassNotFoundException

    akka.util.Helpers$ConfigOps$

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    4 frames
  3. Akka Remote
    RemoteActorRefProvider.<init>
    1. akka.remote.RemoteSettings.<init>(RemoteSettings.scala:49)
    2. akka.remote.RemoteActorRefProvider.<init>(RemoteActorRefProvider.scala:114)
    2 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    4 frames
  5. Akka Actor
    ReflectiveDynamicAccess$$anonfun$createInstanceFor$2.apply
    1. akka.actor.ReflectiveDynamicAccess$$anonfun$createInstanceFor$2.apply(DynamicAccess.scala:78)
    1 frame
  6. Scala
    Try$.apply
    1. scala.util.Try$.apply(Try.scala:161)
    1 frame
  7. Akka Actor
    ReflectiveDynamicAccess$$anonfun$createInstanceFor$3.apply
    1. akka.actor.ReflectiveDynamicAccess.createInstanceFor(DynamicAccess.scala:73)
    2. akka.actor.ReflectiveDynamicAccess$$anonfun$createInstanceFor$3.apply(DynamicAccess.scala:84)
    3. akka.actor.ReflectiveDynamicAccess$$anonfun$createInstanceFor$3.apply(DynamicAccess.scala:84)
    3 frames
  8. Scala
    Success.flatMap
    1. scala.util.Success.flatMap(Try.scala:200)
    1 frame
  9. Akka Actor
    ActorSystem$.apply
    1. akka.actor.ReflectiveDynamicAccess.createInstanceFor(DynamicAccess.scala:84)
    2. akka.actor.ActorSystemImpl.<init>(ActorSystem.scala:550)
    3. akka.actor.ActorSystem$.apply(ActorSystem.scala:111)
    4. akka.actor.ActorSystem$.apply(ActorSystem.scala:104)
    4 frames
  10. Spark
    Utils$$anonfun$startServiceOnPort$1.apply$mcVI$sp
    1. org.apache.spark.util.AkkaUtils$.org$apache$spark$util$AkkaUtils$$doCreateActorSystem(AkkaUtils.scala:121)
    2. org.apache.spark.util.AkkaUtils$$anonfun$1.apply(AkkaUtils.scala:53)
    3. org.apache.spark.util.AkkaUtils$$anonfun$1.apply(AkkaUtils.scala:52)
    4. org.apache.spark.util.Utils$$anonfun$startServiceOnPort$1.apply$mcVI$sp(Utils.scala:1913)
    4 frames
  11. Scala
    Range.foreach$mVc$sp
    1. scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:141)
    1 frame
  12. Spark
    AkkaUtils$.createActorSystem
    1. org.apache.spark.util.Utils$.startServiceOnPort(Utils.scala:1904)
    2. org.apache.spark.util.AkkaUtils$.createActorSystem(AkkaUtils.scala:55)
    2 frames
  13. org.apache.spark
    RpcEnv$.create
    1. org.apache.spark.rpc.akka.AkkaRpcEnvFactory.create(AkkaRpcEnv.scala:253)
    2. org.apache.spark.rpc.RpcEnv$.create(RpcEnv.scala:53)
    2 frames
  14. Spark
    SparkContext.<init>
    1. org.apache.spark.SparkEnv$.create(SparkEnv.scala:252)
    2. org.apache.spark.SparkEnv$.createDriverEnv(SparkEnv.scala:193)
    3. org.apache.spark.SparkContext.createSparkEnv(SparkContext.scala:277)
    4. org.apache.spark.SparkContext.<init>(SparkContext.scala:450)
    4 frames
  15. Spark Project Streaming
    StreamingContext.<init>
    1. org.apache.spark.streaming.StreamingContext$.createNewSparkContext(StreamingContext.scala:549)
    2. org.apache.spark.streaming.StreamingContext.<init>(StreamingContext.scala:75)
    2 frames
  16. Unknown
    SIVConsumer.main
    1. SIVConsumer$.main(SIVConsumer.scala:33)
    2. SIVConsumer.main(SIVConsumer.scala)
    2 frames
  17. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  18. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
    1 frame