The full stack trace of the root cause is available in the Apache Tomcat/5.5.8 l
type Exception reportmessage
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
yuyi.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:30)
root cause
java.lang.Error: Unresolved compilation problem:
The method getMD5(byte[]) in the type MDFive is not applicable for the arguments (String)
yuyi.servlet.YiLogin.doPost(YiLogin.java:39)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
yuyi.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:30)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.8 logs.
搜索更多相关主题的帖子:
Tomcat stack trace Apache root
----------------解决方案--------------------------------------------------------
YiLogin.java的39行错误,无论我有没有代码都是错在哪,
----------------解决方案--------------------------------------------------------
The method getMD5(byte[]) in the type MDFive is not applicable for the arguments (String)
这个错误不是很明显吗,你应该是有一个Filter中配置了加密的算法,但是这个加密的方法的参数是一个字节数组,不是字符创,你传了一个字符创给它了。
----------------解决方案--------------------------------------------------------
回复 3楼 baifenghan
我在用MD5时是这样用的;String pwd = request.getParameter("pwd");
MdFive.getMD5(pwd.byte()) ;
这样有错吗,我以前都是这样用的,都没有报错,这次不知为什么就报错啦,就算是我的MD5里面有错误,我也用我最初的MD5覆盖了现在用的项目包中的MD5。报错的结果都是一样,在我的servlet中我注释了MdFive.getMD5(pwd.byte()) ;这个句子,它的报错还是一样不变
[ 本帖最后由 lovemm 于 2010-7-31 16:27 编辑 ]
----------------解决方案--------------------------------------------------------
这个只是从你的错误堆栈中看出的,至于具体的话就得看代码了
----------------解决方案--------------------------------------------------------