[jboss-jira] [JBoss JIRA] Commented: (JBPORTAL-1146) java.lang.NegativeArraySizeException in uploading zip archive

Thomas Heute (JIRA) jira-events at lists.jboss.org
Fri Aug 10 06:59:30 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBPORTAL-1146?page=comments#action_12371712 ] 
            
Thomas Heute commented on JBPORTAL-1146:
----------------------------------------

Please Antoine, keep in mind that when you contribute your work, it's there to stay.

It means that we maintain it, and you don't have to worry about merging (with potential modifications) your changes again and again across versions, so usually it worths the little extra time to get a good diff and add a little bit of configuration.

We are all extremely busy so if you send it like this it will unfortunately will probably never get integrated.

It seems that you are loosing time to migrate while you could probably move more stuff on the Portal SVN end and then not have to worry about migration.

> java.lang.NegativeArraySizeException in uploading zip archive
> -------------------------------------------------------------
>
>                 Key: JBPORTAL-1146
>                 URL: http://jira.jboss.com/jira/browse/JBPORTAL-1146
>             Project: JBoss Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Portal CMS
>    Affects Versions: 2.4 Final
>         Environment: Windows XP / JBP 2.4
>            Reporter: Antoine Herzog
>         Assigned To: Sohil Shah
>             Fix For: 2.8 Final, 2.4.2 Final, 2.6.2 Final
>
>         Attachments: StoreArchiveCommand.java
>
>   Original Estimate: 2 hours
>  Remaining Estimate: 2 hours
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list