You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "windrek (via GitHub)" <gi...@apache.org> on 2025/12/17 07:59:11 UTC

[I] [Bug]: Process files step using VFF FTP command fails with java.lang.NoClassDefFoundError: org/apache/commons/net/ProtocolCommandListener (hop)

windrek opened a new issue, #6221:
URL: https://github.com/apache/hop/issues/6221

   ### Apache Hop version?
   
   2.16
   
   ### Java version?
   
   openjdk version "17.0.17" 2025-10-21 LTS
   
   ### Operating system
   
   Windows
   
   ### What happened?
   
   Process files step fails when trying to copy file to FTP server.
   Operation is Copy.
   Target filename is in format ftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz
   Source filename C:\data\test\filename.csv
   
   I used same target filename in Pentoho 9.3 process files step (java 11) and it worked. So it is not FTP problem.
   
   Error came out during migration from Pentaho to Hop.
   
   2025/12/17 09:54:34 - Process files.0 - ERROR: Unexpected error
   2025/12/17 09:54:34 - Process files.0 - ERROR: java.lang.NoClassDefFoundError: org/apache/commons/net/ProtocolCommandListener
   2025/12/17 09:54:34 - Process files.0 - 	at org.apache.commons.vfs2.provider.ftp.FtpClientFactory.createConnection(FtpClientFactory.java:313)
   2025/12/17 09:54:34 - Process files.0 - 	at org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.createClient(FTPClientWrapper.java:123)
   2025/12/17 09:54:34 - Process files.0 - 	at org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.createClient(FTPClientWrapper.java:108)
   2025/12/17 09:54:34 - Process files.0 - 	at org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.getFtpClient(FTPClientWrapper.java:169)
   2025/12/17 09:54:34 - Process files.0 - 	at org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.<init>(FTPClientWrapper.java:63)
   2025/12/17 09:54:34 - Process files.0 - 	at org.apache.commons.vfs2.provider.ftp.FtpFileProvider.doCreateFileSystem(FtpFileProvider.java:71)
   2025/12/17 09:54:34 - Process files.0 - 	at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:100)
   2025/12/17 09:54:34 - Process files.0 - 	at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:60)
   2025/12/17 09:54:34 - Process files.0 - 	at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:83)
   2025/12/17 09:54:34 - Process files.0 - 	at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:795)
   2025/12/17 09:54:34 - Process files.0 - 	at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:761)
   2025/12/17 09:54:34 - Process files.0 - 	at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:826)
   2025/12/17 09:54:34 - Process files.0 - 	at org.apache.hop.core.vfs.HopVfs.getFileObject(HopVfs.java:231)
   2025/12/17 09:54:34 - Process files.0 - 	at org.apache.hop.pipeline.transforms.processfiles.ProcessFiles.processRow(ProcessFiles.java:105)
   2025/12/17 09:54:34 - Process files.0 - 	at org.apache.hop.pipeline.transform.RunThread.run(RunThread.java:54)
   2025/12/17 09:54:34 - Process files.0 - 	at java.base/java.lang.Thread.run(Thread.java:840)
   2025/12/17 09:54:34 - Process files.0 - Caused by: java.lang.ClassNotFoundException: org.apache.commons.net.ProtocolCommandListener
   2025/12/17 09:54:34 - Process files.0 - 	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
   2025/12/17 09:54:34 - Process files.0 - 	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
   2025/12/17 09:54:34 - Process files.0 - 	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
   2025/12/17 09:54:34 - Process files.0 - 	... 16 more
   
   ### Issue Priority
   
   Priority: 2
   
   ### 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: issues-unsubscribe@hop.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Process files step using VFS FTP command fails with java.lang.NoClassDefFoundError: org/apache/commons/net/ProtocolCommandListener (hop)

Posted by "windrek (via GitHub)" <gi...@apache.org>.
windrek commented on issue #6221:
URL: https://github.com/apache/hop/issues/6221#issuecomment-3664463725

   I copied the commons-net file to lib/core as suggested.
   Process files worked now, thank you.
   
   I will attach pipeline used for testing.
   Ftp server used is sftpcloud.io/tools/free-ftp-server.
   Local file path and ftp credentials should be replaced in "Generate rows" 
   
   [testProcessFile.zip](https://github.com/user-attachments/files/24209171/testProcessFile.zip)
   


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Process files step using VFS FTP command fails with java.lang.NoClassDefFoundError: org/apache/commons/net/ProtocolCommandListener (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva closed issue #6221: [Bug]: Process files step using VFS FTP command fails with java.lang.NoClassDefFoundError: org/apache/commons/net/ProtocolCommandListener
URL: https://github.com/apache/hop/issues/6221


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Process files step using VFS FTP command fails with java.lang.NoClassDefFoundError: org/apache/commons/net/ProtocolCommandListener (hop)

Posted by "bamaer (via GitHub)" <gi...@apache.org>.
bamaer commented on issue #6221:
URL: https://github.com/apache/hop/issues/6221#issuecomment-3664164176

   A pipeline with a reproduction path would help, but it looks like you should be able to get around this by copying `plugins/actions/ftp/lib/commons-net-3.9.0.jar` to `lib/core`. That's not a real fix, but if this works as a workaround, you should be able to continue. 


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org