| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 9619 人关注过本帖
标题:The full stack trace of the root cause is available in the Apache Tomc ...
只看楼主 加入收藏
lovemm
Rank: 2
来 自:广州
等 级:论坛游民
威 望:1
帖 子:170
专家分:24
注 册:2008-11-4
结帖率:71.43%
收藏
已结贴  问题点数:10 回复次数:4 
The full stack trace of the root cause is available in the Apache Tomcat/5.5.8 l
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
    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 
2010-07-29 14:52
lovemm
Rank: 2
来 自:广州
等 级:论坛游民
威 望:1
帖 子:170
专家分:24
注 册:2008-11-4
收藏
得分:0 
YiLogin.java的39行错误,无论我有没有代码都是错在哪,
2010-07-29 14:53
baifenghan
Rank: 8Rank: 8
等 级:贵宾
威 望:10
帖 子:258
专家分:952
注 册:2006-3-17
收藏
得分:7 
The method getMD5(byte[]) in the type MDFive is not applicable for the arguments (String)
这个错误不是很明显吗,你应该是有一个Filter中配置了加密的算法,但是这个加密的方法的参数是一个字节数组,不是字符创,你传了一个字符创给它了。

2010-07-29 21:55
lovemm
Rank: 2
来 自:广州
等 级:论坛游民
威 望:1
帖 子:170
专家分:24
注 册:2008-11-4
收藏
得分:0 
回复 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 编辑 ]
2010-07-31 15:54
baifenghan
Rank: 8Rank: 8
等 级:贵宾
威 望:10
帖 子:258
专家分:952
注 册:2006-3-17
收藏
得分:0 
这个只是从你的错误堆栈中看出的,至于具体的话就得看代码了
2010-07-31 23:59
快速回复:The full stack trace of the root cause is available in the Apache ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.024357 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved