point1234 opened a new issue, #4859: URL: https://github.com/apache/hop/issues/4859
### What would you like to happen? I've created a User Defined Java Class, that invokes a External JAR i've developed. The External JAR returns an INTEGER, that my User Defined Java class tries to assign to and Integer variable defined on the Fields Tab. No mather what id, i'm allways getting the error `2025/02/03 15:35:43 - test_sid - Caused by: com.fasterxml.jackson.databind.JsonMappingException: sid Integer : There was a data type error: the data type of java.lang.Integer object [8024] does not correspond to value meta [Integer] (through reference chain: org.apache.hop.execution.ExecutionData["rowsBinaryGzipBase64Encoded"]) 2025/02/03 15:35:43 - test_sid - at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:402) 2025/02/03 15:35:43 - test_sid - at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:361) 2025/02/03 15:35:43 - test_sid - at com.fasterxml.jackson.databind.ser.std.StdSerializer.wrapAndThrow(StdSerializer.java:323) 2025/02/03 15:35:43 - test_sid - at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:780) 2025/02/03 15:35:43 - test_sid - at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:178) 2025/02/03 15:35:43 - test_sid - at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:479) 2025/02/03 15:35:43 - test_sid - at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:318) 2025/02/03 15:35:43 - test_sid - at com.fasterxml.jackson.databind.ObjectWriter$Prefetch.serialize(ObjectWriter.java:1572) 2025/02/03 15:35:43 - test_sid - at com.fasterxml.jackson.databind.ObjectWriter._writeValueAndClose(ObjectWriter.java:1273) 2025/02/03 15:35:43 - test_sid - at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:1098) 2025/02/03 15:35:43 - test_sid - at org.apache.hop.execution.local.FileExecutionInfoLocation.registerData(FileExecutionInfoLocation.java:340) 2025/02/03 15:35:43 - test_sid - ... 11 more 2025/02/03 15:35:43 - test_sid - Caused by: java.lang.RuntimeException: sid Integer : There was a data type error: the data type of java.lang.Integer object [8024] does not correspond to value meta [Integer] 2025/02/03 15:35:43 - test_sid - at org.apache.hop.core.row.value.ValueMetaBase.writeData(ValueMetaBase.java:3228) 2025/02/03 15:35:43 - test_sid - at org.apache.hop.core.row.RowMeta.writeData(RowMeta.java:719) 2025/02/03 15:35:43 - test_sid - at org.apache.hop.execution.ExecutionData.getRowsBinaryGzipBase64Encoded(ExecutionData.java:189) 2025/02/03 15:35:43 - test_sid - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2025/02/03 15:35:43 - test_sid - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) 2025/02/03 15:35:43 - test_sid - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2025/02/03 15:35:43 - test_sid - at java.base/java.lang.reflect.Method.invoke(Method.java:568) 2025/02/03 15:35:43 - test_sid - at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:688) 2025/02/03 15:35:43 - test_sid - at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:772) 2025/02/03 15:35:43 - test_sid - ... 18 more` If i change the definition of the variable on the Fields tab to String, works fine. But it's not the ideal solution. I tried to adapt my Java Class to PentaHo, and i get the exact same error... ### Issue Priority Priority: 3 ### Issue Component Component: Transforms -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
