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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...