Description
When we use a variable to identify a Hop Server in a remote workflow run configuration, we get an error at runtime:
2021/10/07 13:40:44 - process-file-remotely - Caused by: java.lang.NullPointerException2021/10/07 13:40:44 - process-file-remotely - Caused by: java.lang.NullPointerException2021/10/07 13:40:44 - process-file-remotely - at org.apache.hop.workflow.actions.workflow.ActionWorkflow.execute(ActionWorkflow.java:560)2021/10/07 13:40:44 - process-file-remotely - at org.apache.hop.workflow.Workflow.executeFromStart(Workflow.java:612)2021/10/07 13:40:44 - process-file-remotely - at org.apache.hop.workflow.Workflow.executeFromStart(Workflow.java:754)2021/10/07 13:40:44 - process-file-remotely - ... 8 more
and the following when you get past that:
Exception in thread "process-file UUID: a59153e3-e22f-4d72-94b3-72e91bda1338" java.lang.ClassCastException: org.apache.hop.workflow.engines.remote.RemoteWorkfl owEngine cannot be cast to org.apache.hop.workflow.Workflow at org.apache.hop.reflection.workflow.xp.WorkflowStartLoggingXp.callExtensionPoint(WorkflowStartLoggingXp.java:46) at org.apache.hop.core.extension.ExtensionPointMap.callExtensionPoint(ExtensionPointMap.java:149) at org.apache.hop.core.extension.ExtensionPointHandler.callExtensionPoint(ExtensionPointHandler.java:41) at org.apache.hop.workflow.actions.workflow.ActionWorkflowRunner.run(ActionWorkflowRunner.java:65) at java.lang.Thread.run(Thread.java:748)
And then...
2021/10/07 13:57:11 - /home/matt/test-stuff/scaleable-file-processing/process-file.hwf : process-file - Hop server '${HOP_SERVER}' could not be found2021/10/07 13:57:11 - /home/matt/test-stuff/scaleable-file-processing/process-file.hwf : process-file - Hop server '${HOP_SERVER}' could not be found2021/10/07 13:57:11 - /home/matt/test-stuff/scaleable-file-processing/process-file.hwf : process-file - 2021/10/07 13:57:11 - /home/matt/test-stuff/scaleable-file-processing/process-file.hwf : process-file - at org.apache.hop.workflow.engines.remote.RemoteWorkflowEngine.startExecution(RemoteWorkflowEngine.java:232)2021/10/07 13:57:11 - /home/matt/test-stuff/scaleable-file-processing/process-file.hwf : process-file - at org.apache.hop.workflow.actions.workflow.ActionWorkflowRunner.run(ActionWorkflowRunner.java:73)2021/10/07 13:57:11 - /home/matt/test-stuff/scaleable-file-processing/process-file.hwf : process-file - at java.lang.Thread.run(Thread.java:748)