This error i have faced in past because of access issue, check user has access on to the file document entity that is being passed to java action.
The error message is saying a parameter is empty. This could mean the creation of the zip file failed so there is nothing to return to the user.
I suggest adding a breakpoint before the download to see if the file exists.
Good luck!