Purpose
This page will help you to solve problems related to failure at the attaching packages step while adding a version of an application to the CAST AIP Console.
The error encountered is IOException during extraction of archive XYZ.castextraction java.io.IOException: Truncated ZIP file
Applicable Platform
AIP Platform | Yes/No |
---|---|
CAST AIP 8.3 |
AIP Console Version | Yes/No |
---|---|
AIP Console 1.8.x or greater |
Action Plan
If while adding a version in AIP Console, it fails at the step copying and attaching packages
with below error in the attach package to version:
and the below messages in the cmsapi log file ,
Error Stack
13:46:42.531 [ForkJoinPool.commonPool-worker-2] ERROR com.castsoftware.webi.common.utils.archives.ArchiveUtils - IOException during extraction of archive XYZ.castextraction java.io.IOException: Truncated ZIP file at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.readDeflated(ZipArchiveInputStream.java:590) ~[commons-compress-1.20.jar!/:1.20] at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.read(ZipArchiveInputStream.java:488) ~[commons-compress-1.20.jar!/:1.20] at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.skip(ZipArchiveInputStream.java:655) ~[commons-compress-1.20.jar!/:1.20] at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.closeEntry(ZipArchiveInputStream.java:726) ~[commons-compress-1.20.jar!/:1.20] at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.getNextZipEntry(ZipArchiveInputStream.java:260) ~[commons-compress-1.20.jar!/:1.20] at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.getNextEntry(ZipArchiveInputStream.java:435) ~[commons-compress-1.20.jar!/:1.20] at com.castsoftware.webi.common.utils.archives.ArchiveUtils.iterate(ArchiveUtils.java:198) ~[cast-common-1.28.3-RC.jar!/:1.28.3-RC] at com.castsoftware.aip.core.services.codescanner.ExtractionFileUtils.getPlatformServerProperties(ExtractionFileUtils.java:158) ~[aip-core-services-1.28.3-RC.jar!/:1.28.3-RC] at com.castsoftware.aip.core.services.codescanner.ExtractionFileUtils.getDatabaseType(ExtractionFileUtils.java:81) ~[aip-core-services-1.28.3-RC.jar!/:1.28.3-RC] at com.castsoftware.aip.core.services.codescanner.ExtractionFileUtils.getExtractionInfo(ExtractionFileUtils.java:57) ~[aip-core-services-1.28.3-RC.jar!/:1.28.3-RC] at com.github.benmanes.caffeine.cache.LocalLoadingCache.lambda$newMappingFunction$2(LocalLoadingCache.java:141) ~[caffeine-2.8.8.jar!/:?] at com.github.benmanes.caffeine.cache.UnboundedLocalCache.lambda$computeIfAbsent$2(UnboundedLocalCache.java:238) ~[caffeine-2.8.8.jar!/:?] at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Unknown Source) ~[?:1.8.0_331] at com.github.benmanes.caffeine.cache.UnboundedLocalCache.computeIfAbsent(UnboundedLocalCache.java:234) ~[caffeine-2.8.8.jar!/:?] at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:108) ~[caffeine-2.8.8.jar!/:?] at com.github.benmanes.caffeine.cache.LocalLoadingCache.get(LocalLoadingCache.java:54) ~[caffeine-2.8.8.jar!/:?] at com.castsoftware.aip.core.services.deliveryfolder.PackageUpdateHelper.isSameExtraction(PackageUpdateHelper.java:227) ~[aip-core-services-1.28.3-RC.jar!/:1.28.3-RC] at com.castsoftware.aip.core.services.deliveryfolder.PackageUpdateHelper.lambda$findNewPath$5(PackageUpdateHelper.java:167) ~[aip-core-services-1.28.3-RC.jar!/:1.28.3-RC] at com.castsoftware.aip.core.services.deliveryfolder.PackageRootFinder.findExtractionFile(PackageRootFinder.java:31) ~[aip-core-services-1.28.3-RC.jar!/:1.28.3-RC] at com.castsoftware.aip.core.services.deliveryfolder.PackageUpdateHelper.findNewPath(PackageUpdateHelper.java:168) ~[aip-core-services-1.28.3-RC.jar!/:1.28.3-RC] at com.castsoftware.aip.core.services.deliveryfolder.PackageUpdateHelper.getPackageUpdateInfo(PackageUpdateHelper.java:100) ~[aip-core-services-1.28.3-RC.jar!/:1.28.3-RC] at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) ~[?:1.8.0_331] at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:1.8.0_331] at java.util.HashMap$KeySpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_331] at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_331] at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_331] at java.util.stream.ReduceOps$ReduceTask.doLeaf(Unknown Source) ~[?:1.8.0_331] at java.util.stream.ReduceOps$ReduceTask.doLeaf(Unknown Source) ~[?:1.8.0_331] at java.util.stream.AbstractTask.compute(Unknown Source) ~[?:1.8.0_331] at java.util.concurrent.CountedCompleter.exec(Unknown Source) ~[?:1.8.0_331] at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) ~[?:1.8.0_331] at java.util.concurrent.ForkJoinPool$WorkQueue.pollAndExecCC(Unknown Source) ~[?:1.8.0_331] at java.util.concurrent.ForkJoinPool.helpComplete(Unknown Source) ~[?:1.8.0_331] at java.util.concurrent.ForkJoinPool.awaitJoin(Unknown Source) ~[?:1.8.0_331]
Then as a workaround follow the steps described below.
- The issue occurs when the extracted file is incomplete, corrupted or bad.
Check the SQL extraction log file for the extraction file being packaged.
Perform Extraction of the SQL database again from the extractor . Please refer CAST Database Extractor
- If the problem you are facing do not match any case listed on this page, report your problem to CAST Technical Support and provide the following Relevant input for CAST Technical Support to reproduce the issue.
Notes/comments
#37490
Related Pages