ognl.MethodFailedException: Method "setId" failed for object [问题点数:40分,结帖人jx1026544089]

Bbs1
本版专家分:0
结帖率 80%
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs7
本版专家分:11875
Bbs1
本版专家分:0
Bbs7
本版专家分:11875
Bbs1
本版专家分:0
Bbs7
本版专家分:11875
Bbs1
本版专家分:0
Bbs7
本版专家分:11875
Bbs7
本版专家分:11875
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs7
本版专家分:11875
Bbs1
本版专家分:0
Bbs7
本版专家分:11875
Bbs1
本版专家分:0
Bbs7
本版专家分:11875
Bbs1
本版专家分:0
Bbs7
本版专家分:11875
Bbs1
本版专家分:0
Bbs7
本版专家分:11875
Bbs1
本版专家分:0
Bbs7
本版专家分:11875
Bbs1
本版专家分:0
Bbs7
本版专家分:11875
Bbs1
本版专家分:0
System.Threading.ThreadStart(object object,System.IntPtr method)
这里的 System.IntPtr <em>method</em> 如何得到rn能否给个例子
jQuery报错 Object [object Object] has no method
我想在首页banner上加个轮播效果 在网上下载了个效果,然后放进去结果报错 Object [<em>object</em> Object] has no <em>method</em> 'slide'rn这是jQuery调用[code=javascript]rn $(function()rn $("#slide").slide(rn affect:4,rn time:3000,rn speed:400,rn dot_text:true,rn );rn );[/code]rn这是jQuery代码rn[code=javascript] rn(function($)rn $.fn.slide=function(options)rn var defaults= rn affect:4, //1:上下滚动; 2:幕布式; 3:左右滚动;4:淡入淡出rn time: 4000, //间隔时间rn speed:500, //动画快慢rn dot_text:true,//按钮上有无序列号rn ;rn var opts=$.extend(defaults,options);rn var $this=$(this);rn var ool=$(" ");rn var $box=$this.find("ul");rn var $li=$box.find("li");rn var timer=null;rn var num=0;rn rn $this.append(ool);rn $box.find("li").each(function(i)rn ool.find("p").append($(""));rn if(opts.dot_text)rn ool.find("b").eq(i).html(i+1)rn rn )rn ool.find("b").eq(0).addClass("cur");rn switch(opts.affect)rn case 1:rn break;rn case 2:rn $box.find("li").css("display","none");rn break;rn case 3:rn $box.css("width":$li.eq(0).width()*$li.length);rn $li.css("float","left");rn break;rn case 4:rn $box.find("li").css("display","none");rn break;rn rn $box.find("li").eq(0).show(0);rn ool.find("b").mouseover(function() rn num=$(this).index();rn run ();rn )rn timer=setInterval(auto,opts.time);rn function auto()rn numGetArray())rn rn ?>rn rn rn rn rn rn [/code]rn现在情况是图片不动。。。请问到底是什么情况?
struts2中ongl表达式的使用和具体实例应用
ongl详细描述和标签,在描述的所有的OGNL的操作中,实际上,全部都忽略了OGNL内部帮助你完成的很多默认行为和类型转化方面的工作。
标签问题,ognl表达式的使用!!
在jsp页面中: 我理想中的代码应该是这样的, 上面代码的写法好像不可行,我想请问java代码是不是无法在og
菜鸟ssh整合的问题,跪求大神指导,谢谢!
-
JSTL、EL、ONGL、Struts标签的区别
JSTL、EL、ONGL、Struts标签的区别与使用
求各位大神帮忙struts2+hibernate 实现用户登录注册的代码
-
POI导入excel时Method failed for object异常怎么办?
![图片说明](https://img-ask.csdn.net/upload/201608/23/1471953705_241787.jpg)n// 导入excel文件n public void importExcel(File userExcel, String userExcelFileName) n try n FileInputStream fileInputStream = new FileInputStream(userExcel);n boolean is03Excel = userExcelFileName.matches("^.+\\.(?i)(xls)$");n //1、读取工作簿n Workbook workbook = is03Excel ? new HSSFWorkbook(fileInputStream):new XSSFWorkbook(fileInputStream);n //2、读取工作表n Sheet sheet = workbook.getSheetAt(0);n //3、读取行n if(sheet.getPhysicalNumberOfRows() > 2)n User user = null;n for(int k = 2; k < sheet.getPhysicalNumberOfRows(); k++)n //4、读取单元格n Row row = sheet.getRow(k);n user = new User();n //用户名n Cell cell0 = row.getCell(0);n user.setUserName(cell0.getStringCellValue());n //帐号n Cell cell1 = row.getCell(1);n user.setAccount(cell1.getStringCellValue());n //所属部门n Cell cell2 = row.getCell(2);n user.setDeptName(cell2.getStringCellValue());n //性别n Cell cell3 = row.getCell(3);n user.setGender(cell3.getStringCellValue().equals("男"));n //手机号n String mobile = "";n Cell cell4 = row.getCell(4);n try n mobile = cell4.getStringCellValue();n catch (Exception e) n double dMobile = cell4.getNumericCellValue();n mobile = BigDecimal.valueOf(dMobile).toString();n n user.setPhone(mobile);n n //电子邮箱n Cell cell5 = row.getCell(5);n user.setEmail(cell5.getStringCellValue());n //生日n Cell cell6 = row.getCell(6);n if(cell6.getDateCellValue() != null)n user.setBirth(cell6.getDateCellValue());n n //默认用户密码为 123456n user.setPassWord("123456");n //默认用户状态为 有效n user.setState(User.USER_STATE_VALID);n n //5、保存用户n save(user);n n n workbook.close();n fileInputStream.close();n catch (Exception e) n e.printStackTrace();n n n
一个困扰了我一天的问题,method 'add' of object 'documents' failed
错误码是'-2147417851(80010105)'rn源程序中有如下几句 rn Dim app As New Word.Applicationrn Dim doc As Word.Documentrn app.Visible = False rn Set doc = app.Documents.Addrn doc.SaveAs FileName:="e:\first.doc"rn Set doc = Nothingrn app.Quitrn Set app = Nothingrn同样documents的其它方法比如open也无法使用,提示是“上次打开normal.dot”出现严重错误,然后不管我点击“打开”还是“恢复数据”都无济于事,问题的所在可能是标准模板normal.dot出了问题,但是我把officexp重装了一遍还是没解决rn
Method '~' of object '~' failed Connect to database faild 这是那里出错了?
VB6的程序,数据库为ACCESS,在启动程序连接数据库就出弹出了一个对话框,内容为:rnrnMethod '~' of <em>object</em> '~' <em>failed</em> Connect to database faildrnrnrn这个错误是什么原因造成的?谢谢!
VBA Range函数错误:method 'Range' of object '_global' failed
Dear大家rn请帮忙查询答案。rn我在做删除一个sheet的多行时,range(par1)里用一参数表示。但我发现一个问题,当len(par1)超过255时,就会提示错误,当小于255时,不会报错。请大家帮忙解释一下有什么更好的方法。rn我的目的是一次性选择所有行(根据条件),然后删除rn代码如下:rn 'Delete the row when column 6 is equal to "Need To Delete "rn i_select = 6rn For i_select = 6 To upload_last_rowrn If Cells(i_select, 1).Value <> "" Thenrn If Cells(i_select, 6).Value = "Need To Delete" Thenrn temp_select = temp_select & i_select & ":" & i_selectrn temp_select = temp_select + ","rn End Ifrn End Ifrn Next i_selectrn rn 'remove the first blankrn temp_select = Trim(temp_select)rn rn 'remove the last ","rn len_str = Len(temp_select)rn If Right(temp_select, 1) = "," Thenrn temp_select = Left(temp_select, len_str - 1)rn End Ifrn rn 'select the row which to be deletedrn [color=#FF0000]Range(temp_select).Select--当temp_select长度超过255时候,run到此处会报错[/color]rn Selection.Deletern
运行期错误:Method 'Visible' of object 'CommandBar' failed 如何解决?
我有如下代码rn Set m_ExcelApp = CreateObject("excel.application") '创建EXCEL句柄rn m_ExcelApp.Workbooks.Open FileName:="d:\data\建设预案.xls", ReadOnly:=Truern m_ExcelApp.Application.Visible = Truern rn Dim i As Longrn For i = 1 To m_ExcelApp.CommandBars.countrn× m_ExcelApp.CommandBars.Item(i).Visible = Falsern Next irn执行到×处即发生错误,请指教
failed for object">ognl.MethodFailedException: Method "setId" failed for object
ognl.MethodFailedException: Method &quot;setId&quot; <em>failed</em> for <em>object</em> com.provence.zbtb.web.enterprise.EnterpriseListAction@1f99d54 [java.lang.NoSuchMethodException: setId([Ljava.lang.String;)] 解决办法 : just c...
正则表达式 EL表达式 OGNL表达式 Struts标签
正则表达式 EL表达式 OGNL表达式 Struts标签 这四种标签都是有什么关系以及区别们还有应用范围?求大神告知
hibernate框架时遇到的错误ognl.MethodFailedException: Method "execute" f
ognl.MethodFailedException: Method "execute" <em>failed</em> for <em>object</em> com.toy.action.Test@150c25 [java.lang.NoClassDefFoundError: org/apache/lucene/analysis/standard/StandardAnalyzer]     ognl.OgnlRuntime
Struts2+hirbernate 结合出错问题
-
failed for object">ognl.MethodFailedException: Method "setXX" failed for object
由于数据类型不匹配而导致的异常ognl.MethodFailedException: Method "setId" <em>failed</em> for <em>object</em> cn.xyurp.system.bean.DomainValue@1a6d030 [java.lang.NoSuchMethodException: setId([Ljava.lang.String;)] at ognl.OgnlRunti
ADODC出现错误:Method 'refresh' of object 'IAdodc' failed何解?
以下语句用于单头和单身的关联,当记录移动时就触发以下语句以保持单头和单身同步。但有时出现错误:Method 'refresh' of <em>object</em> 'IAdodc' <em>failed</em>何解?rnrnIf Adodc_header_general.Recordset.eof = False ThenrnAdodc_body_general.RecordSource = "select VAj.* from VAj with (nolock) where VAj.VAjid='" & Adodc_header_general.Recordset.Fields("VAjid").Value & "'"rnAdodc_body_general.RefreshrnEnd Ifrnrnrnrnrn注:当Form load ‘时rnAdodc_body_general.ConnectionString=library_general_2.about_db_register.connection_stringrnAdodc_body_general.CommandType = adCmdUnknownrnAdodc_body_general.RecordSource = "select top 1 VAj.* from VAj with (nolock) "rnAdodc_body_general.RefreshrnEnd subrnrn有人说是CommandType问题。应该是adCmdText,但adCmdUnknown不是包含所有的了吗?rn不知大家有何高见。或有什幺方法进行单头和单身关联方法rn
method 'saveas' of object'_workbook' failed”怎样解决——————在线等
我在vb中用代码实现了将查询结果导入excel中,但是现在有个问题,我点击“导出图表”按钮系统开始导出查询结果时,如果我的d盘原来有一个test.xls文件,那么会弹出一个询问是否覆盖的对话框,我点击“是” 的话,覆盖原文件,将结果导出,没有问题,但是如果我点击“否”,就会出现“<em>method</em> 'saveas' of <em>object</em>'_workbook' <em>failed</em>”,我应该怎么做,才能让我在弹出询问对话框的时候有个选择呢?rn rnxexcel.Application.AlertBeforeOverwriting = Falsernxworkbook.SaveAs FileName:="D:\test.xls"rnrn
object '~' failed">IIS 提示Run_time error "5054" Method '~' of object '~' failed
请问这是什么问题呢??
method '' not supported by automation object
<em>method</em> 'AAA' not supported by automation <em>object</em> rnrn总是提示这个错误,该从哪方面去找原因啊rnrn
Method Object理解与应用
背景 这段时间在重构自己写过的烂代码(尴尬)。本着单一原则想把堆成一堆的代码按照功能拆分成一个个小方法,按照顺序整齐摆放,清晰好看易读有条理。但是遇到了问题,这堆代码涉及到了较多的变量,而且不同部分代码的变量都是另一部分代码需要的参数,所以没有办法单纯的抽出成一个个小方法。 举个例子 比如这一堆代码是一个更新活动的逻辑,其中包含活动的时间转换,活动信息校验,活动额外信息的获取,活动信息拼...
ognl.MethodFailedException异常
ognl.MethodFailedException: Method &quot;setReleaseDate&quot; <em>failed</em> for <em>object</em> com.jeecms.article.entity.Article@61806f84 [java.lang.NoSuchMethodException: setReleaseDate([Ljava.lang.String;)] at ognl.OgnlR...
ssh整合出现异常,请问这异常时什么意思?
-
如何解决这种问题
-
failed for object com.test.hello@1b9e39d9">struts2中报错:ognl.MethodFailedException: Method "setImage" failed for object com.test.hello@1b9e39d9
在做文件上传时,报以下错误:    警告: Error setting expression 'image' with value '[Ljava.lang.String;@30e7e3b9'ognl.MethodFailedException:Method&quot;setImage&quot;<em>failed</em>.for.<em>object</em>.com.test.hello@1b9e39d9.[java.lang.NoSuchMe...
Method '~' of object '~' failed.
Method '~' of <em>object</em> '~' <em>failed</em>.rn我用VB发布一个dll的时候就出这个错了。先前都是对的,换了个较低版本的dll引用后就这样了。。。但项目需要用较低版本的office啊,各位大大,怎么解决啊?
Struts2 ognl.MethodFailedException:
我在action中定义了一个id 属性,类型是int的,当客户端提交过来就会抛一个这样的异常不过,不影响程序的运行,不知道是什么原因?rn请大家帮我分析一下这个异常:rnrnognl.MethodFailedException: Method "setId" <em>failed</em> for <em>object</em> com.provence.zbtb.web.enterprise.EnterpriseListAction@1f99d54 [java.lang.NoSuchMethodException: setId([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:823)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:964)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:75)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:131)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:50)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:101)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)rn at ognl.SimpleNode.setValue(SimpleNode.java:246)rn at ognl.Ognl.setValue(Ognl.java:476)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:155)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:143)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:273)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rn/-- Encapsulated exception ------------\rnjava.lang.NoSuchMethodException: setId([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:810)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:964)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:75)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:131)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:50)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:101)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)rn at ognl.SimpleNode.setValue(SimpleNode.java:246)rn at ognl.Ognl.setValue(Ognl.java:476)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:155)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:143)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:273)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rn\--------------------------------------/rnexpr: id val: [Ljava.lang.String;@c8148f context: ognl.OgnlContext@a534ca73 root:[com.provence.zbtb.web.enterprise.EnterpriseListAction@1f99d54, com.opensymphony.xwork2.DefaultTextProvider@1bdb8af] value: [Ljava.lang.String;@c8148frnognl.MethodFailedException: Method "setId" <em>failed</em> for <em>object</em> com.provence.zbtb.web.enterprise.EnterpriseListAction@1f99d54 [java.lang.NoSuchMethodException: setId([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:823)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:964)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:75)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:131)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:50)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:101)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)rn at ognl.SimpleNode.setValue(SimpleNode.java:246)rn at ognl.Ognl.setValue(Ognl.java:476)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:155)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:143)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:273)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rn/-- Encapsulated exception ------------\rnjava.lang.NoSuchMethodException: setId([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:810)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:964)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:75)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:131)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:50)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:101)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)rn at ognl.SimpleNode.setValue(SimpleNode.java:246)rn at ognl.Ognl.setValue(Ognl.java:476)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:155)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:143)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:273)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rn\--------------------------------------/rnexpr: id val: [Ljava.lang.String;@c8148f context: ognl.OgnlContext@a534ca73 root:[com.provence.zbtb.web.enterprise.EnterpriseListAction@1f99d54, com.opensymphony.xwork2.DefaultTextProvider@1bdb8af] value: [Ljava.lang.String;@c8148frnn[b]问题补充:[/b]npan_java 大哥,java.lang.NoSuchMethodException: setId([Ljava.lang.String;) 这个方法当然没有了 因为我的IdL类型是int的呀rnrnsetId(java.lang.int)这个方法当然是有的!rnrn不过还是感谢pan_java大哥了
Failed to invoke remote proxy method
我只是在TradeMgrService里添加了一个updateSubStatusNote 方法,并完善了TradeMgrServiceImpl里的对应实现,始终报not found <em>method</em> "updateSubStatusNote",究竟是什么原因?错误信息如下:rncom.alibaba.dubbo.rpc.RpcException: Failed to invoke remote proxy <em>method</em> updateSubStatusNote to registry://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=octopus-server-trade&check=false&dubbo=2.8.4-SNAPSHOT&export=dubbo%3A%2F%2F115.29.199.6%3A20006%2Fcom.ejoined.octopus.api.trademgr.service.TradeMgrService%3Fapplication%3Doctopus-server-trade%26cluster%3Dfailsafe%26default.service.filter%3DeTrace%26dubbo%3D2.8.4-SNAPSHOT%26generic%3Dfalse%26interface%3Dcom.ejoined.octopus.api.trademgr.service.TradeMgrService%26loadbalance%3Droundrobin%26<em>method</em>s%3DupdateTradeAddress%2CqueryTradeSubStatus%2CqueryTradeByPage%2Csave%2CqueryTradeExp%2CaddTradeOuterAccount%2CfindList%2CupdateTradeGoods%2CqueryTradeAddress%2Cdelete%2CfindTradeOuterAccount%2CmodifyTradeOuterAccount%2Cget%2CauditRefund%2CjudgeCanUpdateStatus%2CqueryTransactor%2CqueryAddressLibrary%2CjudgeCanApplyRefund%2CupdateTradeInfo%2CapplyRefund%2CqueryTradeOperLog%2CinsertTradeSubStatus%2CqueryTradeGoods%2CqueryTradeList%2CquerySubStatusTradeByPage%2CupdateSubStatus%2CfindPage%2CquerySubStatusTradeList%2CupdateTradeStatus%26pid%3D26118%26revision%3D1.1.7-SNAPSHOT%26side%3Dprovider%26timestamp%3D1484115661827&file=./.dubbo/dubbo-registry-trade-0.cache&pid=26118&registry=zookeeper&timestamp=1484115661827, cause: Not found <em>method</em> "updateSubStatusNote" in class com.ejoined.octopus.api.trademgr.service.TradeMgrService.rn at com.alibaba.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:76)rn at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:53)rn at com.ejoined.octopus.trace.dubbo.DistributedLogFilter.invoke(DistributedLogFilter.java:74)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rn at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:64)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rn at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:42)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rn at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rn at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:78)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rn at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:70)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rn at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:132)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rn at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rn at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:38)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:113)rn at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:84)rn at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:170)rn at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:52)rn at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:82)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: com.alibaba.dubbo.common.bytecode.NoSuchMethodException: Not found <em>method</em> "updateSubStatusNote" in class com.ejoined.octopus.api.trademgr.service.TradeMgrService.rn at com.alibaba.dubbo.common.bytecode.Wrapper8.invokeMethod(Wrapper8.java)rn at com.alibaba.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:46)rn at com.alibaba.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:72)rn ... 27 morern, dubbo version: 2.8.4-SNAPSHOT, current host: 192.168.1.181rn
struts2类型转换的问题,在线等:ognl.MethodFailedException: Method "setMinCash
struts2类型转换的问题rnrn//--------------------------------- EXCEPTION -----------------------------rnrn2009-11-27 16:20:25,046 WARN [com.opensymphony.xwork2.ognl.OgnlValueStack] - Error setting valuernognl.MethodFailedException: Method "setMinCash" <em>failed</em> for <em>object</em> com.yuyi.pojo.AutoOdds@1583a80 [java.lang.NoSuchMethodException: setMinCash([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:823)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:964)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:75)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:131)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:101)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)rn at ognl.SimpleNode.setValue(SimpleNode.java:246)rn at ognl.ASTChain.setValueBody(ASTChain.java:172)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)rn at ognl.SimpleNode.setValue(SimpleNode.java:246)rn at ognl.Ognl.setValue(Ognl.java:476)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:155)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:143)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:273)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)rn at java.lang.Thread.run(Unknown Source)rnrn//------------------------------ HTML -------------------------------------rnrnrn//=--------------------- 后台 -----------------rnprivate List autoOddsList;rn
Method 'SaveAs' not supported by automation object
varrn oXL, oWB, oSheet, oRng, VArray : Variant;rn SysPath:string;rnbeginrn SysPath:=ExtractFilePath(application.exename);rn Aq.Close;rn Aq.SQL.Add('psp_goodtype');rn Aq.Open;rn while not Aq.Eof dorn beginrn // Start Excel and get Application Objectrn oXL := CreateOleObject('Excel.Application');rn oXL.Visible := false;rn // Get a new workbookrn oWB := oXL.Workbooks.Add;rn oSheet := oWB.ActiveSheet;rnrn // Add table headers going cell by cellrn rn ……rn //get the classrn [color=#FF0000]oXL.SaveAs(SysPath[/color]+'\'+Aq.Fields[3].AsString+'_'+Aq.Fields[4].AsString+'_'+Aq.Fields[5].AsString+'.xls');rn oXL.Workbooks.Close;rn oXL.Close;rn Memo1.Lines.Insert(0,[color=#FF0000]Aq.Fields[3].[/color]AsString+'---'+Aq.Fields[4].AsString+'---'+Aq.Fields[5].AsString);rn Aq.Next;rn end;rnend;rn运行提示Method 'SaveAs' not supported by automation <em>object</em>,难道Delphi操作Excel自动保存还有什么玄机?rn另外读取数据库时如果我不使用fidlds[0]这样的序号来读,使用字段名应该使用哪个方法呢?请举例说明,谢谢!
failed for object com.szy.ResourceAction的问题">解决ognl.MethodFailedException: Method "list" failed for object com.szy.ResourceAction的问题
最恐怖的是你觉得哪也没问题却还是报错,然后一步步的拆分开来试错, 最后发现是一个多么没有剧情的Exception。下面是具体Exception的前面一小部分: ognl.MethodFailedException: Method “list” <em>failed</em> for <em>object</em> com.szy.ResourceAction@28b7e20d [java.lang.ExceptionInInitia
ognl.MethodFailedException这个错误不知道怎么解决
以下是报错信息 2015-1-4 13:32:56 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn 警告: Error
ognl MethodFailedException Method setXX failed for object
ognl MethodFailedException Method setXX <em>failed</em> for <em>object</em>
ognl.MethodFailedException异常解决方法(Struts2)
错误异常: ognl.MethodFailedException: Method "setExchangeActivityBannerImage" <em>failed</em> for <em>object</em> com.hyzy.mall.web.admin.exchange.ExchangeActivityAction@4364c5 [java.lang.NoSuchMethodException: com.hyzy.m
failed for object">struts2异常ognl.MethodFailedException: Method "setId" failed for object
页面传递的数据类型错误导致struts2抛出ognl.MethodFailedException异常。 解决方式: 修改log4j的日志输出级别. log4j.properties文件添加如下内容: log4j.logger.com.opensymphony.xwork2.util.OgnlUtil=error log4j.logger.com.opensymphony.xwork
问下关于TypeError, Object [object Object] has no method 'appendChild' 的问题
[code=javascript]rnvar reader_magazine = $("reader_magazine");rn for ( var i = 0; i < typeAll.length; i++) rn for ( var j = 0; j < typeOne.length; j++) rn if (typeAll[i] == typeOne[j]) rn var checkBox = document.createElement("input");rn checkBox.setAttribute("type","checkbox");rn checkBox.setAttribute("id", typeOne[j]);rn checkBox.setAttribute("name", "typeBox");rn reader_magazine.appendChild(checkBox);rn rn rn rn[/code]rn这是我的js代码部分~~我觉得没什么问题~但是一直会报错TypeError, Object [<em>object</em> Object] has no <em>method</em> 'appendChild' 求指点
Jqgrid问题,Object [object Object] has no method 'jqGrid' ?
[img=https://img-bbs.csdn.net/upload/201506/09/1433833316_116843.png][/img]rnrn代码:rn@rn ViewBag.Title = "Index";rnrn@section Scripts rn @Scripts.Render("~/bundles/index")rnrn rn rnrn rn rn rn rn rn rn Indexrnrn rn @Html.ActionLink("Create New", "Create")rnrn rn 片名: rn rn @Html.ActionLink("查看所有", "Index")rn rn rn @ViewBag.Messagern rnrn rn
求解object[object object] has no method 'getElementByTagName'错误
//获取IDrnvar $ = function (id) return typeof id === "string" ? document.getElementById(id) : id;rn rn//获取tagNamernvar $$ = function (tagName, oParent) return (oParent || document).getElementsByTagName(tagName);rn rn//自动播放对象rnvar AutoPlay = function (id) this.initialize(id);rn rnAutoPlay.prototype = rn initialize: function (id)rn rn var oThis = this;rn this.oBox = $(id);rn this.oUl = $$("ul", this.oBox)[0];rn this.aImg = $$("img", this.oBox);rn this.timer = null;rn this.autoTimer = null;rn this.iNow = 0;rn this.creatBtn();rn this.aBtn = $$("li", this.oCount); rn this.toggle();rn this.autoTimer = setInterval(function ()rn rn oThis.next()rn , 3000); rn this.oBox.onmouseover = function ()rn rn clearInterval(oThis.autoTimer)rn ;rn this.oBox.onmouseout = function ()rn rn oThis.autoTimer = setInterval(function ()rn rn oThis.next()rn , 3000) rn ;rn for (var i = 0; i < this.aBtn.length; i++)rn rn this.aBtn[i].index = i;rn this.aBtn[i].onmouseover = function ()rn rn oThis.iNow = this.index;rn oThis.toggle()rn rn rn ,rn creatBtn: function ()rn rn this.oCount = document.createElement("ul");rn this.oFrag = document.createDocumentFragment();rn this.oCount.className = "count";rn for (var i = 0; i < this.aImg.length; i++)rn rn var oLi = document.createElement("li");rn oLi.innerHTML = i + 1;rn this.oFrag.appendChild(oLi)rn rn this.oCount.appendChild(this.oFrag);rn this.oBox.appendChild(this.oCount)rn ,rn toggle: function ()rn rn for (var i = 0; i < this.aBtn.length; i++) this.aBtn[i].className = "";rn this.aBtn[this.iNow].className = "current";rn this.doMove(-(this.iNow * this.aImg[0].offsetHeight))rn ,rn next: function ()rn rn this.iNow++;rn this.iNow == this.aBtn.length && (this.iNow = 0);rn this.toggle()rn ,rn doMove: function (iTarget)rn rn var oThis = this;rn clearInterval(oThis.timer);rn oThis.timer = setInterval(function () rn rn var iSpeed = (iTarget - oThis.oUl.offsetTop) / 5;rn iSpeed = iSpeed > 0 ? Math.ceil(iSpeed) : Math.floor(iSpeed);rn oThis.oUl.offsetTop == iTarget ? clearInterval(oThis.timer) : (oThis.oUl.style.top = oThis.oUl.offsetTop + iSpeed + "px")rn , 30) rn rn;rnwindow.onload = function()rnrn new AutoPlay("slide");rn;rnrnrnrn提示错误:rnvar $$ = function (tagName, oParent) return (oParent || document).getElementsByTagName(tagName);rnuncaught typeerror: <em>object</em>[<em>object</em> <em>object</em>] has no <em>method</em> 'getElementByTagName'rnrn求解~~
Invocation of init method failed; nested exception is java.lang.NullPointerExcep
这是我的配置,启动tomcat的时候就报下面的错。求大神指引。。。。。。。rnrn rn rn WEB-INF/classes/config/database.propertiesrn rn rn rnrn rn rn rn $dataSource.driverClassrn rn rn rn rn $database.urlrn rn rn rn rn $database.userNamern rn rn rn rn $database.passwordrn rn rn rn rn $dataSource.initialPoolSizern rn rn rn rn $dataSource.minPoolSizern rn rn rn rn $dataSource.maxPoolSizern rn rn rn rn $dataSource.maxIdleTimern rn rn rn rn rn rn rn cn.miugo.navigation.domain.vipCart.Cardrn rn rn rn rn $hibernate.dialectrn rn $hibernate.show_sqlrn $hibernate.format_sqlrn rn $hibernate.hbm2ddl.autorn rn rn rnrnrnrnrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [E:\eclipse-projects\dev\navigation\codes\navigation\miugo-navigation-parent\miugo-navigation-store-manager-backoffice\miugo-navigation-store-manager-backoffice-webapp\target\storemgr\WEB-INF\classes\META-INF\spring\datasource-bean-context.xml]: Invocation of init <em>method</em> <em>failed</em>; nested exception is java.lang.NullPointerExceptionrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:587)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)rn at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:655)rn at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1628)rn at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.NullPointerExceptionrn at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:323)rn at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1206)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:717)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:188)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)rn ... 26 morern
java.lang.IllegalStateException: Failed to find method for hash:-3768496743718371378
有谁知道java.lang.IllegalStateException: Failed to find <em>method</em> for hash:-3768496743718371378,是什么原因,我是在用客户端调用EJB时出现的。急盼回复。
这个是报道啥错呀,表看不动
-
ognl.MethodFailedException:****[java.lang.StackOverflowError]
最近做项目出现一个java.lang.StackOverflowError异常解决办法。 经过试验,两种解决方式 原因 StackOverflowError是由于当前线程的栈满了 也就是函数调用层级过多导致。 比如死递归。 如: public String homePage(){ this.findAllNews(); return “shouye”; } 代码...
failed for object cn.itcast.action.UserAction">SSH整合报错ognl.MethodFailedException: Method "execute" failed for object cn.itcast.action.UserAction
只贴出一部分错误信息ognl.MethodFailedException: Method &quot;execute&quot; <em>failed</em> for <em>object</em> cn.itcast.action.UserAction@13f446bc [java.lang.NoSuchMethodError: org.hibernate.Session.getFlushMode()Lorg/hibernate/Flush...
ssh框架项目中的ognl.MethodFailedException错误
最近在做一个SSH框架的项目,我这里的业务需求是要接入七牛的服务,所以我在服务端写了一个getToken来获取七牛的token 但是一直提示我qiniu的jar包中的一个类没有。。我重复导了几次jar
处理异常ognl.MethodFailedException setDate
struts2有默认的类型转的,基本类型都可以转换的: boolean和Boolean:完成字符串和布尔值之间的转换; char和Character:完成字符串和字符之间的转换;  int和Integer:完成字符串和整形之间的转换;  long和Long:完成字符串和长整形之间的转换;  flota和Float:完成字符串和单精度浮点值之间的转换;  double和Double:完成
Invocation of init method failed; nested exception is java.lang.NoSuchMethodErro
Context initialization <em>failed</em>rnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'FacadeExporterAction' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'Facade_Cms_Target' while setting bean property 'cmsFacade'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'Facade_Cms_Target' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'initSystemService' while setting bean property 'initSystemService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'initSystemService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init <em>method</em> <em>failed</em>; nested exception is java.lang.NoSuchMethodError: org.springframework.orm.hibernate3.HibernateTemplate.execute(Lorg/springframework/orm/hibernate3/HibernateCallback;Z)Ljava/lang/Object;rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn启动的时候出现如上问题如何解决?rn查了半天都没解决。。。
自定义控件怎么setId
方案一:通过调用View.generateViewId()作为setId的参数,但此方案不是最佳方案,因为View.generateViewId()方法必须为SDK版本17及以上才行,否则报错。(但也有可以通过自写一个Utils.generateViewId()解决,不过既然有方案二更好的方法,就不过多赘述此方法了) 1 my_view.setI
关于linearLayout 的setId()方法,,
logoLinear1 = new LinearLayout(this);rn logoLinear1.setLayoutParams(new LinearLayout.LayoutParams(rn LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT));rn logoLinear1.setOrientation(LinearLayout.VERTICAL);rn logoLinear1.setId(111);rn rn textView = new TextView(this);rn textView.setLayoutParams(new LinearLayout.LayoutParams(rn LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT));rn logoLinear1.addView(textView);rn rn adapter = new ArrayAdapter(this,[color=#FF0000]logoLinear1.getId(),[/color]strs);rnrnrn08-17 01:31:08.695: ERROR/AndroidRuntime(559): android.content.res.Resources$NotFoundException: Resource ID #0x6frnrnrn这是为什么呢,,
runtime error:Paste method of Worksheet class failed ???
Pls see my code:rn Sheets("ClosedLifeCycle").Selectrn Selection.AutoFilterrn Selection.AutoFilter Field:=37, Criteria1:="Verification"rn Range("A1:AR2413").Selectrn Selection.Copyrn Sheets("Tobeverified").Selectrn Range("A1").Selectrn ActiveSheet.Pasternrn当我执行到最后一句 ActiveSheet.Paste, 出现了如题所示的runtime error,但是数据倒是paste上去了。 奇怪的是,当我用excel record macro时, 根本就不产生最后一条paste 语句。rnrn有谁知道可能的原因吗?rnrnThanks!
代码重构(一)-用函数对象代替函数(replace method with method object)
用函数对象代替函数(replace <em>method</em> with <em>method</em> <em>object</em>)
failed for object解决">ognl.MethodFailedException: Method "setDate" failed for object解决
环境:MyEclipse6.5+ Tomcat6.0.18+Struts2.1+Hibernate3.2+Spring2.5.6+MySQL Server 5.1问题:通过时间查询记录列表时报如下错误:ognl.MethodFailedException: Method &quot;setDate&quot; <em>failed</em> for <em>object</em> com.axt.po.TbRecord@1d4a34c [jav...
failed for object">org.apache.ibatis.ognl.MethodFailedException: Method "size" failed for object
1 问题描述 mybatis3.2.x版本,做压力测试,并发200用户,出现了如下异常.org.apache.ibatis.builder.BuilderException: Error evaluating expression 'size() > 0'. Cause: org.apache.ibatis.ognl.MethodFailedException: Method "size" fai
struts2中关于ognl.MethodFailedException错误的解决办法
在使用struts2的时候经常会出现:   ognl.MethodFailedException: Method "setDenddt" <em>failed</em> for <em>object</em>com.drw.pojo.KrigPrewarn@374a374a [java.lang.NoSuchMethodException: com.drw.pojo.KrigPrewarn.setDenddt([Ljava.la
failed for object Itemer/org.springframework.orm.hibernat">ognl.MethodFailedException: Method "setId" failed for object Itemer/org.springframework.orm.hibernat
java项目ssh框架导入数据时报错: 19:17:12,518 WARN OgnlValueStack:64 - Error setting expression 'iid' with value '[Ljava.lang.String;@52b1eaed' ognl.MethodFailedException: Method "setIid" <em>failed</em> for <em>object</em> Iteme
the static method cannot hide instance method from object
为什么 父类如果有 proctected 的方法 假如 为 rnrn[code=Java]proctected void fo()[/code]rnrn子类 如果 覆盖fo()的rnrn子类的fo为什么不能是rnrn[code=Java]rnpublic static void fo()rnrnrn[/code]rnrn也就是 为什么不能用static方法覆盖 proctected 的方法rnrn说明原因/../.........谢谢
Uncaught TypeError: Object [object HTMLAnchorElement] has no method 'hasClass
[code=javascript]function CheckBox(parentId) rn this.parentId = parentId;rn this.value = 0;rn this.checkBox = $('');rnrn //初始化rn var that = this;rn (function init() rn that.checkBox.appendTo(that.parentId);rn rn that.checkBox.click(function () rn if (!this.hasClass('checkboxa_ban') && !this.hasClass('checkboxa_lose')) rn if (this.hasClass('checkboxa_nonce')) rn this.removeClass('checkboxa_nonce');rn else rn this.addClass('checkboxa_nonce');rn rn rn );rn )();rnrn[/code] rntips:rnUncaught TypeError: Object [<em>object</em> HTMLAnchorElement] has no <em>method</em> 'hasClass'rnrnwhy?
TextView的setId疑问?
[code=Java]public class EditText1 extends Activity rn /** Called when the activity is first created. */rn EditText t=null;rn Context c=null;rn @Overridern public void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.main);rnrn t=(EditText)findViewById(R.id.editText1);rn t.setText("abc");rn rn rn rn rnrnrn[/code]我的源码是这样的rnrnrn但是替换为SetIdrn[code=Java]rnpublic class EditText1 extends Activity rn /** Called when the activity is first created. */rn EditText t=null;rn Context c=null;rn @Overridern public void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.main);rnrn t=new EditText(this);rn t.setId(R.id.editText1);rn t.setText("abc");rn rn rn rn rnrn[/code]就不可以设置“abc”,请问什么?
java.lang.NoSuchMethodException: setId([Ljava.lang.String;)
写的一段程序可以正常运行,运行过程中报出以下异常:[code=text]rn2012-12-26 13:19:09 WARN OgnlValueStack:49 - Error setting valuernognl.MethodFailedException: Method "setId" <em>failed</em> for <em>object</em> 系统菜单:ID=0,菜单名=null,URL=null [java.lang.NoSuchMethodException: setId([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:823)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:964)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:75)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:131)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:101)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)rn at ognl.SimpleNode.setValue(SimpleNode.java:246)rn at ognl.ASTChain.setValueBody(ASTChain.java:172)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)rn at ognl.SimpleNode.setValue(SimpleNode.java:246)rn at ognl.Ognl.setValue(Ognl.java:476)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:155)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:143)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:273)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.esse.common.service.listener.CheckSessionFilter.doFilter(CheckSessionFilter.java:63)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.esse.common.service.listener.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:84)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)rn at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)rn at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)rn at java.lang.Thread.run(Thread.java:619)rnrn[/code]
Object doesn't support this property or method
我在使用别人写好的JQuery Plugin的时候。rn总提示 Object doesn't support this property or <em>method</em> 错误。rn代码错在rn[code=JScript]rnfunction checkForm() rn var isValid = $('#searchForm').validation( // 出错行.rn ttt : [type:'date',rn dateFormat:'YMD',rn msg:'test',rn focus:true,rn empty:true]rn );rnrn[/code]rnrnPlugin的代码太长rn我现在想弄清楚 Object doesn't support this property or <em>method</em> 的错误是什么意思。rn网上找了说画面有元素名是submit而导致的错误。但是我这不用submit之类的东西,也没有submit的名。rnrn还有就是我正常include了这个js文件。
Struts2 OGNL表达式访问普通类的构造方法取不出值
-
Ognl表达式基本原理和使用方法
https://www.cnblogs.com/cenyu/p/6233942.html
Ognl表达式、el表达式、jstl标签之间的区别
-
OGNL之简述
一、简介 OGNL(Object-Graph Navigation Language)的全称是对象图导航语言,它是一种功能强大的开源表达式语言,比EL(只能从域或内置对象中)表达式更强大,使用这种表达式语言,可以通过某种表达式语法,OGNL可以存取Java任意对象的任意属性,调用Java对象的方法,同时能够自动实现必要的类型转换。如果把表达式看作是一个带有语义的字符串,那么OGNL无疑成为了这个...
OGNL表达式
OGNL表达式 *OGNL三要素: 表达式 OgnlContext 上下文 Root 根 *OGNL作用: [1]支持对象的操作,调用对象的方法 [2]支持静态成员访问 [3]支持赋值操作与表达串联 [4]访问OGNL上下文,访问ActionContext [5]操作集合对象。 ...
动态代理(invoke(Object proxy,Method method,Object[] args)),求解释参数proxy及其使用方法
[img=http://img.my.csdn.net/uploads/201211/21/1353470166_8133.jpg][/img]rn求解释参数proxy及其使用方法rnObject o = <em>method</em>.invoke(obj, args);rn这个返回值有什么用啊?怎么用啊?rn有个小例子就最好不过了,小弟刚入行,谢谢各位大峡了。
Uncaught TypeError: Object # has no method 'datepicker'
[code=Java] rn rn rn rn rn [/code]rnrn[code=Java]Date: [/code]rnrn[code=Java]rn rn[/code]rnrnUncaught TypeError: Object # has no <em>method</em> 'datepicker'rn(anonymous function)Booking1.jsp:294rnjQuery.fn.extend.readyjquery.min.js:27rnjQuery.extend.ready.jQuery.readyListjquery.min.js:27rnjQuery.extend.eachjquery.min.js:21rnjQuery.extend.ready rn不知什麼事情?原本是用到,不過近日就用不到,真奇怪rn
客户端错误!method 'getconrec' not supported by automation object!
我在应用程序端写了一个getconrec,然后在客户端调用。出现上述错误,客户端使用SocketConnection连接服务器,请问这是什么问题?
object doesn't support this property or method
rn 寝室管理rn rn rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn 选择寝室rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnrnrn这个错误在141行根本就没有141,请大家帮帮忙帮我解决这问题 <em>object</em> doesn't support this property or <em>method</em>
“Method 'Visiable' not support by Automation Object'的错误.!!!!!!!
我想实现在ListView1双击选中某一项,打开新IE窗口rn语句如下:rn varrn url:string;rn app:variant;rnbeginrn url:=listview1.items.item[listview1.selected.index].SubItems.string[0];rn app:=CreateOLEObject('InternetExplorer.Application');rn app.Navigate(url);rn App.Visiable:=True;rnend;rn运行触发该事件,会产生rn“Method 'Visiable' not support by Automation Object'的错误.rnrn而同样的一段代码用一个Button来实现打开新的IE窗口,就不会有错误rn app:=CreateOLEObject('InternetExplorer.Application');rn app.Navigate('http://www.xxxxx');rn App.Visiable:=True;rn不知如何解决?
永磁同步电机伺服驱动下载
由于永磁同步电机伺服系统能够实现高精度、高动态性能、 大范围的速度伺服与位置伺服控制,永磁同步电机控制系统的研究已成为数控机 床伺服系统研究的重点之一。本文围绕全数字化永磁同步电机伺服驱动器展开研 究,全文主要分为四个部分,主要内容如下: 一、描述了永磁同步电机的数学模型以及磁场定向控制原理,并在此基础上 运用Matlab/Simulink 建立了永磁同步电机位置伺服控制系统的仿真模型。 二、在系统的硬件设计上,使用TMS320LF2407DSP 数字信号处理芯片,并 辅以IR 公司的专用交流伺服控制芯片IRMCK201 和智能功率IPM 模块 IRAMX16UP60A 组成功率变换与驱动电路 相关下载链接:[url=//download.csdn.net/download/hhzzhh0502/2443220?utm_source=bbsseo]//download.csdn.net/download/hhzzhh0502/2443220?utm_source=bbsseo[/url]
c语言查找算法下载
丰富的C语言查找算法,源代码。可直接编译,欢迎下载学习! 相关下载链接:[url=//download.csdn.net/download/moxihang/3656006?utm_source=bbsseo]//download.csdn.net/download/moxihang/3656006?utm_source=bbsseo[/url]
phpdesigner_7_2.5破解版下载
phpdesigner_7_2.5破解版 相关下载链接:[url=//download.csdn.net/download/wangxinjavaee/4650986?utm_source=bbsseo]//download.csdn.net/download/wangxinjavaee/4650986?utm_source=bbsseo[/url]
我们是很有底线的