You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Shanthan Sivapalan <si...@sun.com> on 2002/08/07 22:17:56 UTC

RE: Uploading files

I'm having an issue when I try to download a file, and try and open the
file in the current location. What happens is as follows:

1. select a file to download, and the download pop window appears
2. select to open file in the current location, and another download pop
window appears
3. select to open the file from the current location again, I get an
alert stating that "Cannot find the file in the Windows Temporary
Internet Files folder. Do you want to create a new file?
4. I select "yes" and the file is always empty.

Does anyone know why the file is not wriiten to the folder, and why does
the download window appear twice. I am not sure why this only happens
when I try to open the file in the current location and not when I try
to save it. Trying to save the file works just fine.

Another question I have is that, is there known issues with the Struts
upload package where empty temp files (within the
tomcat/work/Standalone/localhost/webapp/ directory) are created
everytime you proceed to a form page that contains a file upload form
element. I could really use some help on this.

Thank you...


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Uploading files

Posted by Shanthan Sivapalan <si...@sun.com>.
I downloaded the file, saved it and there seems to be nothing wrong with the
saved file. To add on to the scenario of trying to open it, I get the following
error in the log file:


2002-08-07 16:25:15 StandardWrapperValve[elpServlet]: Servlet.service() for
servlet elpServlet threw exception
java.lang.IllegalStateException: Cannot forward after response has been committed

 at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:367)

 at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)

 at
com.sun.lms.ui.common.struts.controllers.LMSRequestProcessor.doForward(LMSRequestProcessor.java:292)

 at
com.sun.lms.ui.common.struts.controllers.LMSRequestProcessor.processActionForward(LMSRequestProcessor.java:265)

 at org.apache.struts.action.RequestProcessor.process(Unknown Source)
 at org.apache.struts.action.ActionServlet.process(Unknown Source)
 at org.apache.struts.action.ActionServlet.doPost(Unknown Source)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1017)

 at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1115)

 at java.lang.Thread.run(Thread.java:484)

Any ideas...

Thanks...

James Mitchell wrote:

> Not sure about the empty tmp files, but it sounds like whatever is writing
> out the files is choking.
>
> Can you choose to 'download' the file and save it, then open it?
> Can you see any errors?
> Have you checked the log files for errors?
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
> > -----Original Message-----
> > From: Shanthan Sivapalan [mailto:sivashanthan.sivapalan@sun.com]
> > Sent: Wednesday, August 07, 2002 4:18 PM
> > To: Struts Users Mailing List
> > Subject: RE: Uploading files
> >
> >
> > I'm having an issue when I try to download a file, and try and open the
> > file in the current location. What happens is as follows:
> >
> > 1. select a file to download, and the download pop window appears
> > 2. select to open file in the current location, and another download pop
> > window appears
> > 3. select to open the file from the current location again, I get an
> > alert stating that "Cannot find the file in the Windows Temporary
> > Internet Files folder. Do you want to create a new file?
> > 4. I select "yes" and the file is always empty.
> >
> > Does anyone know why the file is not wriiten to the folder, and why does
> > the download window appear twice. I am not sure why this only happens
> > when I try to open the file in the current location and not when I try
> > to save it. Trying to save the file works just fine.
> >
> > Another question I have is that, is there known issues with the Struts
> > upload package where empty temp files (within the
> > tomcat/work/Standalone/localhost/webapp/ directory) are created
> > everytime you proceed to a form page that contains a file upload form
> > element. I could really use some help on this.
> >
> > Thank you...
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Uploading files

Posted by James Mitchell <jm...@telocity.com>.
Not sure about the empty tmp files, but it sounds like whatever is writing
out the files is choking.

Can you choose to 'download' the file and save it, then open it?
Can you see any errors?
Have you checked the log files for errors?

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -----Original Message-----
> From: Shanthan Sivapalan [mailto:sivashanthan.sivapalan@sun.com]
> Sent: Wednesday, August 07, 2002 4:18 PM
> To: Struts Users Mailing List
> Subject: RE: Uploading files
>
>
> I'm having an issue when I try to download a file, and try and open the
> file in the current location. What happens is as follows:
>
> 1. select a file to download, and the download pop window appears
> 2. select to open file in the current location, and another download pop
> window appears
> 3. select to open the file from the current location again, I get an
> alert stating that "Cannot find the file in the Windows Temporary
> Internet Files folder. Do you want to create a new file?
> 4. I select "yes" and the file is always empty.
>
> Does anyone know why the file is not wriiten to the folder, and why does
> the download window appear twice. I am not sure why this only happens
> when I try to open the file in the current location and not when I try
> to save it. Trying to save the file works just fine.
>
> Another question I have is that, is there known issues with the Struts
> upload package where empty temp files (within the
> tomcat/work/Standalone/localhost/webapp/ directory) are created
> everytime you proceed to a form page that contains a file upload form
> element. I could really use some help on this.
>
> Thank you...
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>