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

发布于 2022-03-07 15:12:19 字数 109 浏览 784 评论 9

tomcat6升级为tomcat7后,项目运行报如下错误,有谁知道解决办法,先谢谢了:java.lang.IllegalArgumentException: [=] is not a hexadecimal digit

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

居里长安 2022-03-10 23:30:25

left.jsp 这里调用了什么方法呢?

明月松间行 2022-03-10 23:09:09

有个String isReload=Common.getFormatInt(request.getParameter("isReload"));具体方法如下:

背叛残局 2022-03-10 22:00:50

回复
红薯老大,能够确定是下面获得参数的问题了,您帮忙看下,下面jsp得参数的写法有什么问题吗,把这两个变量直接赋上值就没有问题了。 String isReload=request.getParameter("isReload"); String myvalue=request.getParameter("myvalue");

瑾夏年华 2022-03-10 20:18:56

详细错误如下,谢谢

樱花落人离去 2022-03-10 16:33:08

得有详细的异常堆栈信息哦

成熟的代价 2022-03-10 09:59:14

那应该是你字符串转整数的问题吧

南汐寒笙箫 2022-03-10 06:25:14

回复
非常感谢红薯老大热心解答,目前查找到原因了,是tomcat7中在页面include时,动态参数传递时的问题,不能直接在jsp:include标签中加动态代码,传参数用jsp:param传递就可以了,再次感谢大家

复古式 2022-03-09 21:40:21
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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文