问题描述
-Errorsettingexpression'objArticleInfo'withvalue'[Ljava.lang.String;@2ad97dd9'ognl.MethodFailedException:Method"setObjArticleInfo"failedforobjectmimsSite.web.action.articleManage.EditArticleInfoAction@6d1b8965[java.lang.NoSuchMethodException:mimsSite.web.action.articleManage.EditArticleInfoAction.setObjArticleInfo([Ljava.lang.String;)]atognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1289)atognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1478)atognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)atognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)atcom.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)atognl.OgnlRuntime.setProperty(OgnlRuntime.java:2315)atcom.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:77)atognl.OgnlRuntime.setProperty(OgnlRuntime.java:2315)atognl.ASTProperty.setValueBody(ASTProperty.java:127)atognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)atognl.SimpleNode.setValue(SimpleNode.java:301)atognl.Ognl.setValue(Ognl.java:737)atcom.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:217)atcom.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186)atcom.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173)atcom.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:151)atcom.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:317)atcom.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:228)atcom.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atcom.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:236)atcom.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atcom.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atorg.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atorg.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:90)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atorg.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atcom.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atcom.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atcom.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atcom.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)atcom.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atcom.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atorg.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atcom.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:192)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atcom.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atorg.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)atorg.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:511)atorg.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)atorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:119)atorg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)atorg.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)atorg.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)atorg.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1774)atjava.lang.Thread.run(Thread.java:619)Causedby:java.lang.NoSuchMethodException:mimsSite.web.action.articleManage.EditArticleInfoAction.setObjArticleInfo([Ljava.lang.String;)atognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1230)...67more/--Encapsulatedexception------------java.lang.NoSuchMethodException:mimsSite.web.action.articleManage.EditArticleInfoAction.setObjArticleInfo([Ljava.lang.String;)atognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1230)atognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1478)atognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)atognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)atcom.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)atognl.OgnlRuntime.setProperty(OgnlRuntime.java:2315)atcom.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:77)atognl.OgnlRuntime.setProperty(OgnlRuntime.java:2315)atognl.ASTProperty.setValueBody(ASTProperty.java:127)atognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)atognl.SimpleNode.setValue(SimpleNode.java:301)atognl.Ognl.setValue(Ognl.java:737)atcom.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:217)atcom.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186)atcom.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173)atcom.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:151)atcom.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:317)atcom.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:228)atcom.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atcom.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:236)atcom.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atcom.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atorg.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atorg.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:90)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atorg.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)atcom.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)atcom.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)--------------------------------------/
解决方案
解决方案二:
java.lang.NoSuchMethodException:mimsSite.web.action.articleManage.EditArticleInfoAction.setObjArticleInfo([Ljava.lang.String;)
解决方案三:
是什么意思啊!
解决方案四:
引用2楼u011416442的回复:
是什么意思啊!
这个方法没有找到,看看是不是传的参数不对或者根本就没有这个方法
解决方案五:
在action我是这样写的!
解决方案六:
嗯,setObjArticleInfo([Ljava.lang.String;),这边传的是string数组,而你的是ArticleInfo
解决方案七:
传入类型不匹配.你在调用set方法的时候传入的参数类型是String[]类型的.应该是articleinfo类型的.
解决方案八:
解决方案九:
Errorsettingexpression'objArticleInfo'withvalue'[Ljava.lang.String;@2ad97dd9'set进去的是对象,你给的set值不对!