4 Replies Latest reply on Dec 4, 2006 12:00 PM by roy.russo

    upload zip archive bug : NegativeArraySizeException

    Antoine Herzog Master

      when uploading an archive file, there is an exception :

       at org.jboss.portal.cms.impl.jcr.command.StoreArchiveCommand.execute(StoreArchiveCommand.java:72)
       at org.jboss.portal.cms.impl.jcr.JCRCommand.dispatch(JCRCommand.java:61)

      It is because of the zipEntry.getSize() that return -1 (unknown size).
      this is because of the use of ZipInputStream class.
      there is a turnaround with using the ZipFile class instead.
      see : http://forum.java.sun.com/thread.jspa?threadID=492219&messageID=2316626

      I have opened a jira for this.