[ http://issues.apache.org/struts/browse/STR-236?page=all ] Don Brown reopened STR-236: ---------------------------
Assign To: (was: Mike Schachter) > ActionForm.validate method fails with multipart request > ------------------------------------------------------- > > Key: STR-236 > URL: http://issues.apache.org/struts/browse/STR-236 > Project: Struts Action 1 > Type: Bug > Components: Action > Versions: 1.0 Beta 3 > Environment: Operating System: All > Platform: Other > Reporter: graemem > Priority: Critical > Fix For: 1.0.0 > > Problem: The validate(mapping, request) method on the ActionForm class is > not completing sucessfully in Struts 1.0b3 where it was in Struts 1.0b1. > Detail: This is a multipart form that has a couple of struts file upload > controls on it (as well as text fields etc) so I suppose that might be > related > somehow. > The exception being thrown in the log is :- > java.lang.ClassCastException: > org.apache.struts.upload.MultipartRequestWrapper > at > org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl > .java:144) > at > org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:21 > 37) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564) > at > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) > at org.apache.tomcat.core.Handler.service(Handler.java, Compiled > Code) > at > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled > Code) > at > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 > 7) > at > org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) > at > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection > (Ajp12ConnectionHandler.java:166) > at > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, > Compiled Code) > at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, > Compiled Code) > at java.lang.Thread.run(Thread.java:479) > This worked fine under Struts 1.0b1 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]