ch2dit-byte opened a new issue, #8066:
URL: https://github.com/apache/hop/issues/8066
### Apache Hop version?
2.19.0
### Java version?
openjdk 21
### Operating system
Linux
### What happened?
1. Issue Summary
When executing a workflow with the "Get a file with SFTP" action where:
SFTP Connection is configured via Hop Metadata and selected in the action,
and
Target Folder references an S3 VFS bucket/path configured in Metadata (e.g.,
xxxS3://...),
the workflow fails with a java.lang.ClassCastException at
org.apache.hop.vfs.sftp.SftpConnections.load.
Local vs. Server: The exact same workflow runs successfully in the local
Windows GUI environment (hop-gui), but consistently fails when running in
headless mode on the server (hop-run.sh inside a Docker container).
Workaround Verified: If we configure the SFTP server manually inside the
"Get a file with SFTP" action fields (directly typing IP, Port, Username,
Password) instead of referencing the registered Metadata Connection, the action
executes without any errors.
ERROR: Error getting files from SFTP : class
org.apache.hop.vfs.sftp.metadata.SftpConnection cannot be cast to class
org.apache.hop.vfs.sftp.metadata.SftpConnection
(org.apache.hop.vfs.sftp.metadata.SftpConnection is in unnamed module of loader
org.apache.hop.core.plugins.HopURLClassLoader @1a4aed07;
org.apache.hop.vfs.sftp.metadata.SftpConnection is in unnamed module of loader
org.apache.hop.core.plugins.HopURLClassLoader @b5d7233)
java.lang.ClassCastException: class
org.apache.hop.vfs.sftp.metadata.SftpConnection cannot be cast to class
org.apache.hop.vfs.sftp.metadata.SftpConnection
(org.apache.hop.vfs.sftp.metadata.SftpConnection is in unnamed module of loader
org.apache.hop.core.plugins.HopURLClassLoader @1a4aed07;
org.apache.hop.vfs.sftp.metadata.SftpConnection is in unnamed module of loader
org.apache.hop.core.plugins.HopURLClassLoader @b5d7233)
at org.apache.hop.vfs.sftp.SftpConnections.load(SftpConnections.java:47)
at
org.apache.hop.workflow.actions.sftp.ActionSftp.execute(ActionSftp.java:326)
at org.apache.hop.workflow.Workflow.executeFromStart(Workflow.java:814)
at org.apache.hop.workflow.Workflow.executeFromStart(Workflow.java:987)
at org.apache.hop.workflow.Workflow.executeFromStart(Workflow.java:506)
at org.apache.hop.workflow.Workflow.startExecution(Workflow.java:315)
at
org.apache.hop.workflow.engines.local.LocalWorkflowEngine.startExecution(LocalWorkflowEngine.java:264)
at
org.apache.hop.workflow.actions.workflow.ActionWorkflowRunner.run(ActionWorkflowRunner.java:55)
at java.base/java.lang.Thread.run(Thread.java:1583)
### Issue Priority
Priority: 3
### Issue Component
Component: Hop Server
--
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]