Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Hamza011
Contributor
Contributor

Problem with tFTPGET (STAT ERROR)

i have an issue with tFTPGet when moving files from SFTP to local directory, it works for the first iterate but it doesnt work for the second, i got this error : 

Exception in component tFTPGet_1 
3: STAT error
at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2827)
at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:2195)
at com.jcraft.jsch.ChannelSftp.cd(ChannelSftp.java:344)

Hamza011_0-1721048984905.png

 

Labels (2)
6 Replies
Hamza011
Contributor
Contributor
Author

please some support for this issue 

Xiaodi_Shi
Support
Support

Hello,

From your error message printed on console, we see you introduced tJava component in your workflow and got java.lang.NullPointerException issue.

Please go to the 'Code' tab to see if there will be the line with the red error. You can inspect the generated Java code there.

Best regards

Sabrina

 

Shicong_Hong
Support
Support

@Hamza011 can you share a screenshot of basic settings of tFTPGet? For debugging, only keep tFTPList--iterate--tFTPGet, deactivate other components to see if the problem still exists?

 

Hamza011
Contributor
Contributor
Author

the issue still exists :  

Hamza011_0-1722332208102.png

 

jlolling
Creator III
Creator III

A STAT error means the file or directory which should be downloaded does not exists anymore on the server. You change to a directory and it looks like this directory does not exist. Perhaps it is a problem from where you are coming and how to reach your desired folder.

Or do you have checked no other process is working with your server files and potentially moves the away?

jlolling
Creator III
Creator III

One strange thing is also the tFTPFileList component. Please take care the option "File detail" is unchecked. Unfortunately this option cause the file name delivered by the return value CURRENT_FILE to become the file string with file rights and attributes + file name itself. Clearly this cannot be used later as file name to download.

Talend had set this option to be checked per default in a former update and damaged this way a lot of jobs.