Hi, I was tinkering with the Cocoon core.properties config today,
attempting to increase the value for org.apache.cocoon.uploads.maxsize,
however, I had a difficult time increasing the default value, without
crashing Cocoon. Here's the error message I saw:

javax.servlet.ServletException: For input string: "858993459200"
        
org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappSe
rvletFilter.java:85)
root cause

java.lang.NumberFormatException: For input string: "858993459200"
        
java.lang.NumberFormatException.forInputString(NumberFormatException.java:
48)
        java.lang.Integer.parseInt(Integer.java:461)
        java.lang.Integer.valueOf(Integer.java:554)
        
org.apache.cocoon.servlet.multipart.MultipartConfigurationHelper.configure
(MultipartConfigurationHelper.java:135)
        
org.apache.cocoon.servlet.multipart.MultipartFilter.configure(MultipartFil
ter.java:93)
        
org.apache.cocoon.servlet.multipart.MultipartFilter.doFilter(MultipartFilt
er.java:110)
        
org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappSe
rvletFilter.java:78)


I know, I know, who is ever going to post an 800GB file? My goal was to
increase the limit very high, so I no longer need to hear about uploads
timing out from my repository and community managers.

I'm looking for any documentation on this setting for Cocoon, but google
keeps pointing me to message threads such as this one. I figure this
thread is new enough, and Jose and Tim won't mind me resurrecting it.

So, would anyone know how large I can configure this setting without
blowing anything up? :-) Thanks!

--

HARDY POTTINGER <pottinge...@umsystem.edu>
University of Missouri Library Systems
http://lso.umsystem.edu/~pottingerhj/
https://MOspace.umsystem.edu/
"I think I like disruptive technology because
it makes the whole world a bit fuzzy, my
normal state of mind."
-- Robert Llewellyn (aka Kryten)





On 12/1/11 9:59 AM, "Tim Donohue" <tdono...@duraspace.org> wrote:

>Jose,
>
>You are correct.  The 'upload.max' setting is only used by JSPUI.
>
>The XMLUI uses it's cocoon configuration to set the maximum upload size
>(as that's a setting in Cocoon itself).  This setting can be found at:
>
>[dspace-src]/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/WEB-INF/coco
>on/properties/core.properties
>
>This file contains all the Apache Cocoon default configurations that
>are utilized by the XMLUI.
>
>The specific setting you are looking for in that file is this one:
>org.apache.cocoon.uploads.maxsize=1000000000
>
>By default it is set to 10MB maximum file size.  But, you can increase
>that value as needed.
>
>- Tim
>
>On Wednesday, November 30, 2011 10:34:39 AM, Blanco, Jose wrote:
>> Is the dspace.cfg  parameter upload.max used in xmlui?  I only see it
>>being used in the jspui.  If it's not, what is the max?
>>
>> Thank you!
>> Jose
>>
>> 
>>-------------------------------------------------------------------------
>>-----
>> All the data continuously generated in your IT infrastructure
>> contains a definitive record of customers, application performance,
>> security threats, fraudulent activity, and more. Splunk takes this
>> data and makes sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-novd2d
>> _______________________________________________
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>--------------------------------------------------------------------------
>----
>All the data continuously generated in your IT infrastructure
>contains a definitive record of customers, application performance,
>security threats, fraudulent activity, and more. Splunk takes this
>data and makes sense of it. IT sense. And common sense.
>http://p.sf.net/sfu/splunk-novd2d
>_______________________________________________
>DSpace-tech mailing list
>DSpace-tech@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/dspace-tech


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to