org.codehaus.janino.CompileException: Line 1, Column 3: Unknown variable or type "a.b" Line 1, Column 3: Unknown variable or type "a.b"

Pentaho BI Platform Tracking | FedeAF | 2 years ago
  1. 0

    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 - ...

    Pentaho BI Platform Tracking | 2 years ago | FedeAF
    org.codehaus.janino.CompileException: Line 1, Column 3: Unknown variable or type "a.b" Line 1, Column 3: Unknown variable or type "a.b"
  2. 0

    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 - ...

    Pentaho BI Platform Tracking | 2 years ago | FedeAF
    org.codehaus.janino.CompileException: Line 1, Column 3: Unknown variable or type "a.b" Line 1, Column 3: Unknown variable or type "a.b"
  3. 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
  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

    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 - ...

    Pentaho BI Platform Tracking | 2 years ago | FedeAF
    org.codehaus.janino.CompileException: Line 1, Column 3: Unknown variable or type "a.b" Line 1, Column 3: Unknown variable or type "a.b"

    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 1, Column 3: Unknown variable or type "a.b" Line 1, Column 3: Unknown variable or type "a.b"

      at org.pentaho.di.trans.steps.janino.Janino.processRow()
    2. org.pentaho.di
      RunThread.run
      1. org.pentaho.di.trans.steps.janino.Janino.processRow(Janino.java:108)
      2. org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
      2 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame