org.codehaus.janino.CompileException: Line 2, Column 57: A method named "toInt" is not declared in any enclosing class nor any supertype, nor through a static import

QOS.ch JIRA | Pavel Mikhalchuk | 6 years ago
  1. 0

    Appender is configurated the next way: <appender name="appender class="ch.qos.logback.classic.net.SMTPAppender"> <SMTPHost>some_host</SMTPHost> <BufferSize>10</BufferSize> <To>some@email.address</To> <From>som@email.address2</From> <Subject>Some subject</Subject> <layout class="ch.qos.logback.classic.html.HTMLLayout"/> <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator"> <marker>Some Marker</marker> </evaluator> <filter class="ch.qos.logback.core.filter.EvaluatorFilter"> <evaluator name="MARKER"> <expression>marker != null &amp;&amp; event.getLevel().toInt() >= WARN</expression> </evaluator> <OnMatch>ACCEPT</OnMatch> <OnMismatch>DENY</OnMismatch> </filter> </appender> And when the web application is starting the following stacktrace can be observed: 21:02:57,596 |-ERROR in ch.qos.logback.classic.boolex.JaninoEventEvaluator@1bde392 - Could not start evaluator with expression [marker != null && event.getLevel().toInt() >= WARN.toInt()] org.codehaus.janino.CompileException: Line 2, Column 57: A method named "toInt" is not declared in any enclosing class nor any supertype, nor through a static import at org.codehaus.janino.CompileException: Line 2, Column 57: A method named "toInt" is not declared in any enclosing class nor any supertype, nor through a static import at at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.access$51(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler$9.visitMethodInvocation(UnitCompiler.java) at at org.codehaus.janino.Java$MethodInvocation.accept(Java.java) at at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileBoolean2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.access$31(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler$7.visitBinaryOperation(UnitCompiler.java) at at org.codehaus.janino.Java$BinaryOperation.accept(Java.java) at at org.codehaus.janino.UnitCompiler.compileBoolean(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileBoolean2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.access$31(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler$7.visitBinaryOperation(UnitCompiler.java) at at org.codehaus.janino.Java$BinaryOperation.accept(Java.java) at at org.codehaus.janino.UnitCompiler.compileBoolean(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.access$44(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler$9.visitBinaryOperation(UnitCompiler.java) at at org.codehaus.janino.Java$BinaryOperation.accept(Java.java) at at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.access$17(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler$4.visitReturnStatement(UnitCompiler.java) at at org.codehaus.janino.Java$ReturnStatement.accept(Java.java) at at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.access$7(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler$4.visitBlock(UnitCompiler.java) at at org.codehaus.janino.Java$Block.accept(Java.java) at at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler$3.visitPackageMemberClassDeclaration(UnitCompiler.java) at at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java) at at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java) at at org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java) at at org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java) at at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java) at at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java) at at org.codehaus.janino.Cookable.cook(Cookable.java) at at org.codehaus.janino.Cookable.cook(Cookable.java) at at org.codehaus.janino.Cookable.cook(Cookable.java) at at org.codehaus.janino.ExpressionEvaluator.<init>(ExpressionEvaluator.java) at at ch.qos.logback.core.boolex.JaninoEventEvaluatorBase.start(JaninoEventEvaluatorBase.java:58) at at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:168) at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:315) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:194) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:180) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:52) at at ch.qos.logback.core.joran.spi.Interpreter.play(Interpreter.java:332) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:126) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:93) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:52) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150) 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:121) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254) at at com.shc.obu.mp.sellpo.batch.ContextListener.<clinit>(ContextListener.java:13) 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.mortbay.jetty.webapp.WebXmlConfiguration.newListenerInstance(WebXmlConfiguration.java:650) at at org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfiguration.java:631) at at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXmlConfiguration.java:368) at at org.mortbay.jetty.plus.webapp.AbstractConfiguration.initWebXmlElement(AbstractConfiguration.java:190) at at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.java:289) at at org.mortbay.jetty.plus.webapp.AbstractConfiguration.initialize(AbstractConfiguration.java:133) at at org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfiguration.java:222) at at org.mortbay.jetty.plus.webapp.AbstractConfiguration.configure(AbstractConfiguration.java:113) at at org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlConfiguration.java:180) at at org.mortbay.jetty.plus.webapp.AbstractConfiguration.configureWebApp(AbstractConfiguration.java:96) at at org.mortbay.jetty.plus.webapp.Configuration.configureWebApp(Configuration.java:149) at at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1247) at at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115) at at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) at at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at at org.mortbay.jetty.Server.doStart(Server.java:224) at at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) at at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441) at at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383) at at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210) at at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184) at at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at at java.lang.reflect.Method.invoke(Method.java:597) at at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at at org.codehaus.classworlds.Launcher.main(Launcher.java:375) at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at at java.lang.reflect.Method.invoke(Method.java:597) at at com.intellij.rt.execution.application.AppMain.main(AppMain.java:110) The only one right configuration without exceptions is: <appender name="appender class="ch.qos.logback.classic.net.SMTPAppender"> <SMTPHost>some_host</SMTPHost> <BufferSize>10</BufferSize> <To>some@email.address</To> <From>som@email.address2</From> <Subject>Some subject</Subject> <layout class="ch.qos.logback.classic.html.HTMLLayout"/> <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator"> <marker>Some Marker</marker> </evaluator> <filter class="ch.qos.logback.core.filter.EvaluatorFilter"> <evaluator name="MARKER"> <expression>marker != null &amp;&amp; event.getLevel().toInt() >= WARN</expression> </evaluator> <OnMatch>ACCEPT</OnMatch> <OnMismatch>DENY</OnMismatch> </filter> </appender> event.getLevel().toInt() >= WARN (not event.getLevel().toInt() >= WARN.toInt()) But according to http://logback.qos.ch/manual/filters.html#evalutatorFilter we need to use event.getLevel().toInt() >= WARN.toInt().

    QOS.ch JIRA | 6 years ago | Pavel Mikhalchuk
    org.codehaus.janino.CompileException: Line 2, Column 57: A method named "toInt" is not declared in any enclosing class nor any supertype, nor through a static import
  2. 0

    Appender is configurated the next way: <appender name="appender class="ch.qos.logback.classic.net.SMTPAppender"> <SMTPHost>some_host</SMTPHost> <BufferSize>10</BufferSize> <To>some@email.address</To> <From>som@email.address2</From> <Subject>Some subject</Subject> <layout class="ch.qos.logback.classic.html.HTMLLayout"/> <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator"> <marker>Some Marker</marker> </evaluator> <filter class="ch.qos.logback.core.filter.EvaluatorFilter"> <evaluator name="MARKER"> <expression>marker != null &amp;&amp; event.getLevel().toInt() >= WARN</expression> </evaluator> <OnMatch>ACCEPT</OnMatch> <OnMismatch>DENY</OnMismatch> </filter> </appender> And when the web application is starting the following stacktrace can be observed: 21:02:57,596 |-ERROR in ch.qos.logback.classic.boolex.JaninoEventEvaluator@1bde392 - Could not start evaluator with expression [marker != null && event.getLevel().toInt() >= WARN.toInt()] org.codehaus.janino.CompileException: Line 2, Column 57: A method named "toInt" is not declared in any enclosing class nor any supertype, nor through a static import at org.codehaus.janino.CompileException: Line 2, Column 57: A method named "toInt" is not declared in any enclosing class nor any supertype, nor through a static import at at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.access$51(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler$9.visitMethodInvocation(UnitCompiler.java) at at org.codehaus.janino.Java$MethodInvocation.accept(Java.java) at at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileBoolean2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.access$31(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler$7.visitBinaryOperation(UnitCompiler.java) at at org.codehaus.janino.Java$BinaryOperation.accept(Java.java) at at org.codehaus.janino.UnitCompiler.compileBoolean(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileBoolean2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.access$31(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler$7.visitBinaryOperation(UnitCompiler.java) at at org.codehaus.janino.Java$BinaryOperation.accept(Java.java) at at org.codehaus.janino.UnitCompiler.compileBoolean(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.access$44(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler$9.visitBinaryOperation(UnitCompiler.java) at at org.codehaus.janino.Java$BinaryOperation.accept(Java.java) at at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.access$17(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler$4.visitReturnStatement(UnitCompiler.java) at at org.codehaus.janino.Java$ReturnStatement.accept(Java.java) at at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.access$7(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler$4.visitBlock(UnitCompiler.java) at at org.codehaus.janino.Java$Block.accept(Java.java) at at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler$3.visitPackageMemberClassDeclaration(UnitCompiler.java) at at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java) at at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java) at at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java) at at org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java) at at org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java) at at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java) at at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java) at at org.codehaus.janino.Cookable.cook(Cookable.java) at at org.codehaus.janino.Cookable.cook(Cookable.java) at at org.codehaus.janino.Cookable.cook(Cookable.java) at at org.codehaus.janino.ExpressionEvaluator.<init>(ExpressionEvaluator.java) at at ch.qos.logback.core.boolex.JaninoEventEvaluatorBase.start(JaninoEventEvaluatorBase.java:58) at at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:168) at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:315) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:194) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:180) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:52) at at ch.qos.logback.core.joran.spi.Interpreter.play(Interpreter.java:332) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:126) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:93) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:52) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150) 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:121) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254) at at com.shc.obu.mp.sellpo.batch.ContextListener.<clinit>(ContextListener.java:13) 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.mortbay.jetty.webapp.WebXmlConfiguration.newListenerInstance(WebXmlConfiguration.java:650) at at org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfiguration.java:631) at at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXmlConfiguration.java:368) at at org.mortbay.jetty.plus.webapp.AbstractConfiguration.initWebXmlElement(AbstractConfiguration.java:190) at at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.java:289) at at org.mortbay.jetty.plus.webapp.AbstractConfiguration.initialize(AbstractConfiguration.java:133) at at org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfiguration.java:222) at at org.mortbay.jetty.plus.webapp.AbstractConfiguration.configure(AbstractConfiguration.java:113) at at org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlConfiguration.java:180) at at org.mortbay.jetty.plus.webapp.AbstractConfiguration.configureWebApp(AbstractConfiguration.java:96) at at org.mortbay.jetty.plus.webapp.Configuration.configureWebApp(Configuration.java:149) at at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1247) at at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115) at at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) at at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at at org.mortbay.jetty.Server.doStart(Server.java:224) at at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) at at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441) at at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383) at at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210) at at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184) at at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at at java.lang.reflect.Method.invoke(Method.java:597) at at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at at org.codehaus.classworlds.Launcher.main(Launcher.java:375) at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at at java.lang.reflect.Method.invoke(Method.java:597) at at com.intellij.rt.execution.application.AppMain.main(AppMain.java:110) The only one right configuration without exceptions is: <appender name="appender class="ch.qos.logback.classic.net.SMTPAppender"> <SMTPHost>some_host</SMTPHost> <BufferSize>10</BufferSize> <To>some@email.address</To> <From>som@email.address2</From> <Subject>Some subject</Subject> <layout class="ch.qos.logback.classic.html.HTMLLayout"/> <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator"> <marker>Some Marker</marker> </evaluator> <filter class="ch.qos.logback.core.filter.EvaluatorFilter"> <evaluator name="MARKER"> <expression>marker != null &amp;&amp; event.getLevel().toInt() >= WARN</expression> </evaluator> <OnMatch>ACCEPT</OnMatch> <OnMismatch>DENY</OnMismatch> </filter> </appender> event.getLevel().toInt() >= WARN (not event.getLevel().toInt() >= WARN.toInt()) But according to http://logback.qos.ch/manual/filters.html#evalutatorFilter we need to use event.getLevel().toInt() >= WARN.toInt().

    QOS.ch JIRA | 6 years ago | Pavel Mikhalchuk
    org.codehaus.janino.CompileException: Line 2, Column 57: A method named "toInt" is not declared in any enclosing class nor any supertype, nor through a static import
  3. 0

    Help with using Filter

    Google Groups | 5 years ago | Nick Smith
    java.lang.RuntimeException: Error in configuring object
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When developing a transformation that has a User-Defined Java Expression (UDJE) step that manipulates a Timestamp field, an error is thrown and the transformation fails. {noformat} 2015/09/11 13:07:54 - User Defined Java Expression.0 - ERROR (version 5.4.0.3-143, build 1 from 2015-08-06 14.29.30 by buildguy) : Unexpected error 2015/09/11 13:07:54 - User Defined Java Expression.0 - ERROR (version 5.4.0.3-143, build 1 from 2015-08-06 14.29.30 by buildguy) : org.pentaho.di.core.exception.KettleException: 2015/09/11 13:07:54 - User Defined Java Expression.0 - org.pentaho.di.core.exception.KettleValueException: 2015/09/11 13:07:54 - User Defined Java Expression.0 - org.codehaus.janino.CompileException: Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import 2015/09/11 13:07:54 - User Defined Java Expression.0 - Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import 2015/09/11 13:07:54 - User Defined Java Expression.0 - 2015/09/11 13:07:54 - User Defined Java Expression.0 - 2015/09/11 13:07:54 - User Defined Java Expression.0 - org.codehaus.janino.CompileException: Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import 2015/09/11 13:07:54 - User Defined Java Expression.0 - Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import 2015/09/11 13:07:54 - User Defined Java Expression.0 - 2015/09/11 13:07:54 - User Defined Java Expression.0 - 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.pentaho.di.trans.steps.janino.Janino.processRow(Janino.java:108) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at java.lang.Thread.run(Thread.java:745) 2015/09/11 13:07:54 - User Defined Java Expression.0 - Caused by: org.pentaho.di.core.exception.KettleValueException: 2015/09/11 13:07:54 - User Defined Java Expression.0 - org.codehaus.janino.CompileException: Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import 2015/09/11 13:07:54 - User Defined Java Expression.0 - Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import 2015/09/11 13:07:54 - User Defined Java Expression.0 - 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.pentaho.di.trans.steps.janino.Janino.calcFields(Janino.java:326) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.pentaho.di.trans.steps.janino.Janino.processRow(Janino.java:99) 2015/09/11 13:07:54 - User Defined Java Expression.0 - ... 2 more 2015/09/11 13:07:54 - User Defined Java Expression.0 - Caused by: org.codehaus.janino.CompileException: Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:8185) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:5897) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.getType2(UnitCompiler.java:4424) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.access$11400(UnitCompiler.java:108) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler$16.visitMethodInvocation(UnitCompiler.java:4066) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:2649) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:4086) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.findMostSpecificIInvocable(UnitCompiler.java:6028) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:5923) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:5862) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java:3124) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.access$6300(UnitCompiler.java:108) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler$10.visitMethodInvocation(UnitCompiler.java:2579) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:2650) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java:2599) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:3535) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1439) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.access$1700(UnitCompiler.java:108) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler$4.visitReturnStatement(UnitCompiler.java:748) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Java$ReturnStatement.accept(Java.java:1665) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:758) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:777) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.access$700(UnitCompiler.java:108) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler$4.visitBlock(UnitCompiler.java:738) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Java$Block.accept(Java.java:1280) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:758) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:1783) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:723) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:705) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:431) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:329) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler$3.visitPackageMemberClassDeclaration(UnitCompiler.java:302) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:703) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:308) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:286) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java:420) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java:400) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:607) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:443) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Cookable.cook(Cookable.java:72) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Cookable.cook(Cookable.java:64) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Cookable.cook(Cookable.java:114) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.pentaho.di.trans.steps.janino.Janino.calcFields(Janino.java:193) 2015/09/11 13:07:54 - User Defined Java Expression.0 - ... 3 more 2015/09/11 13:07:54 - User Defined Java Expression.0 - Finished processing (I=0, O=0, R=1, W=0, U=0, E=1) {noformat}

    Pentaho BI Platform Tracking | 1 year ago | Matt Tucker
    org.codehaus.janino.CompileException: Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import
  6. 0

    When developing a transformation that has a User-Defined Java Expression (UDJE) step that manipulates a Timestamp field, an error is thrown and the transformation fails. {noformat} 2015/09/11 13:07:54 - User Defined Java Expression.0 - ERROR (version 5.4.0.3-143, build 1 from 2015-08-06 14.29.30 by buildguy) : Unexpected error 2015/09/11 13:07:54 - User Defined Java Expression.0 - ERROR (version 5.4.0.3-143, build 1 from 2015-08-06 14.29.30 by buildguy) : org.pentaho.di.core.exception.KettleException: 2015/09/11 13:07:54 - User Defined Java Expression.0 - org.pentaho.di.core.exception.KettleValueException: 2015/09/11 13:07:54 - User Defined Java Expression.0 - org.codehaus.janino.CompileException: Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import 2015/09/11 13:07:54 - User Defined Java Expression.0 - Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import 2015/09/11 13:07:54 - User Defined Java Expression.0 - 2015/09/11 13:07:54 - User Defined Java Expression.0 - 2015/09/11 13:07:54 - User Defined Java Expression.0 - org.codehaus.janino.CompileException: Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import 2015/09/11 13:07:54 - User Defined Java Expression.0 - Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import 2015/09/11 13:07:54 - User Defined Java Expression.0 - 2015/09/11 13:07:54 - User Defined Java Expression.0 - 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.pentaho.di.trans.steps.janino.Janino.processRow(Janino.java:108) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at java.lang.Thread.run(Thread.java:745) 2015/09/11 13:07:54 - User Defined Java Expression.0 - Caused by: org.pentaho.di.core.exception.KettleValueException: 2015/09/11 13:07:54 - User Defined Java Expression.0 - org.codehaus.janino.CompileException: Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import 2015/09/11 13:07:54 - User Defined Java Expression.0 - Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import 2015/09/11 13:07:54 - User Defined Java Expression.0 - 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.pentaho.di.trans.steps.janino.Janino.calcFields(Janino.java:326) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.pentaho.di.trans.steps.janino.Janino.processRow(Janino.java:99) 2015/09/11 13:07:54 - User Defined Java Expression.0 - ... 2 more 2015/09/11 13:07:54 - User Defined Java Expression.0 - Caused by: org.codehaus.janino.CompileException: Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:8185) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:5897) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.getType2(UnitCompiler.java:4424) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.access$11400(UnitCompiler.java:108) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler$16.visitMethodInvocation(UnitCompiler.java:4066) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:2649) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:4086) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.findMostSpecificIInvocable(UnitCompiler.java:6028) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:5923) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java:5862) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java:3124) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.access$6300(UnitCompiler.java:108) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler$10.visitMethodInvocation(UnitCompiler.java:2579) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Java$MethodInvocation.accept(Java.java:2650) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java:2599) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:3535) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1439) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.access$1700(UnitCompiler.java:108) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler$4.visitReturnStatement(UnitCompiler.java:748) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Java$ReturnStatement.accept(Java.java:1665) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:758) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:777) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.access$700(UnitCompiler.java:108) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler$4.visitBlock(UnitCompiler.java:738) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Java$Block.accept(Java.java:1280) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:758) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:1783) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:723) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:705) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:431) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:329) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler$3.visitPackageMemberClassDeclaration(UnitCompiler.java:302) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java:703) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:308) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:286) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java:420) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java:400) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:607) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java:443) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Cookable.cook(Cookable.java:72) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Cookable.cook(Cookable.java:64) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.codehaus.janino.Cookable.cook(Cookable.java:114) 2015/09/11 13:07:54 - User Defined Java Expression.0 - at org.pentaho.di.trans.steps.janino.Janino.calcFields(Janino.java:193) 2015/09/11 13:07:54 - User Defined Java Expression.0 - ... 3 more 2015/09/11 13:07:54 - User Defined Java Expression.0 - Finished processing (I=0, O=0, R=1, W=0, U=0, E=1) {noformat}

    Pentaho BI Platform Tracking | 1 year ago | Matt Tucker
    org.codehaus.janino.CompileException: Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import Line 1, Column 15: A method named "getTime" is not declared in any enclosing class nor any supertype, nor through a static import

    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. org.codehaus.janino.CompileException

      Line 2, Column 57: A method named "toInt" is not declared in any enclosing class nor any supertype, nor through a static import

      at org.codehaus.janino.UnitCompiler.compileError()
    2. Janino
      ExpressionEvaluator.<init>
      1. org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java)
      2. org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java)
      3. org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java)
      4. org.codehaus.janino.UnitCompiler.access$51(UnitCompiler.java)
      5. org.codehaus.janino.UnitCompiler$9.visitMethodInvocation(UnitCompiler.java)
      6. org.codehaus.janino.Java$MethodInvocation.accept(Java.java)
      7. org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java)
      8. org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java)
      9. org.codehaus.janino.UnitCompiler.compileBoolean2(UnitCompiler.java)
      10. org.codehaus.janino.UnitCompiler.access$31(UnitCompiler.java)
      11. org.codehaus.janino.UnitCompiler$7.visitBinaryOperation(UnitCompiler.java)
      12. org.codehaus.janino.Java$BinaryOperation.accept(Java.java)
      13. org.codehaus.janino.UnitCompiler.compileBoolean(UnitCompiler.java)
      14. org.codehaus.janino.UnitCompiler.compileBoolean2(UnitCompiler.java)
      15. org.codehaus.janino.UnitCompiler.access$31(UnitCompiler.java)
      16. org.codehaus.janino.UnitCompiler$7.visitBinaryOperation(UnitCompiler.java)
      17. org.codehaus.janino.Java$BinaryOperation.accept(Java.java)
      18. org.codehaus.janino.UnitCompiler.compileBoolean(UnitCompiler.java)
      19. org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java)
      20. org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java)
      21. org.codehaus.janino.UnitCompiler.access$44(UnitCompiler.java)
      22. org.codehaus.janino.UnitCompiler$9.visitBinaryOperation(UnitCompiler.java)
      23. org.codehaus.janino.Java$BinaryOperation.accept(Java.java)
      24. org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java)
      25. org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java)
      26. org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java)
      27. org.codehaus.janino.UnitCompiler.access$17(UnitCompiler.java)
      28. org.codehaus.janino.UnitCompiler$4.visitReturnStatement(UnitCompiler.java)
      29. org.codehaus.janino.Java$ReturnStatement.accept(Java.java)
      30. org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java)
      31. org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java)
      32. org.codehaus.janino.UnitCompiler.access$7(UnitCompiler.java)
      33. org.codehaus.janino.UnitCompiler$4.visitBlock(UnitCompiler.java)
      34. org.codehaus.janino.Java$Block.accept(Java.java)
      35. org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java)
      36. org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java)
      37. org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java)
      38. org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java)
      39. org.codehaus.janino.UnitCompiler$3.visitPackageMemberClassDeclaration(UnitCompiler.java)
      40. org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java)
      41. org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java)
      42. org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java)
      43. org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java)
      44. org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java)
      45. org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java)
      46. org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java)
      47. org.codehaus.janino.Cookable.cook(Cookable.java)
      48. org.codehaus.janino.Cookable.cook(Cookable.java)
      49. org.codehaus.janino.Cookable.cook(Cookable.java)
      50. org.codehaus.janino.ExpressionEvaluator.<init>(ExpressionEvaluator.java)
      50 frames
    3. Logback Core Module
      GenericConfigurator.doConfigure
      1. ch.qos.logback.core.boolex.JaninoEventEvaluatorBase.start(JaninoEventEvaluatorBase.java:58)
      2. ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:168)
      3. ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:315)
      4. ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:194)
      5. ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:180)
      6. ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:52)
      7. ch.qos.logback.core.joran.spi.Interpreter.play(Interpreter.java:332)
      8. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:126)
      9. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:93)
      10. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:52)
      10 frames
    4. Logback Classic Module
      ContextInitializer.autoConfig
      1. ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)
      2. ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
      2 frames
    5. SLF4J LOG4J-12 Binding
      StaticLoggerBinder.<clinit>
      1. org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
      2. org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
      2 frames
    6. SLF4J API Module
      LoggerFactory.getLogger
      1. org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)
      2. org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
      3. org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268)
      4. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241)
      5. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
      5 frames
    7. com.shc.obu
      ContextListener.<clinit>
      1. com.shc.obu.mp.sellpo.batch.ContextListener.<clinit>(ContextListener.java:13)
      1 frame
    8. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      5. java.lang.Class.newInstance0(Class.java:355)
      6. java.lang.Class.newInstance(Class.java:308)
      6 frames
    9. Jetty Server
      WebXmlConfiguration.initWebXmlElement
      1. org.mortbay.jetty.webapp.WebXmlConfiguration.newListenerInstance(WebXmlConfiguration.java:650)
      2. org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfiguration.java:631)
      3. org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXmlConfiguration.java:368)
      3 frames
    10. Jetty Plus
      AbstractConfiguration.initWebXmlElement
      1. org.mortbay.jetty.plus.webapp.AbstractConfiguration.initWebXmlElement(AbstractConfiguration.java:190)
      1 frame
    11. Jetty Server
      WebXmlConfiguration.initialize
      1. org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.java:289)
      1 frame
    12. Jetty Plus
      AbstractConfiguration.initialize
      1. org.mortbay.jetty.plus.webapp.AbstractConfiguration.initialize(AbstractConfiguration.java:133)
      1 frame
    13. Jetty Server
      WebXmlConfiguration.configure
      1. org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfiguration.java:222)
      1 frame
    14. Jetty Plus
      AbstractConfiguration.configure
      1. org.mortbay.jetty.plus.webapp.AbstractConfiguration.configure(AbstractConfiguration.java:113)
      1 frame
    15. Jetty Server
      WebXmlConfiguration.configureWebApp
      1. org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlConfiguration.java:180)
      1 frame
    16. Jetty Plus
      Configuration.configureWebApp
      1. org.mortbay.jetty.plus.webapp.AbstractConfiguration.configureWebApp(AbstractConfiguration.java:96)
      2. org.mortbay.jetty.plus.webapp.Configuration.configureWebApp(Configuration.java:149)
      2 frames
    17. Jetty Server
      WebAppContext.doStart
      1. org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1247)
      2. org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
      3. org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
      3 frames
    18. Jetty :: Jetty Maven Plugin
      Jetty6PluginWebAppContext.doStart
      1. org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
      1 frame
    19. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      1 frame
    20. Jetty Server
      ContextHandlerCollection.doStart
      1. org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
      2. org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
      2 frames
    21. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      1 frame
    22. Jetty Server
      HandlerCollection.doStart
      1. org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
      1 frame
    23. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      1 frame
    24. Jetty Server
      Server.doStart
      1. org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      2. org.mortbay.jetty.Server.doStart(Server.java:224)
      2 frames
    25. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      1 frame
    26. Jetty :: Jetty Maven Plugin
      Jetty6RunMojo.execute
      1. org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
      2. org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
      3. org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
      4. org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
      5. org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
      5 frames
    27. Maven Plugin
      DefaultPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      1 frame
    28. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
      3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
      4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
      5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
      6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
      7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      8 frames
    29. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      1 frame
    30. org.apache.maven
      CompatibleMain.main
      1. org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      1 frame
    31. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    32. Plexus
      Launcher.main
      1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      4 frames
    33. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    34. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:110)
      1 frame