You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jordan Redner <jr...@shopping.com> on 2004/10/16 00:43:29 UTC

Trapping Upload file too big ApplicationRuntimeException

Does anyone know the best way to gracefully handle the
ApplicationRunTimeException that occurs when uploading a file larger
than configured in: 

<configure property-name="maxSize" type="double" value="10000000"/>

I'd like to handle this gracefully and just present the user a warning
to retry if possible.


Thanks in advance, Jordan



An exception has occurred. 
You may continue by restarting the session. 

org.apache.tapestry.ApplicationRuntimeException 
Unable to decode request: the request was rejected because it's size
exceeds allowed range 
   
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException 
the request was rejected because it's size exceeds allowed range 
Stack Trace: 
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase
.java:317) 
org.apache.commons.fileupload.DiskFileUpload.parseRequest(DiskFileUpload
.java:245) 
org.apache.tapestry.multipart.DefaultMultipartDecoder.decode(DefaultMult
ipartDecoder.java:159) 
org.apache.tapestry.request.RequestContext.getDecoder(RequestContext.jav
a:1077) 
org.apache.tapestry.request.RequestContext.getParameter(RequestContext.j
ava:440) 
org.apache.tapestry.engine.AbstractEngine.extractServiceName(AbstractEng
ine.java:2016) 
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:84
7) 
org.apache.tapestry.ApplicationServlet 



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org