ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type play.api.libs.logback.ColoredLevel

GitHub | jorkzijlstra | 8 months 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

    DynamicClassLoadingException for ColoredLevel

    GitHub | 8 months ago | jorkzijlstra
    ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type play.api.libs.logback.ColoredLevel
  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. 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.
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

    play.api.libs.logback.ColoredLevel

    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. Logback Core Module
    PatternLayoutBase.start
    1. ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:56)
    2. ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:45)
    3. ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:34)
    4. ch.qos.logback.core.pattern.parser.Compiler.createConverter(Compiler.java:104)
    5. ch.qos.logback.core.pattern.parser.Compiler.compile(Compiler.java:63)
    6. ch.qos.logback.core.pattern.parser.Parser.compile(Parser.java:87)
    7. ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:83)
    7 frames
  4. Logback Classic Module
    PatternLayoutEncoder.start
    1. ch.qos.logback.classic.encoder.PatternLayoutEncoder.start(PatternLayoutEncoder.java:28)
    1 frame
  5. Logback Core Module
    GenericConfigurator.doConfigure
    1. ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:161)
    2. ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:309)
    3. ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:193)
    4. ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:179)
    5. ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
    6. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:155)
    7. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:142)
    8. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:103)
    9. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
    9 frames
  6. Logback Classic Module
    ContextInitializer.autoConfig
    1. ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
    2. ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
    2 frames
  7. SLF4J LOG4J-12 Binding
    StaticLoggerBinder.<clinit>
    1. org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
    2. org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
    2 frames
  8. SLF4J API Module
    LoggerFactory.getLogger
    1. org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
    2. org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
    3. org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)
    4. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
    5. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
    5 frames
  9. Ehcache
    CacheManager.<clinit>
    1. net.sf.ehcache.CacheManager.<clinit>(CacheManager.java:131)
    1 frame
  10. Play Cache
    CacheManagerProvider.get
    1. play.api.cache.CacheManagerProvider.get$lzycompute(Cache.scala:205)
    2. play.api.cache.CacheManagerProvider.get(Cache.scala:202)
    3. play.api.cache.CacheManagerProvider.get(Cache.scala:201)
    3 frames
  11. Google Guice - Core Library
    Guice.createInjector
    1. com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
    2. com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72)
    3. com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:61)
    4. com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:62)
    5. com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:54)
    6. com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:132)
    7. com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:93)
    8. com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:80)
    9. com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
    10. com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:80)
    11. com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:62)
    12. com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:984)
    13. com.google.inject.util.Providers$GuicifiedProviderWithDependencies.initialize(Providers.java:149)
    14. com.google.inject.util.Providers$GuicifiedProviderWithDependencies$$FastClassByGuice$$2a7177aa.invoke(<generated>)
    15. com.google.inject.internal.cglib.reflect.$FastMethod.invoke(FastMethod.java:53)
    16. com.google.inject.internal.SingleMethodInjector$1.invoke(SingleMethodInjector.java:57)
    17. com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:91)
    18. com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:132)
    19. com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:93)
    20. com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:80)
    21. com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
    22. com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:80)
    23. com.google.inject.internal.Initializer$InjectableReference.get(Initializer.java:174)
    24. com.google.inject.internal.Initializer.injectAll(Initializer.java:108)
    25. com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:174)
    26. com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
    27. com.google.inject.Guice.createInjector(Guice.java:96)
    28. com.google.inject.Guice.createInjector(Guice.java:84)
    28 frames
  12. Play
    GuiceApplicationBuilder.build
    1. play.api.inject.guice.GuiceBuilder.injector(GuiceInjectorBuilder.scala:181)
    2. play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:123)
    2 frames
  13. Play Test
    FakeApplication.<init>
    1. play.api.test.FakeApplication.<init>(Fakes.scala:209)
    1 frame
  14. org.scalatestplus.play
    OneServerPerSuite$class.app
    1. org.scalatestplus.play.OneServerPerSuite$class.app(OneServerPerSuite.scala:153)
    1 frame
  15. com.pointlogic.services
    VisualGuardSpec.app
    1. com.pointlogic.services.VisualGuardSpec.app$lzycompute(VisualGuardSpec.scala:11)
    2. com.pointlogic.services.VisualGuardSpec.app(VisualGuardSpec.scala:11)
    2 frames
  16. org.scalatestplus.play
    OneServerPerSuite$class.run
    1. org.scalatestplus.play.OneServerPerSuite$class.run(OneServerPerSuite.scala:174)
    1 frame
  17. com.pointlogic.services
    VisualGuardSpec.run
    1. com.pointlogic.services.VisualGuardSpec.run(VisualGuardSpec.scala:11)
    1 frame
  18. scalatest
    Framework$ScalaTestTask.execute
    1. org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:357)
    2. org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:502)
    2 frames
  19. SBT
    ForkMain$Run$2.call
    1. sbt.ForkMain$Run$2.call(ForkMain.java:296)
    2. sbt.ForkMain$Run$2.call(ForkMain.java:286)
    2 frames
  20. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    4. java.lang.Thread.run(Thread.java:745)
    4 frames