Console error:
17:17:19,346 WARN jakartamultipartrequest:64-request exceeded size limit!
Org.apache.commons.fileupload.fileuploadbase$sizelimitexceededexception:the request was rejected because its size ( 6162834) exceeds the configured maximum (2097152)
At Org.apache.commons.fileupload.fileuploadbase$fileitemiteratorimpl.<init> (FileUploadBase.java:965)
At Org.apache.commons.fileupload.FileUploadBase.getItemIterator (fileuploadbase.java:310)
At Org.apache.commons.fileupload.FileUploadBase.parseRequest (fileuploadbase.java:334)
At Org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest.parseRequest (Jakartamultipartrequest.java : 189)
At Org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest.processUpload (Jakartamultipartrequest.java : 127)
At Org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest.parse (jakartamultipartrequest.java:92)
At Org.apache.struts2.dispatcher.multipart.multipartrequestwrapper.<init> (MultiPartRequestWrapper.java:81 )
At Org.apache.struts2.dispatcher.Dispatcher.wrapRequest (dispatcher.java:796)
At Org.apache.struts2.dispatcher.ng.PrepareOperations.wrapRequest (prepareoperations.java:134)
At Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter ( strutsprepareandexecutefilter.java:91)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:241)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:208)
At Org.apache.catalina.core.StandardWrapperValve.invoke (standardwrappervalve.java:218)
At Org.apache.catalina.core.StandardContextValve.invoke (standardcontextvalve.java:122)
At Org.apache.catalina.authenticator.AuthenticatorBase.invoke (authenticatorbase.java:505)
At Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:169)
At Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:103)
At Org.apache.catalina.valves.AccessLogValve.invoke (accesslogvalve.java:958)
At Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:116)
At Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:452)
At Org.apache.coyote.http11.AbstractHttp11Processor.process (abstracthttp11processor.java:1087)
At Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:637)
At Org.apache.tomcat.util.net.jioendpoint$socketprocessor.run (jioendpoint.java:318)
At Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1142)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:617)
At Org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run (taskthread.java:61)
At Java.lang.Thread.run (thread.java:745)
17:17:19,426 WARN dispatcher:64-could not find action or result
No result defined for action cn.yumutech.shop.product.adminaction.AdminProductAction and result input
At Com.opensymphony.xwork2.DefaultActionInvocation.executeResult (defaultactioninvocation.java:373)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:275)
At Com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept (validationinterceptor.java:265)
At Org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept ( annotationvalidationinterceptor.java:68)
At Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (methodfilterinterceptor.java:98)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept (conversionerrorinterceptor.java:138 )
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (parametersinterceptor.java:239)
At Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (methodfilterinterceptor.java:98)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (parametersinterceptor.java:239)
At Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (methodfilterinterceptor.java:98)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept (Staticparametersinterceptor.java : 191)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Org.apache.struts2.interceptor.MultiselectInterceptor.intercept (multiselectinterceptor.java:73)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Org.apache.struts2.interceptor.CheckboxInterceptor.intercept (checkboxinterceptor.java:91)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Org.apache.struts2.interceptor.FileUploadInterceptor.intercept (fileuploadinterceptor.java:325)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept (modeldriveninterceptor.java:100)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept (Scopedmodeldriveninterceptor.java : 141)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept (chaininginterceptor.java:145)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept (prepareinterceptor.java:171)
At Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (methodfilterinterceptor.java:98)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept (i18ninterceptor.java:161)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Org.apache.struts2.interceptor.ServletConfigInterceptor.intercept (servletconfiginterceptor.java:164)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept (aliasinterceptor.java:193)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept (Exceptionmappinginterceptor.java : 189)
At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246)
At Org.apache.struts2.impl.StrutsActionProxy.execute (strutsactionproxy.java:54)
At Org.apache.struts2.dispatcher.Dispatcher.serviceAction (dispatcher.java:563)
At Org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction (executeoperations.java:77)
At Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter ( STRUTSPREPAREANDEXECUTEFILTER.JAVA:99)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:241)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:208)
At Org.apache.catalina.core.StandardWrapperValve.invoke (standardwrappervalve.java:218)
At Org.apache.catalina.core.StandardContextValve.invoke (standardcontextvalve.java:122)
At Org.apache.catalina.authenticator.AuthenticatorBase.invoke (authenticatorbase.java:505)
At Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:169)
At Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:103)
At Org.apache.catalina.valves.AccessLogValve.invoke (accesslogvalve.java:958)
At Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:116)
At Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:452)
At Org.apache.coyote.http11.AbstractHttp11Processor.process (abstracthttp11processor.java:1087)
At Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:637)
At Org.apache.tomcat.util.net.jioendpoint$socketprocessor.run (jioendpoint.java:318)
At Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1142)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:617)
At Org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run (taskthread.java:61)
At Java.lang.Thread.run (thread.java:745)
JSP page:
Solution:
Add the maximum number of uploaded files in struts.xml
<constant name= "struts.multipart.maxSize" value= "209715200"/>