Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

java.lang.NoClassDefFoundError: com/enterprisedt/net/ftp/FTPException

Hi all
I am trying to set up a tFTPConnection, with FTPS Support, using the below setup

However I am left with the following error when I try and run it:
java.lang.NoClassDefFoundError: com/enterprisedt/net/ftp/FTPException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
at java.lang.Class.getMethod0(Class.java:2813)
at java.lang.Class.getMethod(Class.java:1663)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: com.enterprisedt.net.ftp.FTPException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 6 more
Exception in thread "main"


Any ideas what is wrong?
I am running this:
"Talend Open Studio for Data Integration"
Version: 5.6.1
Build id: V5.6.1_20141207_1530
On a windows 8 64bit machine.
Labels (3)
31 Replies
Anonymous
Not applicable
Author

Do you have a file called edtftpj.jar (or similar) in your \Studio\configuration\lib\java folder?
Anonymous
Not applicable
Author

rhall yes I have that in 
C:\Talend\TOS_DI-20141207_1530-V5.6.1\configuration\lib\java
Anonymous
Not applicable
Author

Are you running it in the Studio when you get this error or as a standalone job?
Anonymous
Not applicable
Author

rhall
I am running it in the studio, using the "Run" button.
Anonymous
Not applicable
Author

rhall
I have just restarted Talend and now I am getting the following error on my tFTPRename component.
Anonymous
Not applicable
Author

For some reason it is not displaying my screenshots.....
This is the error I receive:
"com.enterprisedt cannot be resolved to a type"
Anonymous
Not applicable
Author

To publish a screenshot in this Forum, you can use either of these boxes below: one is to drop a file from your file system, the other one is to paste the image from your clipboard. Let me know if this is what you've done and still had an issue getting your screenshots displayed or if you used another way, such as the upload button from the toolbar?
Can you try to paste your FTP component configuration please?
Can you check whether the Module view suggests you to download a jar?
Can you access your FTP outside Talend (just in case the exception would be totally misleading).
Elisa
Anonymous
Not applicable
Author

Elisa
I am trying to attach a screenshot, it shows that it is displaying in the text box, but then when I hit "Submit" the image does not appear. 
(Am attempting to upload with the "Upload" button now.



This is the error I now receive:
 connecting to socket on port 3629
connected
java.io.FileNotFoundException:
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at java.io.FileInputStream.<init>(FileInputStream.java:101)
at hourly_ftp_file.hourly_file_0_1.Hourly_File$1MyTrust_tFTPConnection_1.getTrustManagers(Hourly_File.java:490)
at hourly_ftp_file.hourly_file_0_1.Hourly_File$1MyTrust_tFTPConnection_1.access$0(Hourly_File.java:478)
at hourly_ftp_file.hourly_file_0_1.Hourly_File.tFTPConnection_1Process(Hourly_File.java:509)
at hourly_ftp_file.hourly_file_0_1.Hourly_File.runJobInTOS(Hourly_File.java:5387)
at hourly_ftp_file.hourly_file_0_1.Hourly_File.main(Hourly_File.java:5244)
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
com.enterprisedt cannot be resolved to a type
com.enterprisedt cannot be resolved to a type
com.enterprisedt cannot be resolved to a type
disconnected
at hourly_ftp_file.hourly_file_0_1.Hourly_File.tFTPRename_1Process(Hourly_File.java:655)
at hourly_ftp_file.hourly_file_0_1.Hourly_File.tFTPConnection_1Process(Hourly_File.java:583)
at hourly_ftp_file.hourly_file_0_1.Hourly_File.runJobInTOS(Hourly_File.java:5387)
at hourly_ftp_file.hourly_file_0_1.Hourly_File.main(Hourly_File.java:5244)
Job Hourly_File ended at 15:22 23/07/2015.

P.S. when I hit "preview" my images do not show up either
Anonymous
Not applicable
Author

When you look at your Job design, you will notice in the bottom left there are at least 2 tabs (depending on the environment). These tabs say "Designer" and "Code". Can you click on the "Code" one and let us know if there are any red markers that appear on the right hand side of the code window once the code has generated. If there are, can you find the code that they relate to. This sounds like a classpath issue that may actually be a Talend bug.