Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Abandoned
-
None
-
None
-
None
Description
In Execution Perspective "Edit this workflow" throws exception when execution is done via Docker container because of mapped PROJECT_HOME.
It seems the current environment variables are not used and base folder is hardcoded by the execution information.
org.apache.hop.core.exception.HopException: Error opening workflow file '/files/etl/batch_dwh_load.hwf' Unable to load the workflow from XML file [/files/etl/batch_dwh_load.hwf] Unable to read file [file:///files/etl/batch_dwh_load.hwf] Could not read from "file:///files/etl/batch_dwh_load.hwf" because it is not a file. at org.apache.hop.ui.hopgui.file.workflow.HopWorkflowFileType.openFile(HopWorkflowFileType.java:161) at org.apache.hop.ui.hopgui.delegates.HopGuiFileDelegate.fileOpen(HopGuiFileDelegate.java:108) at org.apache.hop.ui.hopgui.perspective.execution.WorkflowExecutionViewer.navigateToEditor(WorkflowExecutionViewer.java:729) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.apache.hop.ui.core.gui.BaseGuiWidgets.lambda$getListener$1(BaseGuiWidgets.java:216) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5796) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1529) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5025) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4477) at org.apache.hop.ui.hopgui.HopGui.open(HopGui.java:464) at org.apache.hop.ui.hopgui.HopGui.main(HopGui.java:351) Caused by: org.apache.hop.core.exception.HopXmlException: Unable to load the workflow from XML file [/files/etl/batch_dwh_load.hwf] Unable to read file [file:///files/etl/batch_dwh_load.hwf] Could not read from "file:///files/etl/batch_dwh_load.hwf" because it is not a file. at org.apache.hop.workflow.WorkflowMeta.loadXml(WorkflowMeta.java:456) at org.apache.hop.workflow.WorkflowMeta.<init>(WorkflowMeta.java:437) at org.apache.hop.ui.hopgui.file.workflow.HopWorkflowFileType.openFile(HopWorkflowFileType.java:142) ... 14 more Caused by: org.apache.hop.core.exception.HopXmlException: Unable to read file [file:///files/etl/batch_dwh_load.hwf] Could not read from "file:///files/etl/batch_dwh_load.hwf" because it is not a file. at org.apache.hop.core.xml.XmlHandler.loadXmlFile(XmlHandler.java:550) at org.apache.hop.core.xml.XmlHandler.loadXmlFile(XmlHandler.java:531) at org.apache.hop.workflow.WorkflowMeta.loadXml(WorkflowMeta.java:444) ... 16 more Caused by: org.apache.commons.vfs2.FileNotFoundException: Could not read from "file:///files/etl/batch_dwh_load.hwf" because it is not a file. at org.apache.commons.vfs2.provider.AbstractFileObject.getInputStream(AbstractFileObject.java:1199) at org.apache.commons.vfs2.provider.AbstractFileObject.getInputStream(AbstractFileObject.java:1184) at org.apache.commons.vfs2.provider.DefaultFileContent.buildInputStream(DefaultFileContent.java:500) at org.apache.commons.vfs2.provider.DefaultFileContent.getInputStream(DefaultFileContent.java:342) at org.apache.hop.core.vfs.HopVfs.getInputStream(HopVfs.java:271) at org.apache.hop.core.xml.XmlHandler.loadXmlFile(XmlHandler.java:548) ... 18 more Caused by: java.io.FileNotFoundException: /files/etl/batch_dwh_load.hwf (File o directory non esistente) at java.base/java.io.FileInputStream.open0(Native Method) at java.base/java.io.FileInputStream.open(FileInputStream.java:219) at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) at org.apache.commons.vfs2.provider.local.LocalFile.doGetInputStream(LocalFile.java:105) at org.apache.commons.vfs2.provider.AbstractFileObject.getInputStream(AbstractFileObject.java:1197) ... 23 more