struts2 上传报错,自己测试么有问题,服务器并发访问提示no result defined for action ...

web容器:tomact6 设置内存1g
确认上传代码没有问题,因为在自己机器上测试通过,但到服务器上,多人访问时出现如下错误信息:

2014-11-07 11:31:37,078 WARN [org.apache.struts2.dispatcher.Dispatcher]-<Could not find action or result> at .warn[line:60]
No result defined for action com.sgz.rthb.signup.action.FileUploadAction and result input
at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:376)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:278)
at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
...,
请高手帮忙解答
仔细查看日志发现第一次报错为这个原因:org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed.

请高手赐教。

第1个回答  2014-11-07
你没有定义input这个result,你代码肯定错了,一般如果代码出错的话,struts会默认去action中去找name为input的这个result本回答被网友采纳
相似回答