java-cannot find method [*] in action [*]这个问题是什么鬼?

问题描述

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

java-cannot find method [*] in action [*]这个问题是什么鬼?的相关文章

struts2异常java.lang.NoSuchMethodException: com.struts.action.UserAction.create()

问题描述 原来用的struts2.0版本,运行项目没有问题.后来换了struts2.2.1版本后,只要访问Action,都会出现java.lang.NoSuchMethodException: com.struts.action.UserAction.create()类似的错误,就是说Action中找不到create这个方法.struts.xml<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE stru

s2sh添加数据java.lang.NullPointerException com.meet.action.roomAction.execute(roomAc

问题描述 HTTPStatus500---------------------------------------------------------------------------------typeExceptionreportmessagedescriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest.exceptionjava.lang.NullPointerExcept

登录不成功-java.lang.NoSuchMethodException: com.crm.action.UserAction.login()

问题描述 java.lang.NoSuchMethodException: com.crm.action.UserAction.login() 三大框架登录时老是说没找到com.crm.action.UserAction.login()

初级java问题: method &amp;amp;lt;init&amp;amp;gt;()V not found

问题描述 初级java问题: method <init>()V not found 问题在哪?class fured{ int a; }class fured1 extends fured{ int a; fured1(int xint y) { super.a=x; a=y; } void print() { System.out.println(super.a); System.out.println(a); }}public class 调用父类的变量_方法 { public 调用父类的

java网络编程-java的 HttpURLConnection能访问Action吗?

问题描述 java的 HttpURLConnection能访问Action吗? 这是发送端的代码,我这样写正确吗?public String toJson() throws Exception{ URL url = new URL("http://localhost:8888/PareJons/toBean"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMetho

Java的Struts框架中Action的编写与拦截器的使用方法_java

Struts2 Action/动作动作是Struts2框架的核心,因为他们的任何MVC(模型 - 视图 - 控制器)框架.每个URL将被映射到一个特定的动作,它提供了来自用户的请求提供服务所需的处理逻辑. 但动作也提供其他两个重要的能力.首先,操作从请求数据的传输中起着重要的作用,通过向视图,无论是一个JSP或其它类型的结果.二,动作必须协助的框架,在确定结果应该渲染视图,在响应该请求将被退回. 创建动作:在Struts2的动作,唯一的要求是必须有一个无参数的方法返回String或结果的对象,必

java sting split- The method sqlit(String) is undefined for the type String

问题描述 The method sqlit(String) is undefined for the type String 小弟新手!!!split()函数以前用的好好地!今天突然直接就报个这么个错误!!看了半天没发现错误!用法跟以前一模一样啊!为什么会报错呢!!导致jsp页面无法编译!传递参数为:&steelmar=YT201%20,%20Ф5.5-Ф20 报错代码String[] ms = electty.sqlit(",");!!!!求高人指点迷津啊!!!!!!!!!!

&amp;amp;lt;FORM name=&amp;amp;quot;MemberCard_main&amp;amp;quot; method=&amp;amp;quot;post&amp;amp;quot; action=&amp;amp;quot;./MemberCardServlet&amp;amp;quot; &amp;amp;gt;

问题描述 MemberCardServlet类里有很多方法,这样子提交过去为什么它可以找到exportMemberInfomation这个方法? 问题补充:<%@ page language = "java" %><%@ page contentType = "text/html;charset=UTF-8" %><%@ page import = "tw.com.sinews.im.*" %><%@ p

详解在Java的Struts2框架中配置Action的方法_java

在Struts2中Action部分,也就是Controller层采用了低侵入的方式.为什么这么说?这是因为在Struts2中action类并不需要继承任何的基类,或实现任何的接口,更没有与Servlet的API直接耦合.它通常更像一个普通的POJO(通常应该包含一个无参数的execute方法),而且可以在内容定义一系列的方法(无参方法),并可以通过配置的方式,把每一个方法都当作一个独立的action来使用,从而实现代码复用. 例如: package example; public class U