You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Struts2 Fan <st...@gmail.com> on 2007/05/07 13:20:11 UTC

[S2] Error in "File Download" in struts-showcase application

Hi all,

I checked out the struts2 source codes and run struts2-showcase app but
/struts2-showcase/filedownload/download.action is not working. It gives the
following error.

Can not find a java.io.InputStream with the name [inputStream] in the
invocation stack. Check the <param name="inputName"> tag specified for this
action.

RequestURI=/struts2-showcase/filedownload/download.action
Caused by:

java.lang.IllegalArgumentException: Can not find a java.io.InputStream with
the name [inputStream] in the invocation stack. Check the 

tag specified for this action. at
org.apache.struts2.dispatcher.StreamResult.doExecute(StreamResult.java:189)
at
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
at
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:219)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at

Is there a way to correct it or should I wait for the next release?

Thanks in advance.
-- 
View this message in context: http://www.nabble.com/-S2--Error-in-%22File-Download%22-in-struts-showcase-application-tf3703170.html#a10355673
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: [S2] Error in "File Download" in struts-showcase application

Posted by Musachy Barroso <mu...@gmail.com>.
I will check it out this afternoon.

thank you guys.

musachy

On 5/7/07, Martin Gilday <ma...@imap.cc> wrote:
>
> I've attached a patch to the JIRA issue.  The file paths were using \
> rather than / in the filedownload.xml.
> Could someone try it on Windows.
>
> Thanks,
> Martin.
>
>
> ----- Original message -----
> From: "Martin Gilday" <ma...@imap.cc>
> To: "Struts Users Mailing List" <us...@struts.apache.org>
> Date: Mon, 07 May 2007 15:03:12 +0100
> Subject: Re: [S2] Error in "File Download" in struts-showcase
> application
>
> Just to confirm I have tried it on the SVN head and had the same error
> using Jetty.
>
>
> ----- Original message -----
> From: "Struts2 Fan" <st...@gmail.com>
> To: user@struts.apache.org
> Date: Mon, 7 May 2007 06:52:10 -0700 (PDT)
> Subject: Re: [S2] Error in "File Download" in struts-showcase
> application
>
>
> Ok I created the issue
>
> https://issues.apache.org/struts/browse/WW-1915
>
>
> Musachy Barroso wrote:
> >
> > If you create an issue here:
> >
> > https://issues.apache.org/struts/
> >
> > it probably will. Thanks for reporting it.
> >
> > musachy
> >
> > On 5/7/07, Struts2 Fan <st...@gmail.com> wrote:
> >>
> >>
> >> Hi all,
> >>
> >> I checked out the struts2 source codes and run struts2-showcase app but
> >> /struts2-showcase/filedownload/download.action is not working. It gives
> >> the
> >> following error.
> >>
> >> Can not find a java.io.InputStream with the name [inputStream] in the
> >> invocation stack. Check the <param name="inputName"> tag specified for
> >> this
> >> action.
> >>
> >> RequestURI=/struts2-showcase/filedownload/download.action
> >> Caused by:
> >>
> >> java.lang.IllegalArgumentException: Can not find a
> >> java.io.InputStreamwith
> >> the name [inputStream] in the invocation stack. Check the
> >>
> >> tag specified for this action. at
> >> org.apache.struts2.dispatcher.StreamResult.doExecute(StreamResult.java
> >> :189)
> >> at
> >> org.apache.struts2.dispatcher.StrutsResultSupport.execute(
> >> StrutsResultSupport.java:178)
> >> at
> >> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
> >> DefaultActionInvocation.java:348)
> >> at
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(
> >> DefaultActionInvocation.java:253)
> >> at
> >>
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept
> >> (DefaultWorkflowInterceptor.java:219)
> >> at
> >> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(
> >> MethodFilterInterceptor.java:86)
> >> at
> >> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
> >> DefaultActionInvocation.java:224)
> >> at
> >> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
> >> DefaultActionInvocation.java:223)
> >> at
> >> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(
> >> UtilTimerStack.java:455)
> >> at
> >>
> >> Is there a way to correct it or should I wait for the next release?
> >>
> >> Thanks in advance.
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/-S2--Error-in-%22File-Download%22-in-struts-showcase-application-tf3703170.html#a10355673
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >
> >
>
> --
> View this message in context:
>
> http://www.nabble.com/-S2--Error-in-%22File-Download%22-in-struts-showcase-application-tf3703170.html#a10357747
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Re: [S2] Error in "File Download" in struts-showcase application

Posted by Martin Gilday <ma...@imap.cc>.
I've attached a patch to the JIRA issue.  The file paths were using \
rather than / in the filedownload.xml.
Could someone try it on Windows.

Thanks,
Martin.


----- Original message -----
From: "Martin Gilday" <ma...@imap.cc>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Date: Mon, 07 May 2007 15:03:12 +0100
Subject: Re: [S2] Error in "File Download" in struts-showcase
application

Just to confirm I have tried it on the SVN head and had the same error
using Jetty.


----- Original message -----
From: "Struts2 Fan" <st...@gmail.com>
To: user@struts.apache.org
Date: Mon, 7 May 2007 06:52:10 -0700 (PDT)
Subject: Re: [S2] Error in "File Download" in struts-showcase
application


Ok I created the issue

https://issues.apache.org/struts/browse/WW-1915


Musachy Barroso wrote:
> 
> If you create an issue here:
> 
> https://issues.apache.org/struts/
> 
> it probably will. Thanks for reporting it.
> 
> musachy
> 
> On 5/7/07, Struts2 Fan <st...@gmail.com> wrote:
>>
>>
>> Hi all,
>>
>> I checked out the struts2 source codes and run struts2-showcase app but
>> /struts2-showcase/filedownload/download.action is not working. It gives
>> the
>> following error.
>>
>> Can not find a java.io.InputStream with the name [inputStream] in the
>> invocation stack. Check the <param name="inputName"> tag specified for
>> this
>> action.
>>
>> RequestURI=/struts2-showcase/filedownload/download.action
>> Caused by:
>>
>> java.lang.IllegalArgumentException: Can not find a
>> java.io.InputStreamwith
>> the name [inputStream] in the invocation stack. Check the
>>
>> tag specified for this action. at
>> org.apache.struts2.dispatcher.StreamResult.doExecute(StreamResult.java
>> :189)
>> at
>> org.apache.struts2.dispatcher.StrutsResultSupport.execute(
>> StrutsResultSupport.java:178)
>> at
>> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
>> DefaultActionInvocation.java:348)
>> at
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(
>> DefaultActionInvocation.java:253)
>> at
>> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept
>> (DefaultWorkflowInterceptor.java:219)
>> at
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(
>> MethodFilterInterceptor.java:86)
>> at
>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
>> DefaultActionInvocation.java:224)
>> at
>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
>> DefaultActionInvocation.java:223)
>> at
>> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(
>> UtilTimerStack.java:455)
>> at
>>
>> Is there a way to correct it or should I wait for the next release?
>>
>> Thanks in advance.
>> --
>> View this message in context:
>> http://www.nabble.com/-S2--Error-in-%22File-Download%22-in-struts-showcase-application-tf3703170.html#a10355673
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> 

-- 
View this message in context:
http://www.nabble.com/-S2--Error-in-%22File-Download%22-in-struts-showcase-application-tf3703170.html#a10357747
Sent from the Struts - User mailing list archive at Nabble.com.


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


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


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


Re: [S2] Error in "File Download" in struts-showcase application

Posted by Martin Gilday <ma...@imap.cc>.
Just to confirm I have tried it on the SVN head and had the same error
using Jetty.


----- Original message -----
From: "Struts2 Fan" <st...@gmail.com>
To: user@struts.apache.org
Date: Mon, 7 May 2007 06:52:10 -0700 (PDT)
Subject: Re: [S2] Error in "File Download" in struts-showcase
application


Ok I created the issue

https://issues.apache.org/struts/browse/WW-1915


Musachy Barroso wrote:
> 
> If you create an issue here:
> 
> https://issues.apache.org/struts/
> 
> it probably will. Thanks for reporting it.
> 
> musachy
> 
> On 5/7/07, Struts2 Fan <st...@gmail.com> wrote:
>>
>>
>> Hi all,
>>
>> I checked out the struts2 source codes and run struts2-showcase app but
>> /struts2-showcase/filedownload/download.action is not working. It gives
>> the
>> following error.
>>
>> Can not find a java.io.InputStream with the name [inputStream] in the
>> invocation stack. Check the <param name="inputName"> tag specified for
>> this
>> action.
>>
>> RequestURI=/struts2-showcase/filedownload/download.action
>> Caused by:
>>
>> java.lang.IllegalArgumentException: Can not find a
>> java.io.InputStreamwith
>> the name [inputStream] in the invocation stack. Check the
>>
>> tag specified for this action. at
>> org.apache.struts2.dispatcher.StreamResult.doExecute(StreamResult.java
>> :189)
>> at
>> org.apache.struts2.dispatcher.StrutsResultSupport.execute(
>> StrutsResultSupport.java:178)
>> at
>> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
>> DefaultActionInvocation.java:348)
>> at
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(
>> DefaultActionInvocation.java:253)
>> at
>> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept
>> (DefaultWorkflowInterceptor.java:219)
>> at
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(
>> MethodFilterInterceptor.java:86)
>> at
>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
>> DefaultActionInvocation.java:224)
>> at
>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
>> DefaultActionInvocation.java:223)
>> at
>> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(
>> UtilTimerStack.java:455)
>> at
>>
>> Is there a way to correct it or should I wait for the next release?
>>
>> Thanks in advance.
>> --
>> View this message in context:
>> http://www.nabble.com/-S2--Error-in-%22File-Download%22-in-struts-showcase-application-tf3703170.html#a10355673
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> 

-- 
View this message in context:
http://www.nabble.com/-S2--Error-in-%22File-Download%22-in-struts-showcase-application-tf3703170.html#a10357747
Sent from the Struts - User mailing list archive at Nabble.com.


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


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


Re: [S2] Error in "File Download" in struts-showcase application

Posted by Struts2 Fan <st...@gmail.com>.
Ok I created the issue

https://issues.apache.org/struts/browse/WW-1915


Musachy Barroso wrote:
> 
> If you create an issue here:
> 
> https://issues.apache.org/struts/
> 
> it probably will. Thanks for reporting it.
> 
> musachy
> 
> On 5/7/07, Struts2 Fan <st...@gmail.com> wrote:
>>
>>
>> Hi all,
>>
>> I checked out the struts2 source codes and run struts2-showcase app but
>> /struts2-showcase/filedownload/download.action is not working. It gives
>> the
>> following error.
>>
>> Can not find a java.io.InputStream with the name [inputStream] in the
>> invocation stack. Check the <param name="inputName"> tag specified for
>> this
>> action.
>>
>> RequestURI=/struts2-showcase/filedownload/download.action
>> Caused by:
>>
>> java.lang.IllegalArgumentException: Can not find a
>> java.io.InputStreamwith
>> the name [inputStream] in the invocation stack. Check the
>>
>> tag specified for this action. at
>> org.apache.struts2.dispatcher.StreamResult.doExecute(StreamResult.java
>> :189)
>> at
>> org.apache.struts2.dispatcher.StrutsResultSupport.execute(
>> StrutsResultSupport.java:178)
>> at
>> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
>> DefaultActionInvocation.java:348)
>> at
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(
>> DefaultActionInvocation.java:253)
>> at
>> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept
>> (DefaultWorkflowInterceptor.java:219)
>> at
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(
>> MethodFilterInterceptor.java:86)
>> at
>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
>> DefaultActionInvocation.java:224)
>> at
>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
>> DefaultActionInvocation.java:223)
>> at
>> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(
>> UtilTimerStack.java:455)
>> at
>>
>> Is there a way to correct it or should I wait for the next release?
>>
>> Thanks in advance.
>> --
>> View this message in context:
>> http://www.nabble.com/-S2--Error-in-%22File-Download%22-in-struts-showcase-application-tf3703170.html#a10355673
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> 

-- 
View this message in context: http://www.nabble.com/-S2--Error-in-%22File-Download%22-in-struts-showcase-application-tf3703170.html#a10357747
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: [S2] Error in "File Download" in struts-showcase application

Posted by Musachy Barroso <mu...@gmail.com>.
If you create an issue here:

https://issues.apache.org/struts/

it probably will. Thanks for reporting it.

musachy

On 5/7/07, Struts2 Fan <st...@gmail.com> wrote:
>
>
> Hi all,
>
> I checked out the struts2 source codes and run struts2-showcase app but
> /struts2-showcase/filedownload/download.action is not working. It gives
> the
> following error.
>
> Can not find a java.io.InputStream with the name [inputStream] in the
> invocation stack. Check the <param name="inputName"> tag specified for
> this
> action.
>
> RequestURI=/struts2-showcase/filedownload/download.action
> Caused by:
>
> java.lang.IllegalArgumentException: Can not find a java.io.InputStreamwith
> the name [inputStream] in the invocation stack. Check the
>
> tag specified for this action. at
> org.apache.struts2.dispatcher.StreamResult.doExecute(StreamResult.java
> :189)
> at
> org.apache.struts2.dispatcher.StrutsResultSupport.execute(
> StrutsResultSupport.java:178)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
> DefaultActionInvocation.java:348)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(
> DefaultActionInvocation.java:253)
> at
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept
> (DefaultWorkflowInterceptor.java:219)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(
> MethodFilterInterceptor.java:86)
> at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
> DefaultActionInvocation.java:224)
> at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
> DefaultActionInvocation.java:223)
> at
> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(
> UtilTimerStack.java:455)
> at
>
> Is there a way to correct it or should I wait for the next release?
>
> Thanks in advance.
> --
> View this message in context:
> http://www.nabble.com/-S2--Error-in-%22File-Download%22-in-struts-showcase-application-tf3703170.html#a10355673
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd