2 qq 29284509 qq_29284509 于 2016.04.26 20:04 提问

http Status 500 app.action.LoginAction.index()

HTTP Status 500 - app.action.LoginAction.index()

错误信息是:
type Exception report

message app.action.LoginAction.index()

description The server encountered an internal error that prevented it from fulfilling this request.

exception
java.lang.NoSuchMethodException: app.action.LoginAction.index()
ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1246)
ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)
com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108)
ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1369)
ognl.ASTMethod.getValueBody(ASTMethod.java:90)
ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
ognl.SimpleNode.getValue(SimpleNode.java:258)
ognl.Ognl.getValue(Ognl.java:494)
ognl.Ognl.getValue(Ognl.java:458)
com.opensymphony.xwork2.ognl.OgnlUtil$2.execute(OgnlUtil.java:309)
com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:340)
com.opensymphony.xwork2.ognl.OgnlUtil.getValue(OgnlUtil.java:307)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:423)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:287)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:250)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
org.apache.struts2.interceptor.DeprecationInterceptor.intercept(DeprecationInterceptor.java:41)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:139)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
com.opensymphony.xwork2.DefaultActionProxy.execute(DefaultActionProxy.java:147)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:564)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)

note The full stack trace of the root cause is available in the Apache Tomcat/8.0.30 logs.

Apache Tomcat/8.0.30

3个回答

devmiao
devmiao   Ds   Rxr 2016.04.26 23:04
woerry
woerry   2016.04.26 23:53

NoSuchMethodException 没有这个方法

yushiyoufight
yushiyoufight   Rxr 2016.10.26 09:00

java.lang.NoSuchMethodException: app.action.LoginAction.index() 没有这个方法

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
HTTP Status 500 - java.lang.ClassNotFoundException: org.apache.jsp.***_jsp
想必大家在用Eclipse进行编程时,经常会碰到这个问题。 原因是jsp没有编译成功,所以找不到这个类。 在这要说明已下jsp和servlet的编译原理。
HTTP Status 500错误
HTTP Status 500 - java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'command' available as request attribute 发生的错误:在请求域例没有command这样的属性 path="last
HTTP Status 500 - java.lang.NullPointerException
早上做测试,浏览器总是有缓存,于是把chrome上的缓存设置改了下(乱改的),结果后来正常登录界面时,报错了。 错误如下: 后来倒腾了下,发现果然是因为在浏览器里面做了设置,改了之后就好了。 改回来: 就ok了,我的问题是这么处理的,其他要是代码里有问题,大家可以在找找问题~
问题解决 —— Http Status 500
在完成JavaWeb项目的过程中经常会出现这种错误500:指的是服务器内部错误通常遇到这种情况,我会去看控制台的信息,那里肯定会有提示,空指针(值没有传过去),或者java.sql.SQLException,在界面和Dao中好好检查一下,就可以找到问题所在。可以在中间插入一些测试语句,逐渐缩小范围,就可以找到错误是在哪一步中出现的了。
jsp+tomcat+eclispe,http status 500解决方法
问题描述:在eclipse下建了一个简单的jsp测试文件,测试如下:http://localhost:8008/tomcat_test/HelloJsp.jsp(由于8080被oracle占了,因此在   Tomcat中改了一下文件server.xml,端口改为8008) 返回如下的信息: HTTP   Status   500   -   root   cause   Unable   to
报错:HTTP Status 500 -
最不友好的 界面报错: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.Ja
遇到HTTP Status 500 问题
HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented
异常 HTTP Status 500 - Request processing failed
HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.taotao.mapper.TbItemMapper 在pom文件中添加如下内容: <build>
SpringMVC 报错HTTP Status 500 – Internal Server Error
报错 报的具体是什么错,,记得是主键为0什么的,是添加数据时报的。打开数据库对应的表发现为0的记录已经有了。 解决 主键没有设置为自增长。把对应表的数据删了,再把表的主键设置为自增长。...
HTTP Status 500 - (java.lang.ClassNotFoundException: org.apache.jsp.index_jsp)解决方法
HTTP Status 500 - (java.lang.ClassNotFoundException: org.apache.jsp.index_jsp)解决方法 错误提示如下: =================================================================================================