GitHub user UEMravamo added a comment to the discussion: User Java Class Step 
"Cannot determine simple type name "StepMetaInterface""

Thanks @bamaer  and good afternoon and happy week community !
I'm almost done with the examples, and now I wanted to add one that returns 
more than one result, but I'm getting a strange error:

> "Unable to find Out field helper for field name 'null'" .

I think it might be related to what you mentioned about the parameters, but I 
copied the code (Java file attached), and I'm not sure if the issue is caused 
by the variable I'm passing into putRow.
```
2025/04/07 13:34:58 - java - Execution started for pipeline [java]
2025/04/07 13:34:59 - Generate Rows.0 - Finished processing (I=0, O=0, R=0, 
W=10, U=0, E=0)
java.lang.RuntimeException: org.apache.hop.core.exception.HopTransformException:
Unable to find Out field helper for field name 'null'

        at Processor.processRow(Unknown Source)
        at 
org.apache.hop.pipeline.transforms.userdefinedjavaclass.UserDefinedJavaClass.processRow(UserDefinedJavaClass.java:911)
        at org.apache.hop.pipeline.transform.RunThread.run(RunThread.java:54)
        at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: org.apache.hop.core.exception.HopTransformException:
Unable to find Out field helper for field name 'null'

        at 
org.apache.hop.pipeline.transforms.userdefinedjavaclass.TransformClassBase.get(TransformClassBase.java:621)
        ... 4 more
2025/04/07 13:34:59 - uppercase.0 - ERROR: Unexpected error
2025/04/07 13:34:59 - uppercase.0 - ERROR: java.lang.RuntimeException: 
org.apache.hop.core.exception.HopTransformException:
2025/04/07 13:34:59 - uppercase.0 - Unable to find Out field helper for field 
name 'null'
2025/04/07 13:34:59 - uppercase.0 -
2025/04/07 13:34:59 - uppercase.0 -     at Processor.processRow(Unknown Source)
2025/04/07 13:34:59 - uppercase.0 -     at 
org.apache.hop.pipeline.transforms.userdefinedjavaclass.UserDefinedJavaClass.processRow(UserDefinedJavaClass.java:911)
2025/04/07 13:34:59 - uppercase.0 -     at 
org.apache.hop.pipeline.transform.RunThread.run(RunThread.java:54)
2025/04/07 13:34:59 - uppercase.0 -     at 
java.base/java.lang.Thread.run(Thread.java:1583)
2025/04/07 13:34:59 - uppercase.0 - Caused by: 
org.apache.hop.core.exception.HopTransformException:
2025/04/07 13:34:59 - uppercase.0 - Unable to find Out field helper for field 
name 'null'
2025/04/07 13:34:59 - uppercase.0 -
2025/04/07 13:34:59 - uppercase.0 -     at 
org.apache.hop.pipeline.transforms.userdefinedjavaclass.TransformClassBase.get(TransformClassBase.java:621)
2025/04/07 13:34:59 - uppercase.0 -     ... 4 more
2025/04/07 13:34:59 - uppercase.0 - Finished processing (I=0, O=0, R=1, W=0, 
U=0, E=1)
2025/04/07 13:34:59 - java - Pipeline duration : 0.095 seconds [  0.095" ]
```


```java
String firstnameField;
String lastnameField;
String nameField;
String dataField;

public boolean processRow() throws HopException {

    if (first) {
        firstnameField = getParameter("FIRSTNAME_FIELD");
        lastnameField = getParameter("LASTNAME_FIELD");
        nameField = getParameter("NAME_FIELD");
        dataField = getParameter("DATA_FIELD");
        first = false;
    }

    Object[] r = getRow();
    if (r == null) {
        setOutputDone();
        return false;
    }

    Object[] outputRow = createOutputRow(r, data.outputRowMeta.size());


        // Get input Fields
        String firstname = get(Fields.In, firstnameField).getString(r);
        String lastname = get(Fields.In, lastnameField).getString(r);

          // set output Fields
        String name = firstname + lastname;
        get(Fields.Out, nameField).setValue(outputRow, name);
        
        // It works fine if I comment out those lines, but as soon as I include 
them again, the error shows up.
        String dat = lastname + firstname ;
        get(Fields.Out, dataField).setValue(outputRow, dat);

        // Enviar la fila al siguiente paso
        putRow(data.outputRowMeta, outputRow);

        return true;

}```





GitHub link: 
https://github.com/apache/hop/discussions/5117#discussioncomment-12750348

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to