Pentaho

 View Only

 [Pentaho 9.3] - Issues during instantiation of UserDefinedJavaClass steps

Enrique del Pino's profile image
Enrique del Pino posted 08-08-2022 15:45

Hi all,

Us at The National Archives have been trying to test our workflows, originally developed on Pentaho 9.1, over Pentaho 9.3, to take advantage of some of the bugfixes introduced in this version, but we have noticed the workflows that originally ran without issues on 9.1 are failing on 9.3.

Currently we are looking at an issue where a UserDefinedJavaClass step is in use, at the point where the initialization of this step is done, this fails. More exactly this happens when a new instance is going to be created using reflection. We have debugged the execution and traced down the point of error to the class UserDefinedJavaClassMeta::newChildInstance, line 228. This throws an java.lang.reflect.InvocationTargetException. This exception in turn contains a target: "KettleStepException".

I have tried to compare the executions of this code in both 9.1 and 9.3, and all the pre-requisites and parameters of this method are entirely identical. In addition to this, we've tried to run 9.3 on both Java 8 and Java 11 (actually on two different implementations) to discard this would be a JDK derived problem. Pentaho 9.1 was run on Java 8.

I am at a lost at this point trying to figure out what is actually causing this issue, so any help is appreciated as this is really a blocker for our migration. I have added a copy of the workflow that can be ran to replicate the issue.

Kind Regards,

Enrique