当前位置: 代码迷 >> Java Web开发 >> jsp页面post到servlet发生异常:java.lang.NoSuchMethodError: bean.User.<init>(Ljava/lang/String;Ljava/lang/Str
  详细解决方案

jsp页面post到servlet发生异常:java.lang.NoSuchMethodError: bean.User.<init>(Ljava/lang/String;Ljava/lang/Str

热度:4947   发布时间:2013-02-25 21:16:31.0
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,接分
  相关解决方案