CA Common Services CAUNZIP JCL fails with "CAZIP16E:  java.util.zip.ZipException: error in opening zip file"

book

Article ID: 195034

calendar_today

Updated On:

Products

CA Common Services for z/OS

Issue/Introduction

After install of solution SO08328 to correct CA Commons Service 14.1 problem of 0 files being created, the CAUNZIP JCL is successful for unzip of CCS150_BASE.zip but fails for unzip of CCS150 PTF zip files with error:
"CAZIP16E:  java.io.EOFException: Unexpected end of ZLIB input stream"
A later test then shows the message changes to:
"CAZIP16E:  java.util.zip.ZipException: error in opening zip file"

The job log shows:
===

 CAUNZIP ZIPPATH(/usr/lpp/CAI2)     ZIPFILE(CCS150_PTF.zip)               JAVAPATH(/java/J7/J7.0_64/) TEMPHLQ(ISVM)

 CAUNZIP r14.1  (05/08/19)

 Allocating temporary PTF dataset 'ISVM.TMPPTF.D20192.T142323'.
 Allocating temporary HOLD dataset 'ISVM.TMPHLD.D20192.T142323'.
 Creating directory '/usr/lpp/CAI2/CCS150_PTF/'.

 CAZIP16E: Shell Command export PATH=/java/J7/J7.0_64/bin:$PATH;cd /usr/lpp/CAI2/;jar -tvf CCS150_PTF.zip failed with RC=1.
 CAZIP16E:  java.util.zip.ZipException: error in opening zip file
 CAZIP16E:   at java.util.zip.ZipFile.open(Native Method)
 CAZIP16E:   at java.util.zip.ZipFile.<init>(ZipFile.java:219)
 CAZIP16E:   at java.util.zip.ZipFile.<init>(ZipFile.java:149)
 CAZIP16E:   at java.util.zip.ZipFile.<init>(ZipFile.java:120)
 CAZIP16E:   at sun.tools.jar.Main.list(Main.java:1004)
 CAZIP16E:   at sun.tools.jar.Main.run(Main.java:245)
 CAZIP16E:   at sun.tools.jar.Main.main(Main.java:1177)
 READY
 END
===

CCS150_PTF.zip had been downloaded from the Support Portal and uploaded from PC to z/OS using ftp.

Environment

Release : 14.1
Component : CCS390 - CA COMMON SERVICES FOR Z/OS

Resolution

The same error was received when running "jar -tvf" directly on CCS150_PTF.zip in USS outside of CAUNZIP

The original PTF file downloaded from support portal 18744224_PTF.zip was confirmed as being valid on PC by support.
Also support were able to ftp to USS (binary format) and successfully run "jar -tvf" and CAUNZIP on it.
Comparing values for file size and checksum generated by support (command "cksum 18744224_PTF.zip"), a difference was found.
The original file CCS150_PTF.zip was deleted and 18744224_PTF.zip was uploaded again via ftp from the PC using binary format.
The problem was then resolved.