Nevermind. I see what I have to do. Thanks!
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Blanco, Jose Sent: Monday, September 17, 2007 3:16 PM To: Graham Triggs Cc: [email protected]; Dupriez Christophe Subject: Re: [Dspace-tech] RE : Increasing upload.max How does it know to apply getLongProperty to a particular parameter. Are you saying all I need to do is add this routinde getLongProperty and it will work? Thanks! -----Original Message----- From: Graham Triggs [mailto:[EMAIL PROTECTED] Sent: Thursday, September 13, 2007 4:59 AM To: Blanco, Jose Cc: Dupriez Christophe; [email protected] Subject: Re: [Dspace-tech] RE : Increasing upload.max Jose, You can't just change the variable that is used to hold the return from getIntProperty() / pass to setSizeMax(). The method getIntProperty() returns an int, and will only ever be able to return values that fit into an int. You'll need to add a getLongProperty() to the ConfigurationManager that returns a correctly parsed long value if you want to use values that exceed the capacity of an int. G On Wed, 2007-09-12 at 14:55 -0400, Blanco, Jose wrote: > 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 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 This email has been scanned by Postini. For more information please visit http://www.postini.com ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- 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

