java.lang.ClassNotFoundException: [B

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

    What would cause java.lang.ClassNotFoundException: [B?

    Stack Overflow | 4 years ago | Ryan
    java.lang.ClassNotFoundException: [B
  2. 0
    samebug tip
    This exception normally means you either have to add the said class to your dependencies or you miswrote it. Look in the documentation of your library how to add it as a dependency.
  3. 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>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    This was caused by a failure to instantiate Kafka broker. Check your dependencies.
  6. 0
    samebug 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.

  1. rsprangemeijer 6 times, last 10 hours ago
  2. marcbouvierdav 26 times, last 2 days ago
  3. batwalrus76 12 times, last 2 days ago
  4. musketyr 1 times, last 3 days ago
  5. SteVio1989 4 times, last 4 days ago
69 more registered users
26 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

    [B

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    7 frames
  3. Akka Actor
    Serialization$$anonfun$4.apply
    1. akka.actor.ReflectiveDynamicAccess.getClassFor(DynamicAccess.scala:94)
    2. akka.serialization.Serialization$$anonfun$4.apply(Serialization.scala:154)
    3. akka.serialization.Serialization$$anonfun$4.apply(Serialization.scala:153)
    3 frames
  4. Scala
    TraversableLike$WithFilter.map
    1. scala.collection.TraversableLike$WithFilter$$anonfun$map$2.apply(TraversableLike.scala:697)
    2. scala.collection.immutable.HashMap$HashMap1.foreach(HashMap.scala:178)
    3. scala.collection.immutable.HashMap$HashTrieMap.foreach(HashMap.scala:347)
    4. scala.collection.TraversableLike$WithFilter.map(TraversableLike.scala:696)
    4 frames
  5. Akka Actor
    SerializationExtension$.apply
    1. akka.serialization.Serialization.<init>(Serialization.scala:153)
    2. akka.serialization.SerializationExtension$.createExtension(SerializationExtension.scala:15)
    3. akka.serialization.SerializationExtension$.createExtension(SerializationExtension.scala:12)
    4. akka.actor.ActorSystemImpl.registerExtension(ActorSystem.scala:644)
    5. akka.actor.ExtensionId$class.apply(Extension.scala:34)
    6. akka.serialization.SerializationExtension$.apply(SerializationExtension.scala:12)
    6 frames
  6. Akka Remote
    RemoteActorRefProvider.init
    1. akka.remote.RemoteActorRefProvider.init(RemoteActorRefProvider.scala:77)
    1 frame
  7. Akka Actor
    ActorSystem.create
    1. akka.actor.ActorSystemImpl._start(ActorSystem.scala:568)
    2. akka.actor.ActorSystemImpl.start(ActorSystem.scala:575)
    3. akka.actor.ActorSystem$.apply(ActorSystem.scala:103)
    4. akka.actor.ActorSystem$.apply(ActorSystem.scala:98)
    5. akka.actor.ActorSystem$.create(ActorSystem.scala:64)
    6. akka.actor.ActorSystem.create(ActorSystem.scala)
    6 frames