[jboss-user] [JBoss Portal] - upload zip archive bug : NegativeArraySizeException
Antoine_h
do-not-reply at jboss.com
Tue Nov 28 13:05:12 EST 2006
when uploading an archive file, there is an exception :
java.lang.NegativeArraySizeException
| 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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989423#3989423
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989423
More information about the jboss-user
mailing list