I am in the process of upgrading our application to struts 1.0.2 from
struts 0.5 ( I know it should have been done a lot earlier but still ... )
Everything is working as excepted except for this one problem when I try to
upload a file :

java.lang.IllegalArgumentException: argument type mismatch
     at java.lang.reflect.Method.invoke(Native Method)
     at
org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988)
     at
org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904)
     at
org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)
     at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:510)
     at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:772)
     at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:2061)
     at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
     at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
     at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
     at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
     at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
     at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
     at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
     at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:107)
     at allaire.jrun.ThreadPool.run(ThreadPool.java:272)
     at allaire.jrun.WorkerThread.run(WorkerThread.java:75)

I used to get a servletException:BeanUtils.populate() error before I added
debug statements and extra catch segments in BeanUtils and PropertyUtils.

My JSP segment is :

<html:form action="/SRweb/uploadQuoteBatch.do" method="post" name
="UploadQuoteBatchForm" type
= "com.xxx.acquiline.SRweb.UploadBatchQuotes.UploadQuoteBatchForm" enctype
="multipart/form-data">
<table width="100%" border="0"  cellpadding="5">
    <tr>
        <td>
            <input type="file" name="fileName" style='width:400;' class
="button" style="background-color:#FFFFFF">
        </td>
    </tr>
    <tr>
        <td>
            <input type="submit" value="Upload" name="uploadFile"  class
="button">
        </td>
    </tr>
</table>
</html:form>


If any of you have any clues why I am getting this error it would greatly
help me. Again this feature used to work with the older version of struts
but it is not working with Struts 1.0.2

Thanks,
Hareesh


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to