struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joey Ebright <jebrigh...@attbi.com>
Subject Re: File Upload with Invalid or Missing File Name
Date Tue, 18 Feb 2003 06:10:42 GMT
See the thread I started "Problem with empty file upload field".  I 
found mozilla was the problem.  I was running 0.99 and upgrading fixed 
the problem.  Let me know how it goes for you...

Jörg Maurer wrote:

>Have you downloaded source or binary? Try like myself source und
>recompile YS?!?!
>
>-----Original Message-----
>From: cjeness@bellsouth.net [mailto:cjeness@bellsouth.net]
>Sent: Montag, 10. Februar 2003 20:00
>To: struts-user@jakarta.apache.org
>Subject: File Upload with Invalid or Missing File Name
>
>
>Here is what I did:
>
>1.  Downloaded Tomcat 4.1.18 and installed.
>2.  Downloaded Struts 1.1B3 and copied "struts-upload.war" to the
>"webapps" directory of my Tomcat install from step 1.
>3.  Set my JAVA_HOME environment variable to point to the location of my
>1.3 Java (1.3.1_04).
>4.  Started Tomcat so that struts-upload is deployed.
>5.  From Mozilla, accessed "http://localhost:8080/struts-upload".  
>6.  The file upload screen displays properly and if I browse to a
>legitimate file and press submit, then the file is uploaded without
>error.  However, if I leave the file name empty or enter an invalid file
>name, then I get the error shown below:
>
>Others on this list have apparently had success with empty file names.
>So I am very confused as to why I still see the "populate" error.  I
>have tried Struts 1.1B2 and Struts 1.1B3 and JDK 1.4.1 as well as 1.3.1
>as well as earlier versions of Tomcat.  All attempts with a blank file
>name lead to the same error. I have exhausted everything that I can try,
>so help would be greatly appreciated.
>
>Cynthia Jeness
>
>------------------------------------------------------------------------
>----------------------------
>java.lang.IllegalArgumentException: argument type mismatch
>	at java.lang.reflect.Method.invoke(Native Method)
>	at
>org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUti
>ls.java:1789)
>	at
>org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUti
>ls.java:1684)
>	at
>org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.jav
>a:1713)
>	at
>org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924)
>	at
>org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
>	at
>org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
>	at
>org.apache.struts.action.RequestProcessor.processPopulate(RequestProcess
>or.java:798)
>	at
>org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
>254)
>	at
>org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
>	at
>org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
>	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(Applica
>tionFilterChain.java:247)
>	at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
>erChain.java:193)
>	at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
>e.java:260)
>	at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
>nvokeNext(StandardPipeline.java:643)
>	at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
>80)
>	at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>	at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
>e.java:191)
>	at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
>nvokeNext(StandardPipeline.java:643)
>	at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
>80)
>	at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>	at
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
>5)
>	at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
>:180)
>	at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
>nvokeNext(StandardPipeline.java:643)
>	at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
>lve.java:170)
>	at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
>nvokeNext(StandardPipeline.java:641)
>	at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
>:172)
>	at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
>nvokeNext(StandardPipeline.java:641)
>	at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
>80)
>	at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>	at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
>java:174)
>	at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
>nvokeNext(StandardPipeline.java:643)
>	at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
>80)
>	at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>	at
>org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>	at
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:43
>2)
>	at
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
>onnection(Http11Protocol.java:386)
>	at
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:53
>4)
>	at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
>.java:530)
>	at java.lang.Thread.run(Thread.java:479)
>
>Apache Tomcat/4.1.18
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>  
>




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


Mime
View raw message