日期:2014-05-17  浏览次数:20680 次

jsp页面post到servlet发生错误:java.lang.NoSuchMethodError: bean.User.<init>(Ljava/lang/String;Ljava/lang/Str
jsp页面提交到一个servlet以后,在servlet中调用方法,出现错误。错误提示一下,
HTTP Status 500 - 

--------------------------------------------

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: Servlet execution threw an exception


root cause 

java.lang.NoSuchMethodError: bean.User.<init>(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Z)V
Servlet.Register_Action.doPost(Register_Action.java:34)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.


--------------------------------------------

Apache Tomcat/6.0.14

------解决方案--------------------
恭喜LZ,接分
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.html