Skip to content

[Bug]: Java janino based component throw exception on non standard field names #7944

Description

@mhamedbenjmaa

Apache Hop version?

1.18.1

Java version?

JAVA 21

Operating system

Linux

What happened?

I have a field called "Sous-catégorie"

when i use it in a java filter or UserDefinedJavaExpression i have this error

2026/08/13 14:06:50 [Error]    Case 3.0 - Unexpected error
2026/08/13 14:06:50 [Error]    Case 3.0 - org.apache.hop.core.exception.HopValueException: 
2026/08/13 14:06:50 [Error]    Case 3.0 - org.codehaus.commons.compiler.CompileException: Line 1, Column 2: Expression "Sous" is not an rvalue
2026/08/13 14:06:50 [Error]    Case 3.0 - Line 1, Column 2: Expression "Sous" is not an rvalue
2026/08/13 14:06:50 [Error]    Case 3.0 - 
2026/08/13 14:06:50 [Error]    Case 3.0 - 	at org.apache.hop.pipeline.transforms.javafilter.JavaFilter.calcFields(JavaFilter.java:234)
2026/08/13 14:06:50 [Error]    Case 3.0 - 	at org.apache.hop.pipeline.transforms.javafilter.JavaFilter.processRow(JavaFilter.java:118)
2026/08/13 14:06:50 [Error]    Case 3.0 - 	at org.apache.hop.pipeline.transform.RunThread.run(RunThread.java:54)
2026/08/13 14:06:50 [Error]    Case 3.0 - 	at java.base/java.lang.Thread.run(Thread.java:1583)
2026/08/13 14:06:50 [Error]    Case 3.0 - Caused by: org.codehaus.commons.compiler.CompileException: Line 1, Column 2: Expression "Sous" is not an rvalue
2026/08/13 14:06:50 [Error]    Case 3.0 - 	at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:13228)
2026/08/13 14:06:50 [Error]    Case 3.0 - 	at org.codehaus.janino.UnitCompiler.toRvalueOrCompileException(UnitCompiler.java:8073)
2026/08/13 14:06:50 [Error]    Case 3.0 - 	at org.codehaus.janino.UnitCompiler.getConstantValue2(UnitCompiler.java:6053)
2026/08/13 14:06:50 [Error]    Case 3.0 - 	at org.codehaus.janino.UnitCompiler.access$11000(UnitCompiler.java:240)
2026/08/13 14:06:50 [Error]    Case 3.0 - 	at org.codehaus.janino.UnitCompiler$19$1.visitAmbiguousName(UnitCompiler.java:6004)
2026/08/13 14:06:50 [Error]    Case 3.0 - 	at org.codehaus.janino.Java$AmbiguousName.accept(Java.java:4603)
2026/08/13 14:06:50 [Error]    Case 3.0 - 	at org.codehaus.janino.UnitCompiler$19.visitLvalue(UnitCompiler.java:6003)
2026/08/13 14:06:50 [Error]    Case 3.0 - 	at org.codehaus.janino.Java$Lvalue.accept(Java.java:4528)
2026/08/13 14:06:50 [Error]    Case 3.0 - 	at org.codehaus.janino.UnitCompiler.getConstantValue(UnitCompiler.java:5999)
2026/08/13 14:06:50 [Error]    Case 3.0 - 	at org.codehaus.janino.UnitCompiler.getConstantValue2(UnitCompiler.java:6158)
2026/08/13 14:06:50 [Error]    Case 3.0 - 	at org.codehaus.janino.UnitCompiler.access$11600(UnitCompiler.java:240)
Image Image

i put it in priority one since this affecting all java bases stuff .....

Issue Priority

Priority: 1

Issue Component

Component: Transforms

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions