Struts 文件上传错误

NAY*_*AMI -2 struts

我在使用 struts 上传文件时遇到问题,我遇到了一些问题,例如

HostConfig checkResources INFO:重新加载上下文 [/company] 2011 年 6 月 30 日下午 5:32:08 org.apache.commons.beanutils.PropertyUtilsBean invokeMethod 严重:方法调用失败。java.lang.IllegalArgumentException:sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor)的参数类型不匹配) 在 java.lang.reflect.Method.invoke(Method.java:597) 在 org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773) 在 org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty( PropertyUtilsBean.java:1759) 在 org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648) 在 org.apache。

Ant*_*ist 5

enctype="multipart/form-data"从我的 struts 表单标签中删除属性会导致类似的错误,所以忘记包含这可能是您的问题。