You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by nazarhussain_s <na...@gmail.com> on 2012/05/09 15:16:33 UTC

Error on overriding file upload limit

Hi,
    I am using Tapestry 4.0 in my project.Currently In my application I get
the following exception on uploading larger documents of size more than 5 MB 


org.apache.hivemind.ApplicationRuntimeException: Unable to decode multipart
encoded request: the request was rejected because it's size exceeds allowed
range
        at
org.apache.tapestry.multipart.MultipartDecoderImpl.decode(MultipartDecoderImpl.java:75)
        at
$MultipartDecoder_1370dab9d2b.decode($MultipartDecoder_1370dab9d2b.java)
        at
$MultipartDecoder_1370dab9d2c.decode($MultipartDecoder_1370dab9d2c.java)
        at
org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:50)
        at
$ServletRequestServicerFilter_1370dab9d0b.service($ServletRequestServicerFilter_1370dab9d0b.java)
        at
$ServletRequestServicer_1370dab9d13.service($ServletRequestServicer_1370dab9d13.java)
        at
org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53)
        at
$ServletRequestServicerFilter_1370dab9d0f.service($ServletRequestServicerFilter_1370dab9d0f.java)
        at
$ServletRequestServicer_1370dab9d13.service($ServletRequestServicer_1370dab9d13.java)
        at
$ServletRequestServicer_1370dab9d05.service($ServletRequestServicer_1370dab9d05.java)
        at
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:123)
        at
org.apache.tapestry.ApplicationServlet.doPost(ApplicationServlet.java:168)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at
com.hp.eclaims.web.utils.RefreshSessionAttributesFilter.doFilter(RefreshSessionAttributesFilter.java:48)
        at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at
com.hp.eclaims.web.aa.NDCResetFilter.doFilter(NDCResetFilter.java:37)
        at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
        at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
        at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused by:
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the
request was rejected because it's size exceeds allowed range
        at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:317)
        at
org.apache.commons.fileupload.DiskFileUpload.parseRequest(DiskFileUpload.java:245)
        at
org.apache.tapestry.multipart.MultipartDecoderImpl.decode(MultipartDecoderImpl.java:68)
        ... 31 more


To resolve this, I have added the following lines of code in my
XProject.application file.

Currently I am getting the following error with these lines of code 
<extension name="org.apache.tapestry.multipart-decoder" immediate="no"
               
class="org.apache.tapestry.multipart.DefaultMultipartDecoder">
        <configure property-name="maxSize" type="double" value="134217728"/>      
    </extension>

org.apache.tapestry.util.xml.DocumentParseException: Unable to read
context:/WEB-INF/Genesis.application: Attribute "property" is required and
must be specified for element type "configure".
[context:/WEB-INF/XProject.application, line 108, column 77]
	at
org.apache.tapestry.parse.SpecificationParser.parseDocument(SpecificationParser.java:1672)
	at
org.apache.tapestry.parse.SpecificationParser.parseApplicationSpecification(SpecificationParser.java:1612)
	at
$ISpecificationParser_13731bb6443.parseApplicationSpecification($ISpecificationParser_13731bb6443.java)
	at
$ISpecificationParser_13731bb6444.parseApplicationSpecification($ISpecificationParser_13731bb6444.java)
	at
$ISpecificationParser_13731bb6445.parseApplicationSpecification($ISpecificationParser_13731bb6445.java)
	at
org.apache.tapestry.services.impl.ApplicationSpecificationInitializer.initialize(ApplicationSpecificationInitializer.java:63)


Any help or clue about how to resolve the above exception and/or the issue
with large sized uploads  would be welcome

Regards
Nazar






--
View this message in context: http://tapestry.1045711.n5.nabble.com/Error-on-overriding-file-upload-limit-tp5697351.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: Error on overriding file upload limit

Posted by nazarhussain_s <na...@gmail.com>.
<extension name="org.apache.tapestry.multipart-decoder" immediate="no"
class="org.apache.tapestry.multipart.DefaultMultipartDecoder"> 
        <configure property-name="maxSize" type="double" value="134217728"/> 
    </extension> 

Hi, Currently In this class i have property name and I have less knowledge
on how to add a property attribute here whether the property-name and
property are one and same or do I have to add another attribute property
here and what value do I have to assign to that attribute.If I change
property-name as property and on re-running the server I am getting the
error as type attribute is missing. I am clueless how to proceed with the
extension tag, Any example for this will help me a lot..

Regards
Nazar

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Error-on-overriding-file-upload-limit-tp5697351p5702110.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: Error on overriding file upload limit

Posted by Howard Lewis Ship <hl...@gmail.com>.
Did you actually read the exception message at the bottom?

On Wed, May 9, 2012 at 6:16 AM, nazarhussain_s <na...@gmail.com> wrote:
> Hi,
>    I am using Tapestry 4.0 in my project.Currently In my application I get
> the following exception on uploading larger documents of size more than 5 MB
>
>
> org.apache.hivemind.ApplicationRuntimeException: Unable to decode multipart
> encoded request: the request was rejected because it's size exceeds allowed
> range
>        at
> org.apache.tapestry.multipart.MultipartDecoderImpl.decode(MultipartDecoderImpl.java:75)
>        at
> $MultipartDecoder_1370dab9d2b.decode($MultipartDecoder_1370dab9d2b.java)
>        at
> $MultipartDecoder_1370dab9d2c.decode($MultipartDecoder_1370dab9d2c.java)
>        at
> org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:50)
>        at
> $ServletRequestServicerFilter_1370dab9d0b.service($ServletRequestServicerFilter_1370dab9d0b.java)
>        at
> $ServletRequestServicer_1370dab9d13.service($ServletRequestServicer_1370dab9d13.java)
>        at
> org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53)
>        at
> $ServletRequestServicerFilter_1370dab9d0f.service($ServletRequestServicerFilter_1370dab9d0f.java)
>        at
> $ServletRequestServicer_1370dab9d13.service($ServletRequestServicer_1370dab9d13.java)
>        at
> $ServletRequestServicer_1370dab9d05.service($ServletRequestServicer_1370dab9d05.java)
>        at
> org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:123)
>        at
> org.apache.tapestry.ApplicationServlet.doPost(ApplicationServlet.java:168)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>        at
> weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
>        at
> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
>        at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
>        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
>        at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
>        at
> com.hp.eclaims.web.utils.RefreshSessionAttributesFilter.doFilter(RefreshSessionAttributesFilter.java:48)
>        at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
>        at
> com.hp.eclaims.web.aa.NDCResetFilter.doFilter(NDCResetFilter.java:37)
>        at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
>        at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
>        at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
>        at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
>        at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
>        at
> weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
>        at
> weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
>        at
> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
>        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
>        at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
> Caused by:
> org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the
> request was rejected because it's size exceeds allowed range
>        at
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:317)
>        at
> org.apache.commons.fileupload.DiskFileUpload.parseRequest(DiskFileUpload.java:245)
>        at
> org.apache.tapestry.multipart.MultipartDecoderImpl.decode(MultipartDecoderImpl.java:68)
>        ... 31 more
>
>
> To resolve this, I have added the following lines of code in my
> XProject.application file.
>
> Currently I am getting the following error with these lines of code
> <extension name="org.apache.tapestry.multipart-decoder" immediate="no"
>
> class="org.apache.tapestry.multipart.DefaultMultipartDecoder">
>        <configure property-name="maxSize" type="double" value="134217728"/>
>    </extension>
>
> org.apache.tapestry.util.xml.DocumentParseException: Unable to read
> context:/WEB-INF/Genesis.application: Attribute "property" is required and
> must be specified for element type "configure".
> [context:/WEB-INF/XProject.application, line 108, column 77]
>        at
> org.apache.tapestry.parse.SpecificationParser.parseDocument(SpecificationParser.java:1672)
>        at
> org.apache.tapestry.parse.SpecificationParser.parseApplicationSpecification(SpecificationParser.java:1612)
>        at
> $ISpecificationParser_13731bb6443.parseApplicationSpecification($ISpecificationParser_13731bb6443.java)
>        at
> $ISpecificationParser_13731bb6444.parseApplicationSpecification($ISpecificationParser_13731bb6444.java)
>        at
> $ISpecificationParser_13731bb6445.parseApplicationSpecification($ISpecificationParser_13731bb6445.java)
>        at
> org.apache.tapestry.services.impl.ApplicationSpecificationInitializer.initialize(ApplicationSpecificationInitializer.java:63)
>
>
> Any help or clue about how to resolve the above exception and/or the issue
> with large sized uploads  would be welcome
>
> Regards
> Nazar
>
>
>
>
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Error-on-overriding-file-upload-limit-tp5697351.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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