BTW: if this is a Java Step - you are better off logging the error , rather than printing the error.
oLog.error( e );
(This is because you don't have full control of the output from the 'printStackTrace' - the App Server may capture this and place in a different logfile; with oLog.error ; it will show up in the PegaRules.log).
You should also check your PegaRules.log in anycase - you may have an uncaught exception in there which is generating a stack trace in there - which may give us more of a clue as to what is going on.
Posted: 5 years ago
Posted: 11 Sep 2018 6:54 EDT
John Pritchard-Williams (JOHNPW_GCS)
Client Support Team Lead
Getting below exception for the below code, when we are adding file to zip
net.lingala.zip4j.exception.ZipException:Probably not a zip file or a corrupted zip file
Note:-What happens when you run this ? Do you have a working standalone Java Project which does create the ZIP file with the password already ? - we tested this code in Java working fine