You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Yousri BENDI ABDALLAH <b....@gmail.com> on 2008/05/22 11:33:57 UTC
Error limiting the size file upload
Good morning,
I limited the size of the file upload a 15Mb
<action name="index" class="systemAction" method="list">
<result name="success"> / jsp / chemin_systeme / index.jsp </
result>
</ action>
<action name="add" class="systemAction" method="add">
<interceptor-ref name="fileUpload">
<param name="maximumSize"> 5728640 </ param>
</ interceptor-ref>
<interceptor-ref name="basicStack"/>
<result name="input"> / jsp / chemin_systeme / ajout.jsp </
result>
<result name="success" type="redirect-action"> index.action </
result>
</ action>
if I met a file least 2MB of it works well,
if I have more following error without index,
if you have an idea. Thank you
[ERROR] 11:20:52 (FilterDispatcher.java:doFilter:395) error getting
ActionMapping
java.lang.NullPointerException
at
org.apache.struts2.dispatcher.multipart.PellMultiPartRequest.getParameterNames(PellMultiPartRequest.java:103)
at
org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper.getParameterNames(MultiPartRequestWrapper.java:184)
at
org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper.getParameterMap(MultiPartRequestWrapper.java:167)
at
org.apache.struts2.dispatcher.mapper.DefaultActionMapper.handleSpecialParameters(DefaultActionMapper.java:308)
at
org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getMapping(DefaultActionMapper.java:276)
at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:393)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
--
Yousri BENDIABDALLAH
Re: Error limiting the size file upload
Posted by Felipe Lorenz <fe...@gmail.com>.
hummm.. i put my limit inside of struts.properties:
struts.multipart.maxSize=20971520
but, 2MB. I never test more than it!
On Thu, May 22, 2008 at 2:52 PM, Yousri BENDI ABDALLAH <b....@gmail.com>
wrote:
> you have no idea :-)
>
>
>
> 2008/5/22 Yousri BENDI ABDALLAH <b....@gmail.com>:
>
> > Good morning,
> > I limited the size of the file upload a 15Mb
> >
> >
> > <action name="index" class="systemAction" method="list">
> > <result name="success"> / jsp / chemin_systeme / index.jsp
> </
> > result>
> > </ action>
> >
> > <action name="add" class="systemAction" method="add">
> > <interceptor-ref name="fileUpload">
> > <param name="maximumSize"> 5728640 </ param>
> > </ interceptor-ref>
> > <interceptor-ref name="basicStack"/>
> >
> > <result name="input"> / jsp / chemin_systeme / ajout.jsp </
> > result>
> > <result name="success" type="redirect-action"> index.action
> </
> > result>
> >
> > </ action>
> >
> >
> > if I met a file least 2MB of it works well,
> > if I have more following error without index,
> > if you have an idea. Thank you
> >
> >
> > [ERROR] 11:20:52 (FilterDispatcher.java:doFilter:395) error getting
> > ActionMapping
> > java.lang.NullPointerException
> > at
> >
> org.apache.struts2.dispatcher.multipart.PellMultiPartRequest.getParameterNames(PellMultiPartRequest.java:103)
> > at
> >
> org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper.getParameterNames(MultiPartRequestWrapper.java:184)
> > at
> >
> org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper.getParameterMap(MultiPartRequestWrapper.java:167)
> > at
> >
> org.apache.struts2.dispatcher.mapper.DefaultActionMapper.handleSpecialParameters(DefaultActionMapper.java:308)
> > at
> >
> org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getMapping(DefaultActionMapper.java:276)
> > at
> >
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:393)
> > at
> >
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> > at
> >
> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
> > at
> >
> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
> > at
> >
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> > at
> >
> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
> > at
> >
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> > at
> >
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
> > at
> >
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> > at
> > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> > at
> >
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
> > at
> >
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
> > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
> >
> >
> > --
> > Yousri BENDIABDALLAH
> >
>
>
>
> --
> Yousri BENDIABDALLAH
>
Re: How to find jars not used in the project ??
Posted by "Dustin S." <ic...@gmail.com>.
This should help you out:
http://www.javalobby.org/java/forums/t100842.html?start=0
On Thu, May 22, 2008 at 2:15 PM, A. Lotfi <ma...@yahoo.com> wrote:
> Hi,
>
> We have a big struts project, under WEB-INF\lib we have lot of jar files,
> lot of them are not used in the code, we are using netbeans5.5, is there any
> utility to tell you which are the jar files not used in your source code.
>
> Thanks, your help is appreciated.
>
>
>
How to find jars not used in the project ??
Posted by "A. Lotfi" <ma...@yahoo.com>.
Hi,
We have a big struts project, under WEB-INF\lib we have lot of jar files, lot of them are not used in the code, we are using netbeans5.5, is there any utility to tell you which are the jar files not used in your source code.
Thanks, your help is appreciated.
Re: Error limiting the size file upload
Posted by Yousri BENDI ABDALLAH <b....@gmail.com>.
you have no idea :-)
2008/5/22 Yousri BENDI ABDALLAH <b....@gmail.com>:
> Good morning,
> I limited the size of the file upload a 15Mb
>
>
> <action name="index" class="systemAction" method="list">
> <result name="success"> / jsp / chemin_systeme / index.jsp </
> result>
> </ action>
>
> <action name="add" class="systemAction" method="add">
> <interceptor-ref name="fileUpload">
> <param name="maximumSize"> 5728640 </ param>
> </ interceptor-ref>
> <interceptor-ref name="basicStack"/>
>
> <result name="input"> / jsp / chemin_systeme / ajout.jsp </
> result>
> <result name="success" type="redirect-action"> index.action </
> result>
>
> </ action>
>
>
> if I met a file least 2MB of it works well,
> if I have more following error without index,
> if you have an idea. Thank you
>
>
> [ERROR] 11:20:52 (FilterDispatcher.java:doFilter:395) error getting
> ActionMapping
> java.lang.NullPointerException
> at
> org.apache.struts2.dispatcher.multipart.PellMultiPartRequest.getParameterNames(PellMultiPartRequest.java:103)
> at
> org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper.getParameterNames(MultiPartRequestWrapper.java:184)
> at
> org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper.getParameterMap(MultiPartRequestWrapper.java:167)
> at
> org.apache.struts2.dispatcher.mapper.DefaultActionMapper.handleSpecialParameters(DefaultActionMapper.java:308)
> at
> org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getMapping(DefaultActionMapper.java:276)
> at
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:393)
> at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> at
> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
> at
> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
> at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> at
> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
> at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
>
>
> --
> Yousri BENDIABDALLAH
>
--
Yousri BENDIABDALLAH