Skip to Content
0

Error while unzipping files using groovy script

Dec 26, 2017 at 01:34 PM

86

avatar image

Hi Experts,

I have a scenario SFTP-HCI-SFTP. I need to unzip the files and place them in target SFTP. Inorder to achieve the same followed the blog. But encountered with an error java.lang,NoSuchMethodException : No signature of method. Please find the screen shot for the same.

capture.jpg (27.4 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Evgeniy Kolmakov Dec 26, 2017 at 02:17 PM
0

Hi Pallavi!

Wouldn't you please provide your source code?

Regards, Evgeniy.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Evgeniy,

Please find the attached source code imp.txt

imp.txt (3.5 kB)
0
Naresh Dasika Dec 26, 2017 at 01:45 PM
0

Hello Pallavi,

Please make sure that the method/function (read/write/unzip data) that you were using as part of script should have the relevant package/library imported.

Regards,

Naresh

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Naresh,

I have imported the following libraries. Please let me know if I am missing anything.

import com.sap.gateway.ip.core.customdev.util.Message;
import java.util.HashMap;
import java.nio.file.FileSystem;
import java.nio.file.Path;
import java.nio.file.Files;
import java.nio.file.SimpleFileVisitor;
import java.nio.file.FileVisitResult;
import java.nio.file.attribute.BasicFileAttributes;
import java.nio.file.StandardCopyOption;
import java.nio.file.Paths;

Thanks in Advance

Pallavi

0