ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender

QOS.ch JIRA | Janario Oliveira | 2 years ago
  1. 0

    After I replace the wildfly logmanager to logback as a module I've added a custom project appender and it fails as ClassNotFoundException logback.xml <appender name="EMAIL" class="br.com.tecsinapse.monitoring.logging.SmartSMTPAppender"> As I've seen OptionHelper instantiate* should also try to instantiate from thread class loader context exception: 03:16:44,495 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [br.com.tecsinapse.monitoring.logging.SmartSMTPAppender] 03:16:44,495 |-ERROR in ch.qos.logback.core.joran.action.AppenderAction - Could not create an Appender of type [br.com.tecsinapse.monitoring.logging.SmartSMTPAppender]. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:73) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:48) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:35) at at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:54) at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:275) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at at me.janario.logback.deployment.LogbackContextSelector.lambda$getLoggerContext$0(LogbackContextSelector.java:81) at at me.janario.logback.deployment.LogbackContextSelector$$Lambda$1/1479140596.apply(Unknown Source) at at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1688) at at me.janario.logback.deployment.LogbackContextSelector.getLoggerContext(LogbackContextSelector.java:65) at at org.slf4j.impl.StaticLoggerBinder.getLoggerFactory(StaticLoggerBinder.java:111) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:315) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277) at at org.jboss.logging.Slf4jLoggerProvider.getLogger(Slf4jLoggerProvider.java:29) at at org.jboss.logging.Logger.getLogger(Logger.java:2163) at at org.jboss.logging.Logger$1.run(Logger.java:2263) at at java.security.AccessController.doPrivileged(Native Method) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2227) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214) at at org.hibernate.validator.internal.util.logging.LoggerFactory.make(LoggerFactory.java:29) at at org.hibernate.validator.internal.cdi.ValidationExtension.<clinit>(ValidationExtension.java:87) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at at java.lang.Class.newInstance(Class.java:442) at at org.jboss.as.weld.deployment.WeldPortableExtensions.tryRegisterExtension(WeldPortableExtensions.java:54) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadAttachments(WeldPortableExtensionProcessor.java:121) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.deploy(WeldPortableExtensionProcessor.java:81) at at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) at at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: br.com.tecsinapse.monitoring.logging.SmartSMTPAppender from [Module "ch.qos.logback:main" from local module loader @131ef10 (finder: local module finder @55b0dcab (roots: /home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/tecsinapse,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/logback,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/base))] at at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) at at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) at at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:60) at ... 41 common frames omitted 03:16:44,496 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@7:88 - ActionException in Action for tag [appender] ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:82) at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:275) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at at me.janario.logback.deployment.LogbackContextSelector.lambda$getLoggerContext$0(LogbackContextSelector.java:81) at at me.janario.logback.deployment.LogbackContextSelector$$Lambda$1/1479140596.apply(Unknown Source) at at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1688) at at me.janario.logback.deployment.LogbackContextSelector.getLoggerContext(LogbackContextSelector.java:65) at at org.slf4j.impl.StaticLoggerBinder.getLoggerFactory(StaticLoggerBinder.java:111) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:315) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277) at at org.jboss.logging.Slf4jLoggerProvider.getLogger(Slf4jLoggerProvider.java:29) at at org.jboss.logging.Logger.getLogger(Logger.java:2163) at at org.jboss.logging.Logger$1.run(Logger.java:2263) at at java.security.AccessController.doPrivileged(Native Method) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2227) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214) at at org.hibernate.validator.internal.util.logging.LoggerFactory.make(LoggerFactory.java:29) at at org.hibernate.validator.internal.cdi.ValidationExtension.<clinit>(ValidationExtension.java:87) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at at java.lang.Class.newInstance(Class.java:442) at at org.jboss.as.weld.deployment.WeldPortableExtensions.tryRegisterExtension(WeldPortableExtensions.java:54) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadAttachments(WeldPortableExtensionProcessor.java:121) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.deploy(WeldPortableExtensionProcessor.java:81) at at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) at at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at at java.lang.Thread.run(Thread.java:745) Caused by: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:73) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:48) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:35) at at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:54) at ... 38 common frames omitted Caused by: java.lang.ClassNotFoundException: br.com.tecsinapse.monitoring.logging.SmartSMTPAppender from [Module "ch.qos.logback:main" from local module loader @131ef10 (finder: local module finder @55b0dcab (roots: /home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/tecsinapse,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/logback,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/base))] at at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) at at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) at at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:60) at ... 41 common frames omitted

    QOS.ch JIRA | 2 years ago | Janario Oliveira
    ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender
  2. 0

    After I replace the wildfly logmanager to logback as a module I've added a custom project appender and it fails as ClassNotFoundException logback.xml <appender name="EMAIL" class="br.com.tecsinapse.monitoring.logging.SmartSMTPAppender"> As I've seen OptionHelper instantiate* should also try to instantiate from thread class loader context exception: 03:16:44,495 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [br.com.tecsinapse.monitoring.logging.SmartSMTPAppender] 03:16:44,495 |-ERROR in ch.qos.logback.core.joran.action.AppenderAction - Could not create an Appender of type [br.com.tecsinapse.monitoring.logging.SmartSMTPAppender]. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:73) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:48) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:35) at at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:54) at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:275) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at at me.janario.logback.deployment.LogbackContextSelector.lambda$getLoggerContext$0(LogbackContextSelector.java:81) at at me.janario.logback.deployment.LogbackContextSelector$$Lambda$1/1479140596.apply(Unknown Source) at at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1688) at at me.janario.logback.deployment.LogbackContextSelector.getLoggerContext(LogbackContextSelector.java:65) at at org.slf4j.impl.StaticLoggerBinder.getLoggerFactory(StaticLoggerBinder.java:111) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:315) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277) at at org.jboss.logging.Slf4jLoggerProvider.getLogger(Slf4jLoggerProvider.java:29) at at org.jboss.logging.Logger.getLogger(Logger.java:2163) at at org.jboss.logging.Logger$1.run(Logger.java:2263) at at java.security.AccessController.doPrivileged(Native Method) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2227) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214) at at org.hibernate.validator.internal.util.logging.LoggerFactory.make(LoggerFactory.java:29) at at org.hibernate.validator.internal.cdi.ValidationExtension.<clinit>(ValidationExtension.java:87) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at at java.lang.Class.newInstance(Class.java:442) at at org.jboss.as.weld.deployment.WeldPortableExtensions.tryRegisterExtension(WeldPortableExtensions.java:54) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadAttachments(WeldPortableExtensionProcessor.java:121) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.deploy(WeldPortableExtensionProcessor.java:81) at at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) at at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: br.com.tecsinapse.monitoring.logging.SmartSMTPAppender from [Module "ch.qos.logback:main" from local module loader @131ef10 (finder: local module finder @55b0dcab (roots: /home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/tecsinapse,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/logback,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/base))] at at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) at at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) at at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:60) at ... 41 common frames omitted 03:16:44,496 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@7:88 - ActionException in Action for tag [appender] ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:82) at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:275) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at at me.janario.logback.deployment.LogbackContextSelector.lambda$getLoggerContext$0(LogbackContextSelector.java:81) at at me.janario.logback.deployment.LogbackContextSelector$$Lambda$1/1479140596.apply(Unknown Source) at at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1688) at at me.janario.logback.deployment.LogbackContextSelector.getLoggerContext(LogbackContextSelector.java:65) at at org.slf4j.impl.StaticLoggerBinder.getLoggerFactory(StaticLoggerBinder.java:111) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:315) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277) at at org.jboss.logging.Slf4jLoggerProvider.getLogger(Slf4jLoggerProvider.java:29) at at org.jboss.logging.Logger.getLogger(Logger.java:2163) at at org.jboss.logging.Logger$1.run(Logger.java:2263) at at java.security.AccessController.doPrivileged(Native Method) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2227) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214) at at org.hibernate.validator.internal.util.logging.LoggerFactory.make(LoggerFactory.java:29) at at org.hibernate.validator.internal.cdi.ValidationExtension.<clinit>(ValidationExtension.java:87) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at at java.lang.Class.newInstance(Class.java:442) at at org.jboss.as.weld.deployment.WeldPortableExtensions.tryRegisterExtension(WeldPortableExtensions.java:54) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadAttachments(WeldPortableExtensionProcessor.java:121) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.deploy(WeldPortableExtensionProcessor.java:81) at at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) at at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at at java.lang.Thread.run(Thread.java:745) Caused by: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:73) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:48) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:35) at at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:54) at ... 38 common frames omitted Caused by: java.lang.ClassNotFoundException: br.com.tecsinapse.monitoring.logging.SmartSMTPAppender from [Module "ch.qos.logback:main" from local module loader @131ef10 (finder: local module finder @55b0dcab (roots: /home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/tecsinapse,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/logback,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/base))] at at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) at at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) at at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:60) at ... 41 common frames omitted

    QOS.ch JIRA | 2 years ago | Janario Oliveira
    ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender
  3. 0

    Perf4j integration with PlayFramework ,unresolvable jar issues

    Stack Overflow | 2 years ago | user2160919
    ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type org.perf4j.log4j.GraphingStatisticsAppender
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Could not create an Appender of type [net.kencochrane.raven.logback.SentryAppender]

    Stack Overflow | 10 months ago | morpheus
    ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type net.kencochrane.raven.logback.SentryAppender
  6. 0

    This cause be an issue more directed to Jansi than Logback, but anyway: when trying to use a ConsoleAppender without color support in Eclipse console, the configuration fails with this kind of trace: {noformat} 15:03:05,316 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 15:03:05,319 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE] 15:03:05,355 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 15:03:05,471 |-INFO in ch.qos.logback.core.ConsoleAppender[CONSOLE] - Enabling JANSI WindowsAnsiOutputStream for the console. 15:03:14,639 |-WARN in ch.qos.logback.core.ConsoleAppender[CONSOLE] - Failed to create WindowsAnsiOutputStream. Falling back on the default stream. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type org.fusesource.jansi.WindowsAnsiOutputStream at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type org.fusesource.jansi.WindowsAnsiOutputStream at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:72) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:40) at at ch.qos.logback.core.ConsoleAppender.getTargetStreamForWindows(ConsoleAppender.java:94) at at ch.qos.logback.core.ConsoleAppender.start(ConsoleAppender.java:85) at at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:96) at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:318) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:197) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:183) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:147) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:133) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:96) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:55) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148) at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84) at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:54) at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:279) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:252) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:265) at at tools.logging.InscaleLogger.getLogger(InscaleLogger.java:34) at at modules.grid.executor.CallingThreadExecutor.<clinit>(CallingThreadExecutor.java:33) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ... at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:67) at ... 50 common frames omitted Caused by: java.io.IOException: Could not get the screen info: L o p é r a t i o n a r é u s s i. {noformat} (The root cause message means "operation succeeded " in french). The log are then displayed with raw ANSI escape codes. I think the [check here|https://github.com/qos-ch/logback/blob/master/logback-core/src/main/java/ch/qos/logback/core/ConsoleAppender.java#L84] is not sufficient, it should check we are in real Windows terminal...

    QOS.ch JIRA | 4 years ago | Julien Nicoulaud
    ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type org.fusesource.jansi.WindowsAnsiOutputStream

    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. ch.qos.logback.core.util.DynamicClassLoadingException

      Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender

      at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter()
    2. Logback Core Module
      GenericConfigurator.doConfigure
      1. ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:73)
      2. ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:48)
      3. ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:35)
      4. ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:54)
      5. ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:275)
      6. ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147)
      7. ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129)
      8. ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
      9. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
      10. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
      11. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
      12. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)
      12 frames
    3. Logback Classic Module
      ContextInitializer.configureByResource
      1. ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)
      1 frame
    4. me.janario.logback
      LogbackContextSelector.lambda$getLoggerContext$0
      1. me.janario.logback.deployment.LogbackContextSelector.lambda$getLoggerContext$0(LogbackContextSelector.java:81)
      1 frame