org.codehaus.janino.JaninoRuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I've configured janino with some basic conditions as: <if condition='property("portal.envType").contains("dev")'> <then> <logger name="org.hibernate.SQL" level="DEBUG"/> </then> </if> But when running it in wildfly as a module it throws an exception: 22:26:02,962 |-ERROR in ch.qos.logback.core.joran.conditional.IfAction - Failed to parse condition [property("portal.envType").contains("dev")] org.codehaus.janino.JaninoRuntimeException: Cannot load class 'ch.qos.logback.core.joran.conditional.PropertyWrapperForScripts' through the parent loader at org.codehaus.janino.JaninoRuntimeException: Cannot load class 'ch.qos.logback.core.joran.conditional.PropertyWrapperForScripts' through the parent loader at at org.codehaus.janino.SimpleCompiler$1.getDelegate(SimpleCompiler.java:306) at at org.codehaus.janino.SimpleCompiler$1.accept(SimpleCompiler.java:291) at at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:5159) at at org.codehaus.janino.UnitCompiler.access$16700(UnitCompiler.java:185) at at org.codehaus.janino.UnitCompiler$29.getSuperclass2(UnitCompiler.java:8154) at at org.codehaus.janino.IClass.getSuperclass(IClass.java:406) at at org.codehaus.janino.IClass.getIMethods(IClass.java:223) at at org.codehaus.janino.IClass.getIMethods(IClass.java:199) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:409) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:393) at at org.codehaus.janino.UnitCompiler.access$400(UnitCompiler.java:185) at at org.codehaus.janino.UnitCompiler$2.visitPackageMemberClassDeclaration(UnitCompiler.java:347) at at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:1139) at at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:354) at at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:322) at at org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java:383) at at org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java:315) at at org.codehaus.janino.ClassBodyEvaluator.cook(ClassBodyEvaluator.java:233) at at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:192) at at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:84) at at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:77) at at ch.qos.logback.core.joran.conditional.PropertyEvalScriptBuilder.build(PropertyEvalScriptBuilder.java:54) at at ch.qos.logback.core.joran.conditional.IfAction.begin(IfAction.java:67) 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$1(LogbackContextSelector.java:81) at at me.janario.logback.deployment.LogbackContextSelector$$Lambda$1/1291367132.apply(Unknown Source) at at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) 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) 22:26:02,962 |-ERROR in ch.qos.logback.core.joran.conditional.IfAction - Failed to determine "if then else" result 22:26:02,962 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO 22:26:02,962 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ASYNC_FILE] to Logger[ROOT] 22:26:02,964 |-ERROR in ch.qos.logback.core.joran.conditional.IfAction - Failed to parse condition [property("portal.envType").contains("dev")] org.codehaus.janino.JaninoRuntimeException: Cannot load class 'ch.qos.logback.core.joran.conditional.PropertyWrapperForScripts' through the parent loader at org.codehaus.janino.JaninoRuntimeException: Cannot load class 'ch.qos.logback.core.joran.conditional.PropertyWrapperForScripts' through the parent loader at at org.codehaus.janino.SimpleCompiler$1.getDelegate(SimpleCompiler.java:306) at at org.codehaus.janino.SimpleCompiler$1.accept(SimpleCompiler.java:291) at at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:5159) at at org.codehaus.janino.UnitCompiler.access$16700(UnitCompiler.java:185) at at org.codehaus.janino.UnitCompiler$29.getSuperclass2(UnitCompiler.java:8154) at at org.codehaus.janino.IClass.getSuperclass(IClass.java:406) at at org.codehaus.janino.IClass.getIMethods(IClass.java:223) at at org.codehaus.janino.IClass.getIMethods(IClass.java:199) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:409) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:393) at at org.codehaus.janino.UnitCompiler.access$400(UnitCompiler.java:185) at at org.codehaus.janino.UnitCompiler$2.visitPackageMemberClassDeclaration(UnitCompiler.java:347) at at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:1139) at at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:354) at at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:322) at at org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java:383) at at org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java:315) at at org.codehaus.janino.ClassBodyEvaluator.cook(ClassBodyEvaluator.java:233) at at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:192) at at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:84) at at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:77) at at ch.qos.logback.core.joran.conditional.PropertyEvalScriptBuilder.build(PropertyEvalScriptBuilder.java:54) at at ch.qos.logback.core.joran.conditional.IfAction.begin(IfAction.java:67) 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$1(LogbackContextSelector.java:81) at at me.janario.logback.deployment.LogbackContextSelector$$Lambda$1/1291367132.apply(Unknown Source) at at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) 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) 22:26:02,964 |-ERROR in ch.qos.logback.core.joran.conditional.IfAction - Failed to determine "if then else" result 22:26:02,964 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
    via by Janario Oliveira,
  • I've configured janino with some basic conditions as: <if condition='property("portal.envType").contains("dev")'> <then> <logger name="org.hibernate.SQL" level="DEBUG"/> </then> </if> But when running it in wildfly as a module it throws an exception: 22:26:02,962 |-ERROR in ch.qos.logback.core.joran.conditional.IfAction - Failed to parse condition [property("portal.envType").contains("dev")] org.codehaus.janino.JaninoRuntimeException: Cannot load class 'ch.qos.logback.core.joran.conditional.PropertyWrapperForScripts' through the parent loader at org.codehaus.janino.JaninoRuntimeException: Cannot load class 'ch.qos.logback.core.joran.conditional.PropertyWrapperForScripts' through the parent loader at at org.codehaus.janino.SimpleCompiler$1.getDelegate(SimpleCompiler.java:306) at at org.codehaus.janino.SimpleCompiler$1.accept(SimpleCompiler.java:291) at at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:5159) at at org.codehaus.janino.UnitCompiler.access$16700(UnitCompiler.java:185) at at org.codehaus.janino.UnitCompiler$29.getSuperclass2(UnitCompiler.java:8154) at at org.codehaus.janino.IClass.getSuperclass(IClass.java:406) at at org.codehaus.janino.IClass.getIMethods(IClass.java:223) at at org.codehaus.janino.IClass.getIMethods(IClass.java:199) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:409) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:393) at at org.codehaus.janino.UnitCompiler.access$400(UnitCompiler.java:185) at at org.codehaus.janino.UnitCompiler$2.visitPackageMemberClassDeclaration(UnitCompiler.java:347) at at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:1139) at at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:354) at at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:322) at at org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java:383) at at org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java:315) at at org.codehaus.janino.ClassBodyEvaluator.cook(ClassBodyEvaluator.java:233) at at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:192) at at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:84) at at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:77) at at ch.qos.logback.core.joran.conditional.PropertyEvalScriptBuilder.build(PropertyEvalScriptBuilder.java:54) at at ch.qos.logback.core.joran.conditional.IfAction.begin(IfAction.java:67) 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$1(LogbackContextSelector.java:81) at at me.janario.logback.deployment.LogbackContextSelector$$Lambda$1/1291367132.apply(Unknown Source) at at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) 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) 22:26:02,962 |-ERROR in ch.qos.logback.core.joran.conditional.IfAction - Failed to determine "if then else" result 22:26:02,962 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO 22:26:02,962 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ASYNC_FILE] to Logger[ROOT] 22:26:02,964 |-ERROR in ch.qos.logback.core.joran.conditional.IfAction - Failed to parse condition [property("portal.envType").contains("dev")] org.codehaus.janino.JaninoRuntimeException: Cannot load class 'ch.qos.logback.core.joran.conditional.PropertyWrapperForScripts' through the parent loader at org.codehaus.janino.JaninoRuntimeException: Cannot load class 'ch.qos.logback.core.joran.conditional.PropertyWrapperForScripts' through the parent loader at at org.codehaus.janino.SimpleCompiler$1.getDelegate(SimpleCompiler.java:306) at at org.codehaus.janino.SimpleCompiler$1.accept(SimpleCompiler.java:291) at at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:5159) at at org.codehaus.janino.UnitCompiler.access$16700(UnitCompiler.java:185) at at org.codehaus.janino.UnitCompiler$29.getSuperclass2(UnitCompiler.java:8154) at at org.codehaus.janino.IClass.getSuperclass(IClass.java:406) at at org.codehaus.janino.IClass.getIMethods(IClass.java:223) at at org.codehaus.janino.IClass.getIMethods(IClass.java:199) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:409) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:393) at at org.codehaus.janino.UnitCompiler.access$400(UnitCompiler.java:185) at at org.codehaus.janino.UnitCompiler$2.visitPackageMemberClassDeclaration(UnitCompiler.java:347) at at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:1139) at at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:354) at at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:322) at at org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java:383) at at org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java:315) at at org.codehaus.janino.ClassBodyEvaluator.cook(ClassBodyEvaluator.java:233) at at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:192) at at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:84) at at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:77) at at ch.qos.logback.core.joran.conditional.PropertyEvalScriptBuilder.build(PropertyEvalScriptBuilder.java:54) at at ch.qos.logback.core.joran.conditional.IfAction.begin(IfAction.java:67) 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$1(LogbackContextSelector.java:81) at at me.janario.logback.deployment.LogbackContextSelector$$Lambda$1/1291367132.apply(Unknown Source) at at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) 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) 22:26:02,964 |-ERROR in ch.qos.logback.core.joran.conditional.IfAction - Failed to determine "if then else" result 22:26:02,964 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
    via by Janario Oliveira,
  • Hello, I have a logback configuration like this: {code} <if condition='property("CONTEXT_NAME").equalsIgnoreCase("my.propject.name")'> <then> <property name="logentries.token" value="my-token" /> <property name="appender" value="logentries" /> </then> </if> {code} This works fine when loaded via Tomcat or run through a test, but when run through an axis2 aar, I get this exception: {quote} 00:31:58,704 |-ERROR in ch.qos.logback.core.joran.conditional.IfAction - Failed to parse condition [property("CONTEXT_NAME").equalsIgnoreCase("inovacel.server")] org.codehaus.janino.JaninoRuntimeException: Cannot load class "ch.qos.logback.core.spi.PropertyContainer" through the given ClassLoader at org.codehaus.janino.JaninoRuntimeException: Cannot load class "ch.qos.logback.core.spi.PropertyContainer" through the given ClassLoader at at org.codehaus.janino.ReflectionIClass.classToIClass(ReflectionIClass.java:310) at at org.codehaus.janino.ReflectionIClass.classesToIClasses(ReflectionIClass.java:320) at at org.codehaus.janino.ReflectionIClass.access$200(ReflectionIClass.java:38) at at org.codehaus.janino.ReflectionIClass$ReflectionIMethod.getParameterTypes(ReflectionIClass.java:226) at at org.codehaus.janino.IClass$IMethod.getDescriptor(IClass.java:807) at at org.codehaus.janino.IClass.getIMethods(IClass.java:180) at at org.codehaus.janino.IClass.getIMethods(IClass.java:195) at at org.codehaus.janino.IClass.getIMethods(IClass.java:170) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:372) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:357) at at org.codehaus.janino.UnitCompiler$3.visitPackageMemberClassDeclaration(UnitCompiler.java:312) at at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:770) at at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:319) at at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:288) at at org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java:393) at at org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java:311) at at org.codehaus.janino.ClassBodyEvaluator.cook(ClassBodyEvaluator.java:224) at at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:194) at at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:80) at at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:72) at at ch.qos.logback.core.joran.conditional.PropertyEvalScriptBuilder.build(PropertyEvalScriptBuilder.java:50) at at ch.qos.logback.core.joran.conditional.IfAction.begin(IfAction.java:67) at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:148) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:130) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:56) 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:85) at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55) at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281) at at com.assuredlabor.inovacel.server.SpringInit.<clinit>(SpringInit.java) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at at java.lang.Class.newInstance0(Class.java:355) at at java.lang.Class.newInstance(Class.java:308) at at org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(ServiceBuilder.java:518) at at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:213) at at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101) at at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:109) at at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:143) at at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82) at at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) at at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813) at at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) at at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377) at at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254) at at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142) at at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:283) at at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95) at at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584) at at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454) at at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280) at at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193) at at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088) at at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5033) at at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5317) at at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977) at at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655) at at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at at java.util.concurrent.FutureTask.run(FutureTask.java:138) at at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at at java.lang.Thread.run(Thread.java:662) {quote} I realize this is probably an esoteric problem, but I wanted to report it. Please let me know if you know of any work around. I tried moving all the logback, slf4j, and janino, etc jars into tomcat, and the error went away, but logging did not seem to work for my axis2 aar file. (Other webapps were logging fine in that situation.)
    via by Joshua Chaitin-Pollak,
  • Hello, I have a logback configuration like this: {code} <if condition='property("CONTEXT_NAME").equalsIgnoreCase("my.propject.name")'> <then> <property name="logentries.token" value="my-token" /> <property name="appender" value="logentries" /> </then> </if> {code} This works fine when loaded via Tomcat or run through a test, but when run through an axis2 aar, I get this exception: {quote} 00:31:58,704 |-ERROR in ch.qos.logback.core.joran.conditional.IfAction - Failed to parse condition [property("CONTEXT_NAME").equalsIgnoreCase("inovacel.server")] org.codehaus.janino.JaninoRuntimeException: Cannot load class "ch.qos.logback.core.spi.PropertyContainer" through the given ClassLoader at org.codehaus.janino.JaninoRuntimeException: Cannot load class "ch.qos.logback.core.spi.PropertyContainer" through the given ClassLoader at at org.codehaus.janino.ReflectionIClass.classToIClass(ReflectionIClass.java:310) at at org.codehaus.janino.ReflectionIClass.classesToIClasses(ReflectionIClass.java:320) at at org.codehaus.janino.ReflectionIClass.access$200(ReflectionIClass.java:38) at at org.codehaus.janino.ReflectionIClass$ReflectionIMethod.getParameterTypes(ReflectionIClass.java:226) at at org.codehaus.janino.IClass$IMethod.getDescriptor(IClass.java:807) at at org.codehaus.janino.IClass.getIMethods(IClass.java:180) at at org.codehaus.janino.IClass.getIMethods(IClass.java:195) at at org.codehaus.janino.IClass.getIMethods(IClass.java:170) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:372) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:357) at at org.codehaus.janino.UnitCompiler$3.visitPackageMemberClassDeclaration(UnitCompiler.java:312) at at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:770) at at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:319) at at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:288) at at org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java:393) at at org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java:311) at at org.codehaus.janino.ClassBodyEvaluator.cook(ClassBodyEvaluator.java:224) at at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:194) at at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:80) at at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:72) at at ch.qos.logback.core.joran.conditional.PropertyEvalScriptBuilder.build(PropertyEvalScriptBuilder.java:50) at at ch.qos.logback.core.joran.conditional.IfAction.begin(IfAction.java:67) at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:148) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:130) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:56) 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:85) at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55) at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281) at at com.assuredlabor.inovacel.server.SpringInit.<clinit>(SpringInit.java) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at at java.lang.Class.newInstance0(Class.java:355) at at java.lang.Class.newInstance(Class.java:308) at at org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(ServiceBuilder.java:518) at at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:213) at at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101) at at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:109) at at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:143) at at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82) at at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) at at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813) at at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) at at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377) at at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254) at at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142) at at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:283) at at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95) at at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584) at at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454) at at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280) at at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193) at at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088) at at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5033) at at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5317) at at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977) at at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655) at at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at at java.util.concurrent.FutureTask.run(FutureTask.java:138) at at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at at java.lang.Thread.run(Thread.java:662) {quote} I realize this is probably an esoteric problem, but I wanted to report it. Please let me know if you know of any work around. I tried moving all the logback, slf4j, and janino, etc jars into tomcat, and the error went away, but logging did not seem to work for my axis2 aar file. (Other webapps were logging fine in that situation.)
    via by Joshua Chaitin-Pollak,
  • Pico compiler on iOS
    via Stack Overflow by Votre Patron
    ,
    • org.codehaus.janino.JaninoRuntimeException: Cannot load class 'ch.qos.logback.core.joran.conditional.PropertyWrapperForScripts' through the parent loader at org.codehaus.janino.SimpleCompiler$1.getDelegate(SimpleCompiler.java:306) at org.codehaus.janino.SimpleCompiler$1.accept(SimpleCompiler.java:291) at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:5159) at org.codehaus.janino.UnitCompiler.access$16700(UnitCompiler.java:185) at org.codehaus.janino.UnitCompiler$29.getSuperclass2(UnitCompiler.java:8154) at org.codehaus.janino.IClass.getSuperclass(IClass.java:406) at org.codehaus.janino.IClass.getIMethods(IClass.java:223) at org.codehaus.janino.IClass.getIMethods(IClass.java:199) at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:409) at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:393) at org.codehaus.janino.UnitCompiler.access$400(UnitCompiler.java:185) at org.codehaus.janino.UnitCompiler$2.visitPackageMemberClassDeclaration(UnitCompiler.java:347) at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:1139) at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:354) at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:322) at org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java:383) at org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java:315) at org.codehaus.janino.ClassBodyEvaluator.cook(ClassBodyEvaluator.java:233) at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:192) at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:84) at org.codehaus.commons.compiler.Cookable.cook(Cookable.java:77) at ch.qos.logback.core.joran.conditional.PropertyEvalScriptBuilder.build(PropertyEvalScriptBuilder.java:54) at ch.qos.logback.core.joran.conditional.IfAction.begin(IfAction.java:67) at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:275) at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147) at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129) at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49) at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at me.janario.logback.deployment.LogbackContextSelector.lambda$getLoggerContext$1(LogbackContextSelector.java:81)
    No Bugmate found.