编辑信息点击修改,如何解决?

问题描述

-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值不对!

时间: 2024-10-04 17:12:27

编辑信息点击修改,如何解决?的相关文章

异常-求教关于listview内edittext点击修改内容的问题

问题描述 求教关于listview内edittext点击修改内容的问题 我现在在做一个listview, 想要实现的效果是:点击每个item一下,可以默认选中不带后缀名的内容,如点击内容为"pic.jpg"会选中"pic",并且键盘弹出可进行内容修改 我在listview的item里放的是edittext,并在adapter里对edittext进行了setOnFocusChangeListener的监听,为的是能点击后直接选中不带后缀名的字符串内容 但问题是,运行后

Win7安装主题后桌面图标无法修改的解决方法

  1.首先,需要返回到Win7旗舰版电脑的桌面位置,然后随意的找到一片空白处,点击鼠标右键,然后在下滑菜单中选择个性化. 2.再打开的个性化设置窗口中,点击左侧菜单中的更改桌面图标,之后就可以看到如下图中所示的窗口了. 主题后桌面图标无法修改的解决方法-桌面图标主题包"> 3.在窗口的最下方位置,可以看到一个"允许主题更改桌面图标"的选项,将这个选项前面的勾选加上,然后点击确定保存设置,这样,Win7旗舰版电脑在更改了主题之后,也可以实现更改桌面图标的操作.

ios-如何点击修改制定cell中的button?

问题描述 如何点击修改制定cell中的button? 应用里有分组表视图,分为两部分.第一个部分有一行,另一部分有5行.我在cell里添加了按钮.代码如下: UIButton *newBtn=[UIButton buttonWithType:UIButtonTypeCustom]; [newBtn setFrame:CGRectMake(5103530)]; [newBtn setImage:[UIImage imageNamed:@""icon.png""] fo

jqgrid表格编辑,关于修改和增加

问题描述 jqgrid表格编辑,关于修改和增加 修改的时候,点击左下角修改按钮,弹出弹出框,怎么设置上面两列只读或置灰,还有增加的时候如何再增加一列,这一列是列表上没有的并且是下拉框形式,该怎么添加?

word文档编辑点击保存和关闭保存都没反应怎么办

  小编给大家提供一招参考,卸载本机的OFFICE,重启一下你的电脑,然后检查一下你原来安装OFFICE的目录有没有残留.然后打开360安全卫士清除一下你的注册表. 文档编辑点击保存和关闭保存都没反应怎么办-"> 然后重新安装一下office就行了.

win7系统访问磁盘提示“你没有权限查看或编辑这个对象”原因和解决方法

  win7系统访问磁盘提示"你没有权限查看或编辑这个对象"原因和解决方法.安装win7旗舰版系统之后,访问磁盘的时候需要管理员权限,这时候大家只要使用Administrator管理员账户就可以登入了.但是一些用户新建了非管理员权限的用户进行登入使用,在使用时候却遇到了问题,之前本来可以访问磁盘的,但是后来没办法访问了,提示"你没有权限查看或编辑这个对象",想切换回"Administrator"账户也无法切换怎么办?下面一起看看解决方法吧. 故障

录屏软件camtasia studio录制时屏幕点击没反应解决办法

  现在,不少人都在使用Camtasia Studio这个录屏软件.小编遇到过很多人问camtasia studio点击录制屏幕没反应怎么办?今天在这跟大家解答下录屏软件camtasia studio录制时屏幕点击没反应解决办法. 1.右击桌面Camtasia Studio 8图标,然后点击[打开文件位置] 录屏软件camtasia studio 2.找到[CamRecorder.exe]这个文件,右键点击 录屏软件camtasia studio 3.然后点击[兼容性],将以管理员身份运行此程序

gridview-我想做一个ASP.NET修改页面,点击修改,把选中的这一行的值,依次放入textbox控件中。

问题描述 我想做一个ASP.NET修改页面,点击修改,把选中的这一行的值,依次放入textbox控件中. 解决方案 http://blog.csdn.net/junboyboy/article/details/17922037 解决方案二: 推荐你看一下 高手写的GridView 72绝技 ,地址:http://blog.csdn.net/21aspnet/article/details/1540301

控件-MFC comboBox编辑框背景修改

问题描述 MFC comboBox编辑框背景修改 如何实现修改combobox控件编辑框的背景,而且可以在编辑框里动态生成按钮,求大神帮忙解答,谢谢!! 解决方案 必须派生CComboBox,override描画函数 解决方案二: 重绘comboBox 解决方案三: http://download.csdn.net/detail/Q5914002/1782813