FileUpload Tag problem with multipart/form-data request 
--------------------------------------------------------

                 Key: STS-411
                 URL: http://mc4j.org/jira/browse/STS-411
             Project: Stripes
          Issue Type: Bug
    Affects Versions: Release 1.4.3
         Environment: Windows, Tomcat, NetBeans 5..5.1 Firefox
            Reporter: Kenneth W Barnes j
         Assigned To: Tim Fennell


I am having a problem uploading a file from the client to the server(Tomcat)  I 
have a stripes form with a <stripes:file = "importFile" and the bean accepts it 
same as tutorial and i have <stripes:submit name="inputFile"... my prob is I 
can read the file in and parse out what i need but when i redirect/forward 
anything back to the original page I recieve 

net.sourceforge.stripes.exception.StripesServletException: Could not construct 
request wrapper.
        
net.sourceforge.stripes.controller.StripesRequestWrapper.constructMultipartWrapper(StripesRequestWrapper.java:113)
        
net.sourceforge.stripes.controller.StripesRequestWrapper.<init>(StripesRequestWrapper.java:95)
        
mil.navy.spawar.auto.servlets.othereditors.DaysOfSupplyFileActionBean$1.execute(DaysOfSupplyFileActionBean.java:65)
        
net.sourceforge.stripes.controller.DispatcherHelper$7.intercept(DispatcherHelper.java:484)
        
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:157)
        
net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:107)
        
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:154)
        
net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:73)
        
net.sourceforge.stripes.controller.DispatcherHelper.executeResolution(DispatcherHelper.java:478)
        
net.sourceforge.stripes.controller.DispatcherServlet.executeResolution(DispatcherServlet.java:249)
        
net.sourceforge.stripes.controller.DispatcherServlet.doPost(DispatcherServlet.java:166)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

ava.io.IOException: Corrupt form data: premature ending
        
com.oreilly.servlet.multipart.MultipartParser.<init>(MultipartParser.java:205)
        com.oreilly.servlet.MultipartRequest.<init>(MultipartRequest.java:222)
        com.oreilly.servlet.MultipartRequest.<init>(MultipartRequest.java:173)
        
net.sourceforge.stripes.controller.multipart.CosMultipartWrapper.build(CosMultipartWrapper.java:63)
        
net.sourceforge.stripes.controller.multipart.DefaultMultipartWrapperFactory.wrap(DefaultMultipartWrapperFactory.java:125)
        
net.sourceforge.stripes.controller.StripesRequestWrapper.constructMultipartWrapper(StripesRequestWrapper.java:109)
        
net.sourceforge.stripes.controller.StripesRequestWrapper.<init>(StripesRequestWrapper.java:95)
        
mil.navy.spawar.auto.servlets.othereditors.DaysOfSupplyFileActionBean$1.execute(DaysOfSupplyFileActionBean.java:65)
        
net.sourceforge.stripes.controller.DispatcherHelper$7.intercept(DispatcherHelper.java:484)
        
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:157)
        
net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:107)
        
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:154)
        
net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:73)
        
net.sourceforge.stripes.controller.DispatcherHelper.executeResolution(DispatcherHelper.java:478)
        net.sourceforge.stripes.controller.DispatcherServlet.

It throws this error i believe in the public Resolution inputfile() when i try 
to send back to client because it is a multipart request..... plz help

Do i need to implement MultiPartWrapper or MultipartFactory....
Plz y wont this work ive logged bout 6 hrs trying to figure it out... any help 
will be appreciated.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to