java.lang.ClassNotFoundException: [B

Stack Overflow | Ryan | 3 years ago
  1. 0

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

    Stack Overflow | 3 years ago | Ryan
    java.lang.ClassNotFoundException: [B
  2. 0

    Crash on Latest Develop Branch

    GitHub | 1 year ago | caffinatedmonkey
    java.lang.ClassNotFoundException: com.anpmech.mpd.MPD
  3. 0

    I was trying to set up a JMX client proxy. one of the interface method signatures contains byte[], and when setting up the client proxy, I get the exception below. seems like byte[].class.getName() returns '[B', and ClassUtils tries to use that as the name of the class when calling loadClass, a call which, evidently, fails. btw, I tried changing the signature to Byte[], but then I got the same error for '[Ljava.lang.Byte;'. java.lang.ClassNotFoundException: [B at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.springframework.util.ClassUtils.forName(ClassUtils.java:201) at org.springframework.util.ClassUtils.forName(ClassUtils.java:171) at org.springframework.jmx.support.JmxUtils.parameterInfoToTypes(JmxUtils.java:141) at org.springframework.jmx.access.MBeanClientInterceptor.retrieveMBeanInfo(MBeanClientInterceptor.java:239) at org.springframework.jmx.access.MBeanClientInterceptor.afterPropertiesSet(MBeanClientInterceptor.java:169) at org.springframework.jmx.access.MBeanProxyFactoryBean.afterPropertiesSet(MBeanProxyFactoryBean.java:81) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75)

    Spring JIRA | 9 years ago | Zvika Markfeld
    java.lang.ClassNotFoundException: [B
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Gradle + Spring Boot + Jetty + JSP fails

    Stack Overflow | 5 months ago | Programmer 400
    org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspSourceImports
  6. 0

    I was trying to set up a JMX client proxy. one of the interface method signatures contains byte[], and when setting up the client proxy, I get the exception below. seems like byte[].class.getName() returns '[B', and ClassUtils tries to use that as the name of the class when calling loadClass, a call which, evidently, fails. btw, I tried changing the signature to Byte[], but then I got the same error for '[Ljava.lang.Byte;'. java.lang.ClassNotFoundException: [B at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.springframework.util.ClassUtils.forName(ClassUtils.java:201) at org.springframework.util.ClassUtils.forName(ClassUtils.java:171) at org.springframework.jmx.support.JmxUtils.parameterInfoToTypes(JmxUtils.java:141) at org.springframework.jmx.access.MBeanClientInterceptor.retrieveMBeanInfo(MBeanClientInterceptor.java:239) at org.springframework.jmx.access.MBeanClientInterceptor.afterPropertiesSet(MBeanClientInterceptor.java:169) at org.springframework.jmx.access.MBeanProxyFactoryBean.afterPropertiesSet(MBeanProxyFactoryBean.java:81) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75)

    Spring JIRA | 9 years ago | Zvika Markfeld
    java.lang.ClassNotFoundException: [B

  1. archenroot 1 times, last 1 week ago
  2. tyson925 5 times, last 2 weeks ago
  3. tzrlk 1 times, last 2 weeks ago
  4. musketyr 1 times, last 2 weeks ago
  5. kjhdofjosvs 3 times, last 3 weeks ago
63 more registered users
32 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