Once I'm starting a groovy script I'm receiveing following error:
java.util.zip.ZipException: zip file is empty java.util.zip.ZipException: zip file is empty at java.util.zip.ZipFile$Source.zerror(ZipFile.java:1470) ~[?:?] at java.util.zip.ZipFile$Source.findEND(ZipFile.java:1284) ~[?:?] at java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1378) ~[?:?] at java.util.zip.ZipFile$Source.<init>(ZipFile.java:1209) ~[?:?] at java.util.zip.ZipFile$Source.get(ZipFile.java:1172) ~[?:?]
My question: what zip-file is the application looking for or/and how do I get rid of this error?
Bit confused. Your original post leads me to believe the error manifested when you tried running a groovy script, rather than just soapui startup, is that correct?
If the error occurs after executing a groovy step, then it follows the issue is within the groovyscript ir the file the script points to...could you publish your groovy so people can review it?
I cant remember if compile time errors occur only after selecting the groovystep or if its when the project is selected (for teardown scripts etc.)but if its being reported after soapui launches, id suggest identifying the relevant groovy by dropping each project then restarting to id which project is causing the issue. After that just follow it down by removing testsuites then testcases then teststeps until you find the problematic groovyscript. Dont forget there maybe startup/teardown, etc. scripts also.
Oh. Before doing anything create backups of your project files before you begin dropping them from the workspace. I work with readyapi!, but if soapui is the same then the projects get saved when you close the app, so you need to take backups before you start so you dont lose any work.
Once you find the problematic script you can then identify which .zip archive is the relevant one, so you can determine if it just needs repairing or if its being reported as empty due to a groovy issue.
Hope this helps!
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta