That was the porblem.  I was able to load 1.8 GB but not 2GB.  I guess it was 
too close to the setting (2147483647).  I saw that the FileUploadRequest uses 
this value to pass to the method setSizeMax of the class FileUploadBase and 
that that method accepts a long.  So I changed the DSpace code from:
 
  int maxSize = ConfigurationManager.getIntProperty("upload.max");
 
to
 
  long maxSize = ConfigurationManager.getIntProperty("upload.max");
 
And then changed to upload.max to 3147483647, but I'm seeing the same error 
when I try to create a collection.  Not sure why that would be happening since 
the type long should be able to accomodate this number.
 
-Jose

________________________________

From: Dupriez Christophe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 12, 2007 11:07 AM
To: Blanco, Jose
Subject: RE : [Dspace-tech] Increasing upload.max


Could it be that you exceed the maximum of a signed 32 bits integer?
It is 2147483647
 
Have a nice day!
 
Christophe Dupriez

"Blanco, Jose" <[EMAIL PROTECTED]> a écrit :

        I want to set upload.max to 3536870912 and test loading different file
        sizes during a submittal, but I keep getting this error when I try to
        create a collection to test this on:
        
        java.io.IOException: the request was rejected because its size (1251)
        exceeds the configured maximum (0)
        at
        org.dspace.app.webui.util.FileUploadRequest.(FileUploadRequest.jav
        a:133)
        at
        org.dspace.app.webui.servlet.admin.CollectionWizardServlet.processBasicI
        nfo(CollectionWizardServlet.java:451)
        at
        org.dspace.app.webui.servlet.admin.CollectionWizardServlet.doDSPost(Coll
        ectionWizardServlet.java:150)
        at
        org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.
        java:167)
        at
        org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105
        )
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        
        
        Is there a max to upload.max? 
        
        Thank you!
        
        Jose
        
        
-------------------------------------------------------------------------
        This SF.net email is sponsored by: Microsoft
        Defy all challenges. Microsoft(R) Visual Studio 2005.
        http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
        _______________________________________________
        DSpace-tech mailing list
        [email protected]
        https://lists.sourceforge.net/lists/listinfo/dspace-tech
        
        
        


________________________________

Ne gardez plus qu'une seule adresse mail ! Copiez vos mails 
<http://www.trueswitch.com/yahoo-fr/>  vers Yahoo! Mail 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to