问题描述
- cannot find method [*] in action [*]这个问题是什么鬼?
-
2016-02-16 00:32:16,038 DEBUG (com.opensymphony.xwork2.interceptor.ParametersInterceptor:72) - Parameter [img64] was accepted and will be appended to action!
2016-02-16 00:32:16,039 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:76) - Retrieving convert for class [class com.ticket.action.WapValidationAction] and property [img64]
2016-02-16 00:32:16,039 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:72) - field-level type converter for property [img64] = none found
2016-02-16 00:32:16,039 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:72) - global-level type converter for property [img64] = none found
2016-02-16 00:32:16,039 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:72) - falling back to default type converter [com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter@203945f7]
2016-02-16 00:32:16,039 DEBUG (com.opensymphony.xwork2.ObjectFactory:72) - Creating converter of type [com.opensymphony.xwork2.conversion.impl.StringConverter]
2016-02-16 00:32:16,041 DEBUG (org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor:72) - Validating //wapValidation_erWeiMa with method erWeiMa.
2016-02-16 00:32:16,048 DEBUG (com.opensymphony.xwork2.validator.ValidationInterceptor:72) - Invoking validate() on action com.ticket.action.WapValidationAction@4c8dc2e4
2016-02-16 00:32:16,048 DEBUG (com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil:72) - cannot find method [validateErWeiMa] in action [com.ticket.action.WapValidationAction@4c8dc2e4]
2016-02-16 00:32:16,048 DEBUG (com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil:72) - cannot find method [validateDoErWeiMa] in action [com.ticket.action.WapValidationAction@4c8dc2e4]
2016-02-16 00:32:16,048 DEBUG (com.opensymphony.xwork2.DefaultActionInvocation:72) - Executing action method = erWeiMa
2016-02-16 00:32:16,151 DEBUG (com.opensymphony.xwork2.DefaultActionInvocation:72) - No result returned for action com.ticket.action.WapValidationAction at null
2016-02-16 00:32:16,151 DEBUG (com.opensymphony.xwork2.interceptor.I18nInterceptor:76) - after Locale=zh_CN
2016-02-16 00:32:16,151 DEBUG (com.opensymphony.xwork2.interceptor.I18nInterceptor:72) - intercept }这是在服务器获取到的信息,大神帮忙看看,怎么解决这个问题?
解决方案
这log信息还是有点少。
它更像是远程对象的接口找不到了。
解决方案二:
cannot find method [validateErWeiMa] in action [com.ticket.action.WapValidationAction@4c8dc2e4]
解决方案三:
找不到方法,是不是类中的方法不存在,给个建议,把日志弄成代码的形式
解决方案四:
看下你的请求和struts的配置文件,,
时间: 2024-09-01 15:00:08