主题 : 进入后台管理某些功能后台报错。
级别: 白丁
UID: 77492
积分:6 加为好友
威望: 1 精华: 0
主题:1 回复:4
注册时间:2015-07-04
在线时长:0
1#   发表于:2015-07-16 19:38:42  IP:183.173.*.*
求版主大人帮助环境是:MyEclipse2015+Jdk1.8+Tomcat8,其中各环节的运行/编译都是1.8。错误如图。
Servlet.service() for servlet [JeeCmsAdmin] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.bind.annotation.support.HandlerMethodInvocationException: Failed to invoke handler method [public java.lang.String com.jeecms.cms.action.admin.assist.TemplateAct.left(java.lang.String,javax.servlet.http.HttpServletRequest,org.springframework.ui.ModelMap)]; nested exception is java.lang.IllegalStateException: No parameter name specified for argument of type [java.lang.String], and no parameter name information found in class file either.] with root cause
java.lang.IllegalStateException: No parameter name specified for argument of type [java.lang.String], and no parameter name information found in class file either.
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.getRequiredParameterName(HandlerMethodInvoker.java:729)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveRequestParam(HandlerMethodInvoker.java:488)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:348)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:171)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:2
级别: 白丁
UID: 77492
积分:6 加为好友
威望: 1 精华: 0
主题:1 回复:4
注册时间:2015-07-04
在线时长:0
2#   发表于:2015-07-16 19:40:03  IP:183.173.*.*
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
3#   发表于:2015-07-17 08:36:02  IP:115.249.*.*
造成这种错误的原因是你的支持Tomcat运行的JDK版本与支持application运行的JDK版本不一致导致的。 
解决办法:将JDK版本改成一致。 
步骤如下: 
1、Window ——> Preferences ——>Java ——>compiler中的compiler compliance level对应的下拉菜单中选择JDK版本。 
2、Window ——>Preferences ——>MyEclipse ——>Servers ——>Tomcat ——>Tomcat n.x ——>JDK中的Tomcat JDK name下的下拉菜单中选择自己电脑上安装的JDK版本(必须与步骤1中的JDK版本一致)。 
3、Window ——>Preferences ——>Java ——>Installed JRES,然后在右边选择与步骤1和2版本一致的JDK版本,如果没有,可以自己添加,然后选中就可以了。 

jdk可以换成6的
1
级别: 贡士
UID: 348
积分:619 加为好友
威望: 8 精华: 0
主题:70 回复:368
注册时间:2009-08-05
在线时长:0
4#   发表于:2016-09-14 10:58:29  IP:27.156.*.*
我这也出现了这个问题,是不是咱们的框架不支持jdk1.8和tomcat1.8吗
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
5#   发表于:2016-09-14 11:00:46  IP:59.110.*.*
我这里也是1.8的,没出现过,你那如果不行按3楼的配置下
1
级别: 贡士
UID: 348
积分:619 加为好友
威望: 8 精华: 0
主题:70 回复:368
注册时间:2009-08-05
在线时长:0
6#   发表于:2016-09-14 11:12:22  IP:27.156.*.*
我按照3楼的配置了,但是还是存在问题
No parameter name specified for argument of type [java.lang.Integer], and no parameter name information found in class file either.
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
7#   发表于:2016-09-14 11:12:52  IP:59.110.*.*
那就把jdk和tomcat换成7的
1
级别: 贡士
UID: 348
积分:619 加为好友
威望: 8 精华: 0
主题:70 回复:368
注册时间:2009-08-05
在线时长:0
8#   发表于:2016-09-14 11:17:58  IP:27.156.*.*
刚才我给jdk换成1.7版本,就没有了问题,我的是v6版本,是不是v6不支持jdk1.8呀
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
9#   发表于:2016-09-14 11:18:40  IP:59.110.*.*
我这里是支持的,这很难说得清
1
1 共1页