org.codehaus.janino.CompileException

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.

  • 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().
    via by Pavel Mikhalchuk,
  • 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().
    via by Pavel Mikhalchuk,
  • Help with using Filter
    via by Nick Smith,
  • The User Defined Java Expression step raises an exception when using a field that contains a dot (and potentially many other characters). It seems that Kettle passes the field name to Janino without checking if it is a valid variable name. Trace: 2015/01/19 12:50:24 - User Defined Java Expression.0 - ERROR (version 5.2.1.0-148, build 1 from 2014-12-17 13.17.09 by fede) : Unexpected error 2015/01/19 12:50:24 - User Defined Java Expression.0 - ERROR (version 5.2.1.0-148, build 1 from 2014-12-17 13.17.09 by fede) : org.pentaho.di.core.exception.KettleException: 2015/01/19 12:50:24 - User Defined Java Expression.0 - org.pentaho.di.core.exception.KettleValueException: 2015/01/19 12:50:24 - User Defined Java Expression.0 - org.codehaus.janino.CompileException: Line 1, Column 3: Unknown variable or type "a.b" 2015/01/19 12:50:24 - User Defined Java Expression.0 - Line 1, Column 3: Unknown variable or type "a.b" 2015/01/19 12:50:24 - User Defined Java Expression.0 - 2015/01/19 12:50:24 - User Defined Java Expression.0 - 2015/01/19 12:50:24 - User Defined Java Expression.0 - org.codehaus.janino.CompileException: Line 1, Column 3: Unknown variable or type "a.b" 2015/01/19 12:50:24 - User Defined Java Expression.0 - Line 1, Column 3: Unknown variable or type "a.b" 2015/01/19 12:50:24 - User Defined Java Expression.0 - 2015/01/19 12:50:24 - User Defined Java Expression.0 - 2015/01/19 12:50:24 - User Defined Java Expression.0 - at org.pentaho.di.trans.steps.janino.Janino.processRow(Janino.java:108) 2015/01/19 12:50:24 - User Defined Java Expression.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2015/01/19 12:50:24 - User Defined Java Expression.0 - at java.lang.Thread.run(Thread.java:745) 2015/01/19 12:50:24 - User Defined Java Expression.0 - Caused by: org.pentaho.di.core.exception.KettleValueException: 2015/01/19 12:50:24 - User Defined Java Expression.0 - org.codehaus.janino.CompileException: Line 1, Column 3: Unknown variable or type "a.b" 2015/01/19 12:50:24 - User Defined Java Expression.0 - Line 1, Column 3: Unknown variable or type "a.b" 2015/01/19 12:50:24 - User Defined Java Expression.0 - 2015/01/19 12:50:24 - User Defined Java Expression.0 - at org.pentaho.di.trans.steps.janino.Janino.calcFields(Janino.java:326) 2015/01/19 12:50:24 - User Defined Java Expression.0 - at org.pentaho.di.trans.steps.janino.Janino.processRow(Janino.java:99) 2015/01/19 12:50:24 - User Defined Java Expression.0 - ... 2 more 2015/01/19 12:50:24 - User Defined Java Expression.0 - Caused by: org.codehaus.janino.CompileException: Line 1, Column 3: Unknown variable or type "a.b" 2015/01/19 12:50:24 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:8185) 2015/01/19 12:50:24 - User Defined Java Expression.0 - ...
    via by FedeAF,
  • 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}
    via by Matt Tucker,
  • The User Defined Java Expression step raises an exception when using a field that contains a dot (and potentially many other characters). It seems that Kettle passes the field name to Janino without checking if it is a valid variable name. Trace: 2015/01/19 12:50:24 - User Defined Java Expression.0 - ERROR (version 5.2.1.0-148, build 1 from 2014-12-17 13.17.09 by fede) : Unexpected error 2015/01/19 12:50:24 - User Defined Java Expression.0 - ERROR (version 5.2.1.0-148, build 1 from 2014-12-17 13.17.09 by fede) : org.pentaho.di.core.exception.KettleException: 2015/01/19 12:50:24 - User Defined Java Expression.0 - org.pentaho.di.core.exception.KettleValueException: 2015/01/19 12:50:24 - User Defined Java Expression.0 - org.codehaus.janino.CompileException: Line 1, Column 3: Unknown variable or type "a.b" 2015/01/19 12:50:24 - User Defined Java Expression.0 - Line 1, Column 3: Unknown variable or type "a.b" 2015/01/19 12:50:24 - User Defined Java Expression.0 - 2015/01/19 12:50:24 - User Defined Java Expression.0 - 2015/01/19 12:50:24 - User Defined Java Expression.0 - org.codehaus.janino.CompileException: Line 1, Column 3: Unknown variable or type "a.b" 2015/01/19 12:50:24 - User Defined Java Expression.0 - Line 1, Column 3: Unknown variable or type "a.b" 2015/01/19 12:50:24 - User Defined Java Expression.0 - 2015/01/19 12:50:24 - User Defined Java Expression.0 - 2015/01/19 12:50:24 - User Defined Java Expression.0 - at org.pentaho.di.trans.steps.janino.Janino.processRow(Janino.java:108) 2015/01/19 12:50:24 - User Defined Java Expression.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2015/01/19 12:50:24 - User Defined Java Expression.0 - at java.lang.Thread.run(Thread.java:745) 2015/01/19 12:50:24 - User Defined Java Expression.0 - Caused by: org.pentaho.di.core.exception.KettleValueException: 2015/01/19 12:50:24 - User Defined Java Expression.0 - org.codehaus.janino.CompileException: Line 1, Column 3: Unknown variable or type "a.b" 2015/01/19 12:50:24 - User Defined Java Expression.0 - Line 1, Column 3: Unknown variable or type "a.b" 2015/01/19 12:50:24 - User Defined Java Expression.0 - 2015/01/19 12:50:24 - User Defined Java Expression.0 - at org.pentaho.di.trans.steps.janino.Janino.calcFields(Janino.java:326) 2015/01/19 12:50:24 - User Defined Java Expression.0 - at org.pentaho.di.trans.steps.janino.Janino.processRow(Janino.java:99) 2015/01/19 12:50:24 - User Defined Java Expression.0 - ... 2 more 2015/01/19 12:50:24 - User Defined Java Expression.0 - Caused by: org.codehaus.janino.CompileException: Line 1, Column 3: Unknown variable or type "a.b" 2015/01/19 12:50:24 - User Defined Java Expression.0 - at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:8185) 2015/01/19 12:50:24 - User Defined Java Expression.0 - ...
    via by FedeAF,
  • 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}
    via by Matt Tucker,
    • 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(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.findIMethod(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.access$51(UnitCompiler.java) at org.codehaus.janino.UnitCompiler$9.visitMethodInvocation(UnitCompiler.java) at org.codehaus.janino.Java$MethodInvocation.accept(Java.java) at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.compileBoolean2(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.access$31(UnitCompiler.java) at org.codehaus.janino.UnitCompiler$7.visitBinaryOperation(UnitCompiler.java) at org.codehaus.janino.Java$BinaryOperation.accept(Java.java) at org.codehaus.janino.UnitCompiler.compileBoolean(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.compileBoolean2(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.access$31(UnitCompiler.java) at org.codehaus.janino.UnitCompiler$7.visitBinaryOperation(UnitCompiler.java) at org.codehaus.janino.Java$BinaryOperation.accept(Java.java) at org.codehaus.janino.UnitCompiler.compileBoolean(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.access$44(UnitCompiler.java) at org.codehaus.janino.UnitCompiler$9.visitBinaryOperation(UnitCompiler.java) at org.codehaus.janino.Java$BinaryOperation.accept(Java.java) at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.access$17(UnitCompiler.java) at org.codehaus.janino.UnitCompiler$4.visitReturnStatement(UnitCompiler.java) at org.codehaus.janino.Java$ReturnStatement.accept(Java.java) at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.access$7(UnitCompiler.java) at org.codehaus.janino.UnitCompiler$4.visitBlock(UnitCompiler.java) at org.codehaus.janino.Java$Block.accept(Java.java) at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java) at org.codehaus.janino.UnitCompiler$3.visitPackageMemberClassDeclaration(UnitCompiler.java) at org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java) at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java) at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java) at org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java) at org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java) at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java) at org.codehaus.janino.ScriptEvaluator.cook(ScriptEvaluator.java) at org.codehaus.janino.Cookable.cook(Cookable.java) at org.codehaus.janino.Cookable.cook(Cookable.java) at org.codehaus.janino.Cookable.cook(Cookable.java) at org.codehaus.janino.ExpressionEvaluator.<init>(ExpressionEvaluator.java) at ch.qos.logback.core.boolex.JaninoEventEvaluatorBase.start(JaninoEventEvaluatorBase.java:58) at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:168) at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:315) at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:194) at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:180) at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:52) at ch.qos.logback.core.joran.spi.Interpreter.play(Interpreter.java:332) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:126) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:93) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:52) at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150) at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85) at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254) at com.shc.obu.mp.sellpo.batch.ContextListener.<clinit>(ContextListener.java:13) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.mortbay.jetty.webapp.WebXmlConfiguration.newListenerInstance(WebXmlConfiguration.java:650) at org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfiguration.java:631) at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXmlConfiguration.java:368) at org.mortbay.jetty.plus.webapp.AbstractConfiguration.initWebXmlElement(AbstractConfiguration.java:190) at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.java:289) at org.mortbay.jetty.plus.webapp.AbstractConfiguration.initialize(AbstractConfiguration.java:133) at org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfiguration.java:222) at org.mortbay.jetty.plus.webapp.AbstractConfiguration.configure(AbstractConfiguration.java:113) at org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlConfiguration.java:180) at org.mortbay.jetty.plus.webapp.AbstractConfiguration.configureWebApp(AbstractConfiguration.java:96) at org.mortbay.jetty.plus.webapp.Configuration.configureWebApp(Configuration.java:149) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1247) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441) at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383) at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210) at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:110)
    No Bugmate found.