tomcat6升级为tomcat7后,项目报错问题

星辰~ 发布于 2012/05/09 14:13
阅读 5K+
收藏 1
tomcat6升级为tomcat7后,项目运行报如下错误,有谁知道解决办法,先谢谢了:java.lang.IllegalArgumentException: [=] is not a hexadecimal digit
加载中
0
星辰~
星辰~
org.apache.jasper.JasperException: An exception occurred processing JSP page /memberadmin/resume/resume_left.jsp at line 8

7: <%
8: 	String isReload=Common.getFormatInt(request.getParameter("isReload"));
9: 	String myvalue=Common.getFormatStr(request.getParameter("myvalue"));


Stacktrace:
	at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)

	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
	at org.apache.jsp.memberadmin.resume.resume_005fname_005fedit_jsp._jspService(resume_005fname_005fedit_jsp.java:299)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at com.jerehnet.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:163)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)

	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1815)

	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: [=] is not a hexadecimal digit
	at org.apache.catalina.util.RequestUtil.convertHexDigit(RequestUtil.java:351)
	at org.apache.catalina.util.RequestUtil.parseParameters(RequestUtil.java:435)
	at org.apache.catalina.util.RequestUtil.parseParameters(RequestUtil.java:191)
	at org.apache.catalina.core.ApplicationHttpRequest.mergeParameters(ApplicationHttpRequest.java:894)
	at org.apache.catalina.core.ApplicationHttpRequest.parseParameters(ApplicationHttpRequest.java:756)
	at org.apache.catalina.core.ApplicationHttpRequest.getParameter(ApplicationHttpRequest.java:367)
	at org.apache.jsp.memberadmin.resume.resume_005fleft_jsp._jspService(resume_005fleft_jsp.java:124)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	... 34 more


星辰~
星辰~
回复 @红薯 : 非常感谢红薯老大热心解答,目前查找到原因了,是tomcat7中在页面include时,动态参数传递时的问题,不能直接在jsp:include标签中加动态代码,传参数用jsp:param传递就可以了,再次感谢大家
红薯
红薯
那应该是你字符串转整数的问题吧
0
红薯
红薯
得有详细的异常堆栈信息哦
星辰~
星辰~
详细错误如下,谢谢
0
星辰~
星辰~
该评论暂时无法显示,详情咨询 QQ 群:点此入群
星辰~
星辰~
回复 @红薯 : 红薯老大,能够确定是下面获得参数的问题了,您帮忙看下,下面jsp得参数的写法有什么问题吗,把这两个变量直接赋上值就没有问题了。 String isReload=request.getParameter("isReload"); String myvalue=request.getParameter("myvalue");
星辰~
星辰~
有个String isReload=Common.getFormatInt(request.getParameter("isReload"));具体方法如下:
红薯
红薯
left.jsp 这里调用了什么方法呢?
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部
返回顶部
顶部