You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "Vlad Rozov (JIRA)" <ji...@apache.org> on 2017/03/31 02:34:41 UTC

[jira] [Commented] (APEXCORE-686) AppPackage fails when .apa contains zero length stored entry

    [ https://issues.apache.org/jira/browse/APEXCORE-686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15950217#comment-15950217 ] 

Vlad Rozov commented on APEXCORE-686:
-------------------------------------

The solution is to use ZipArchiveInputStream instead of JarInputStream that allows to support such files.

> AppPackage fails when .apa contains zero length stored entry
> ------------------------------------------------------------
>
>                 Key: APEXCORE-686
>                 URL: https://issues.apache.org/jira/browse/APEXCORE-686
>             Project: Apache Apex Core
>          Issue Type: Bug
>            Reporter: Vlad Rozov
>            Assignee: Vlad Rozov
>             Fix For: 3.6.0
>
>
> JarInputStream/ZipInputStream does not support valid formats of .jar/.zip file
> {noformat}
> java.util.zip.ZipException: only DEFLATED entries can have EXT descriptor
> 	at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:309)
> 	at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:121)
> 	at java.util.jar.JarInputStream.<init>(JarInputStream.java:83)
> 	at java.util.jar.JarInputStream.<init>(JarInputStream.java:62)
> 	at com.datatorrent.stram.client.AppPackage.<init>(AppPackage.java:215)
> 	at com.datatorrent.stram.client.AppPackage.<init>(AppPackage.java:196)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)