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.
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