Can not find a java.io.InputStream with the name [DownloadFile] in the invocation stack.

Source: Internet
Author: User

1. Description of the error

August 14, 2015 4:22:45 pm com.opensymphony.xwork2.util.logging.jdk.JdkLogger Error severity: Exception occurred during processing R Equest:can not find a java.io.InputStream with the name [DownloadFile] in the invocation stack. Check the <param name= "InputName" > tag specified for this action.java.lang.IllegalArgumentException:Can not find a Java.io.InputStream with the name [DownloadFile] in the invocation stack. Check the <param name= "InputName" > tag specified for this action.at Org.apache.struts2.dispatcher.StreamResult.doExecute (streamresult.java:237) at Org.apache.struts2.dispatcher.StrutsResultSupport.execute (strutsresultsupport.java:191) at Com.opensymphony.xwork2.DefaultActionInvocation.executeResult (defaultactioninvocation.java:369) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:273) at Org.apache.struts2.interceptor.DeprecationInterceptor.intercept (deprecationinterceptor.java:41) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (Defaultactioninvocation.java:244) at Org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept ( debugginginterceptor.java:256) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke ( defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept ( defaultworkflowinterceptor.java:167) at Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept ( methodfilterinterceptor.java:98) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke ( defaultactioninvocation.java:244) at Com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept ( validationinterceptor.java:265) at Org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept ( annotationvalidationinterceptor.java:76) at Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (methodfilterinterceptor.java:98) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptOr. Conversionerrorinterceptor.intercept (conversionerrorinterceptor.java:138) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (parametersinterceptor.java:229) at Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (methodfilterinterceptor.java:98) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (parametersinterceptor.java:229) at Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (methodfilterinterceptor.java:98) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept (staticparametersinterceptor.java:191 ) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Org.apache.struts2.intercEptor. Multiselectinterceptor.intercept (multiselectinterceptor.java:73) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept (datetextfieldinterceptor.java:125) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Org.apache.struts2.interceptor.CheckboxInterceptor.intercept (checkboxinterceptor.java:91) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Org.apache.struts2.interceptor.FileUploadInterceptor.intercept (fileuploadinterceptor.java:253) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept (modeldriveninterceptor.java:100) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept (Scopedmodeldriveninterceptor.java:141) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke ( defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept ( chaininginterceptor.java:145) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke ( defaultactioninvocation.java:244) 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:244) at Com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept ( i18ninterceptor.java:139) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (Defaultactioninvocation.java : 244) at Org.apache.struts2.interceptor.ServletConfigInterceptor.intercept (servletconfiginterceptor.java:164) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymPhony.xwork2.interceptor.AliasInterceptor.intercept (aliasinterceptor.java:193) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept (exceptionmappinginterceptor.java:189 ) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Org.apache.struts2.impl.StrutsActionProxy.execute (strutsactionproxy.java:54) at Org.apache.struts2.dispatcher.Dispatcher.serviceAction (dispatcher.java:564) at Org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction (executeoperations.java:81) at Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter ( strutsprepareandexecutefilter.java:99) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( applicationfilterchain.java:239) at Org.apache.catalina.core.ApplicationFilterChain.doFilter ( applicationfilterchain.java:206) at Org.apache.catalina.core.StandardWrapperValve.invoke (Standardwrappervalve.java:219) at Org.apache.catalina.core.StandardContextValve.invoke (standardcontextvalve.java:106) at Org.apache.catalina.authenticator.AuthenticatorBase.invoke (authenticatorbase.java:502) at Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:142) at Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:79) at Org.apache.catalina.valves.AbstractAccessLogValve.invoke (abstractaccesslogvalve.java:610) at Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:88) at Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:518) at Org.apache.coyote.http11.AbstractHttp11Processor.process (abstracthttp11processor.java:1091) at Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:668) at Org.apache.coyote.http11.http11nioprotocol$http11connectionhandler.process (http11nioprotocol.java:223) at Org.apache.tomcat.util.net.nioendpoint$socketprocessor.dorun (nioendpoint.java:1517) at Org.Apache.tomcat.util.net.nioendpoint$socketprocessor.run (nioendpoint.java:1474) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) at Org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run (taskthread.java:61) at Java.lang.Thread.run ( thread.java:745) August 14, 2015 4:22:45 pm com.opensymphony.xwork2.util.logging.jdk.JdkLogger error Critical: Can not find a java.io . InputStream with the name [DownloadFile] in the invocation stack. Check the <param name= "InputName" > tag specified for this action. August 14, 2015 4:22:45 pm com.opensymphony.xwork2.util . Logging.jdk.JdkLogger Error Critical: Exception occurred during processing Request:can not find a java.io.InputStream with the Name [DownloadFile] in the invocation stack. Check the <param name= "InputName" > tag specified for this action.java.lang.IllegalArgumentException:Can not find a Java.io.InputStream with the name [DownloadFile] in the invocation stack. Check the <param name= "InputName" > tag specified for this action.at Org.apache.struts2.dispatcher.StreamResult.doExecute (streamresult.java:237) at Org.apache.struts2.dispatcher.StrutsResultSupport.execute (strutsresultsupport.java:191) at Com.opensymphony.xwork2.DefaultActionInvocation.executeResult (defaultactioninvocation.java:369) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:273) at Org.apache.struts2.interceptor.DeprecationInterceptor.intercept (deprecationinterceptor.java:41) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept (debugginginterceptor.java:256) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept (defaultworkflowinterceptor.java:167 ) at Com.opensymphony.xwork2.interceptor.MethodFilteRinterceptor.intercept (methodfilterinterceptor.java:98) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept (validationinterceptor.java:265) at Org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept ( annotationvalidationinterceptor.java:76) at Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (methodfilterinterceptor.java:98) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept (conversionerrorinterceptor.java:138) At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (parametersinterceptor.java:229) at Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (methodfilterinterceptor.java:98) at Com.opensympHony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (parametersinterceptor.java:229) at Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (methodfilterinterceptor.java:98) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept (staticparametersinterceptor.java:191 ) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Org.apache.struts2.interceptor.MultiselectInterceptor.intercept (multiselectinterceptor.java:73) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept (datetextfieldinterceptor.java:125) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Org.apache.struts2.interceptor.ChEckboxinterceptor.intercept (checkboxinterceptor.java:91) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Org.apache.struts2.interceptor.FileUploadInterceptor.intercept (fileuploadinterceptor.java:253) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept (modeldriveninterceptor.java:100) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept (Scopedmodeldriveninterceptor.java : 141) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept (chaininginterceptor.java:145) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) 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:244) at Com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept ( i18ninterceptor.java:139) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (Defaultactioninvocation.java : 244) at Org.apache.struts2.interceptor.ServletConfigInterceptor.intercept (servletconfiginterceptor.java:164) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept (aliasinterceptor.java:193) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept (exceptionmappinginterceptor.java:189 ) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:244) at Org.apache.strUts2.impl.StrutsActionProxy.execute (strutsactionproxy.java:54) at Org.apache.struts2.dispatcher.Dispatcher.serviceAction (dispatcher.java:564) at Org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction (executeoperations.java:81) at Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter ( strutsprepareandexecutefilter.java:99) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( applicationfilterchain.java:239) at Org.apache.catalina.core.ApplicationFilterChain.doFilter ( applicationfilterchain.java:206) at Org.apache.catalina.core.StandardWrapperValve.invoke ( standardwrappervalve.java:219) at Org.apache.catalina.core.StandardContextValve.invoke (Standardcontextvalve.java : 106) at Org.apache.catalina.authenticator.AuthenticatorBase.invoke (authenticatorbase.java:502) at Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:142) at Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:79) at Org.apache.catalina.valves.AbstRactaccesslogvalve.invoke (abstractaccesslogvalve.java:610) at Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:88) at Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:518) at Org.apache.coyote.http11.AbstractHttp11Processor.process (abstracthttp11processor.java:1091) at Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:668) at Org.apache.coyote.http11.http11nioprotocol$http11connectionhandler.process (http11nioprotocol.java:223) at Org.apache.tomcat.util.net.nioendpoint$socketprocessor.dorun (nioendpoint.java:1517) at Org.apache.tomcat.util.net.nioendpoint$socketprocessor.run (nioendpoint.java:1474) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) at Org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run (taskthread.java:61) at Java.lang.Thread.run ( thread.java:745)

2. Cause of error

<action name= "Download" class= "com.you.mail.action.DownloadAction" ><result name= "Success" type= "Stream" ><param name= "ContentType" >application/vnd.ms-powerpoint</param><param name= " Contentdisposition ">filename=" ceshi.ppt "</param><param name=" InputName ">downloadFile</param ></result></action>

3, the solution of the method

In the download action, the configuration parameters are not downloadfile, resulting in an error; View action, parameter named filename, change downloadfile to filename

Can not find a java.io.InputStream with the name [DownloadFile] in the invocation stack.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.