ognl.MethodFailedException: Method "setEndtime" failed for object [问题点数:20分,结帖人zp87530]

Bbs2
本版专家分:219
结帖率 88.89%
Bbs5
本版专家分:3239
Bbs5
本版专家分:3239
Bbs2
本版专家分:219
Bbs5
本版专家分:3239
Bbs2
本版专家分:219
Bbs2
本版专家分:231
Bbs1
本版专家分:88
Bbs1
本版专家分:0
Bbs1
本版专家分:7
Bbs1
本版专家分:0
Bbs1
本版专家分:10
Bbs1
本版专家分:3
Bbs1
本版专家分:5
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:21
Bbs1
本版专家分:21
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现在情况是图片不动。。。请问到底是什么情况?
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这个错误是什么原因造成的?谢谢!
运行期错误: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执行到×处即发生错误,请指教
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
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 '~' of object '~' failed.
Method '~' of <em>object</em> '~' <em>failed</em>.rn我用VB发布一个dll的时候就出这个错了。先前都是对的,换了个较低版本的dll引用后就这样了。。。但项目需要用较低版本的office啊,各位大大,怎么解决啊?
Method Object理解与应用
背景 这段时间在重构自己写过的烂代码(尴尬)。本着单一原则想把堆成一堆的代码按照功能拆分成一个个小方法,按照顺序整齐摆放,清晰好看易读有条理。但是遇到了问题,这堆代码涉及到了较多的变量,而且不同部分代码的变量都是另一部分代码需要的参数,所以没有办法单纯的抽出成一个个小方法。 举个例子 比如这一堆代码是一个更新活动的逻辑,其中包含活动的时间转换,活动信息校验,活动额外信息的获取,活动信息拼...
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]这样的序号来读,使用字段名应该使用哪个方法呢?请举例说明,谢谢!
问下关于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时出现的。急盼回复。
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查了半天都没解决。。。
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>)
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说明原因/../.........谢谢
ognl.MethodFailedException:求大神解决
报的错误信息:rnognl.MethodFailedException: Method "setImgs" <em>failed</em> for <em>object</em> com.slspmall.action.GoodAction@608f91 [java.lang.NoSuchMethodException: com.slspmall.action.GoodAction$$EnhancerByCGLIB$$5c208e88.setImgs([Ljava.lang.String;)]rnrn页面rnrnrnrn Action中rn public File getImgs() rn return imgs;rn rnrn public void setImgs(File imgs) rn this.imgs = imgs;rn rnrnrn求大神解决
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?
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文件。
动态代理(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有个小例子就最好不过了,小弟刚入行,谢谢各位大峡了。
客户端错误!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>
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
谷歌浏览器出现Object # has no method 'setActive' 问题
最近在调js的兼容性问题,rn[code=javascript]function creditNotsId(returned_notes,xx,yy)rn var notsId = document.form1.notsId.value;rn notsId = parseFloat(notsId) + 1;rn var notsName = "imgLarruPing"+ notsId;rn var noteSize = returned_notes[2].substring(0,returned_notes[2].indexOf("px"));rn var pzText = ""+returned_notes[0]+"";rn initialize(notsId,xx,yy,pzText);rn document.form1.notsId.value = notsId;rn infoNotes(notsName,noteSize);rn getDivNotes(notsId,noteSize);rn document.getElementById("pageI").value = parseFloat(parent.ap_top.Form1.pageI.value);rn document.getElementById("viewBmp").setActive();rn [/code] rnrndocument.getElementById("viewBmp").setActive();谷歌运行到这里总是出现rnUncaught TypeError: Object # has no <em>method</em> 'setActive' rn请各位大侠帮帮忙,怎么解决?
object doesn't support this method or property
HTML的一个页面,在localhost环境下。rnrnSetMenu是在body onLoad时触发。rnrnfunction SetMenu() rn var wnt=new ActiveXObject("WScript.Network"); rn //alert("The computer name is"+wnt.ComputerName+",User name is"+wnt.UserName+",DOMAIN is "+wnt.UserDomain); rn document.getElementByID("username").value=wnt.UserNamernrnrn这个alert是可以出来的,但是下面这句document.getElementByID("username").value=wnt.UserName则不行,会提示:rn<em>object</em> doesn't support this <em>method</em> or propertyrnrn请问这是什么问题,如何解决?rn
“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不知如何解决?
Method called on illegally casted object in process
自己定义了一个类,如下所示。rn在a.cpp中这样调用:rnT_IMAGE_PROCESSING *dip = NULL;rndip = new T_IMAGE_PROCESSING(imPara->Handle);rn但是,打开codeguard老是报错:rnMethod called on illegally casted <em>object</em> in process: xxx.exe(4268) - src\xxx.cpp#45rnAttempt to access 131140 byte(s) at 0x02E6DB20. The 'this' pointer points to heap block 0x02E6DB20 which is only 131132 bytes long.rnThe <em>object</em> (0x02E6DB20) [size: 131132 bytes] was created with newrn为什么?rnrn类的定义如下:rnT_IMAGE_PROCESSING::T_IMAGE_PROCESSING(HWND hwnd)rnrn i_array_factor = 0;rn i_row_num = MAX_NUM_ROWS;rn i_line_factor =0;rn f_edge_factor =0.0;rn i_convt_m_size =MAX_NUM_ROWS * LN_SZ_PIX;rnrn FactorApper =1;rnrn bPersistence =false;rnrn BufAverage = new BYTE[MAX_NUM_ROWS * LN_SZ_PIX];rn ptrBufAverage = BufAverage;rn BufConvLog = new BYTE[MAX_NUM_ROWS * LN_SZ_PIX];rnrn//***************************************************************************rn//IP_OBJ_STARTrnT_IMAGE_PROCESSING::~T_IMAGE_PROCESSING()rnrn if (BufConvLog)rn rn delete BufConvLog;rn BufConvLog = NULL;rn rn if (BufAverage)rn rn delete BufAverage;rn BufAverage = NULL;rn rn ptrBufAverage = NULL;rn
紧急求助:Method called on illegally casted object
1、在创建一个类(由抽象类派生)的对象时,有如下错误提示:rnMethod called on illegally casted <em>object</em>: Attempt to access 480 byte(s) atrn 0x01229B94. The 'this' pointer points to heap block 0x01229B94 which is onlyrn 469 bytes long.rnrn2、但是在main()函数中定义相同的类型对象时,没有任何错误。rnrnrn请各位帮忙指出可能出错的原因!
Method invoke(Object obj, Object... args)
参数 为什么还有...号,源代码里的方法也有,这是什么语法rnrnrninvoke(throwable, new Object[] cause );这样调用,第二个参数 是个数组对象,如果一个方法有多个参数 ,数组里的参数类型怎么与方法参数匹配,从数组 里第0个。。。到第n个,匹配方法的从左到右的顺序吗
Error calling method of a PBNI object
PB调用WEB SERVICE 时,有时返回这样的错误,但有时又是正常的,请路过的帮看下。
method 'java.lang.String java.lang.String.trim()' on a null object refere
新手[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/38.gif][/img]求助rn5-24 02:49:39.422 29044-29044/baidumapsdk.demo E/AndroidRuntime: FATAL EXCEPTION: mainrn Process: baidumapsdk.demo, PID: 29044rn java.lang.RuntimeException: Unable to start activity ComponentInfobaidumapsdk.demo/baidumapsdk.demo.map.OverlayDemo: java.lang.NullPointerException: Attempt to invoke virtual <em>method</em> 'java.lang.String java.lang.String.trim()' on a null <em>object</em> referencern rnrn[code=java]package baidumapsdk.demo.map;rnrnimport android.app.Activity;rnimport android.content.Intent;rnimport android.graphics.Color;rnimport android.os.Bundle;rnimport android.provider.ContactsContract;rnimport android.util.Log;rnimport android.view.View;rnimport android.view.View.OnClickListener;rnimport android.widget.Button;rnimport android.widget.CheckBox;rnimport android.widget.SeekBar;rnimport android.widget.Toast;rnrnimport com.baidu.mapapi.map.BaiduMap;rnimport com.baidu.mapapi.map.BaiduMap.OnMarkerClickListener;rnimport com.baidu.mapapi.map.BaiduMap.OnMarkerDragListener;rnimport com.baidu.mapapi.map.BitmapDescriptor;rnimport com.baidu.mapapi.map.BitmapDescriptorFactory;rnimport com.baidu.mapapi.map.GroundOverlayOptions;rnimport com.baidu.mapapi.map.InfoWindow;rnimport com.baidu.mapapi.map.InfoWindow.OnInfoWindowClickListener;rnimport com.baidu.mapapi.map.MapStatusUpdate;rnimport com.baidu.mapapi.map.MapStatusUpdateFactory;rnimport com.baidu.mapapi.map.MapView;rnimport com.baidu.mapapi.map.Marker;rnimport com.baidu.mapapi.map.MarkerOptions;rnimport com.baidu.mapapi.map.MarkerOptions.MarkerAnimateType;rnimport com.baidu.mapapi.map.OverlayOptions;rnimport com.baidu.mapapi.model.LatLng;rnimport com.baidu.mapapi.model.LatLngBounds;rnimport com.baidu.mapapi.utils.SpatialRelationUtil;rnrnimport org.json.JSONArray;rnimport org.json.JSONObject;rnrnimport java.util.ArrayList;rnimport java.util.List;rnrnimport baidumapsdk.demo.BMapApiDemoMain;rnimport baidumapsdk.demo.R;rnimport okhttp3.OkHttpClient;rnimport okhttp3.Request;rnimport okhttp3.Response;rnrn/**rn * 演示覆盖物的用法rn */rnpublic class OverlayDemo extends Activity rnrn /**rn * MapView 是地图主控件rn */rnrn private String array[][] = new String[1000][9];rn private MapView mMapView;rn private BaiduMap mBaiduMap;rn private Marker[] mMarker;rn rnrn private void sendRequestWithOkHttp()rn new Thread(new Runnable() rn @Overridern public void run() rn try rn OkHttpClient client=new OkHttpClient();rn Request request= new Request.Builder()rn .url("http://api.map.baidu.com/geodata/v3/poi/list?geotable_id=168402&page_size=200&ak=pgzsdGsmgmlPj55SP0BRVzk2oAvjjHcj")rn .build();rn Response response = client.newCall(request).execute();rn String responseData=response.body().string();rn if(response.isSuccessful())rn Log.d("OKHttp",responseData);rnrn rnrnrn //if(!TextUtils.isEmpty(responseData))rn parseJSONWithJSONObject(responseData);rnrn catch (Exception e)rn e.printStackTrace();rn rn rn ).start();rn rn private void showResponse(final String response)rn runOnUiThread(new Runnable() rn @Overridern public void run() rn rn );rn rnrn public void parseJSONWithJSONObject(String jsonData)rn rn try rn JSONObject jsonObject=new JSONObject(jsonData);rn JSONArray jsonArray=jsonObject.getJSONArray("pois");rnrn for(int i=0;i latlist = new ArrayList();rn rn // ArrayList lable = new ArrayList();rn //取到所有经纬度rn for (int k = 0; k < array.length; k++) rn double lat=Double.parseDouble(array[k][5]);double lng=Double.parseDouble(array[k][4]);rn LatLng allLat = new LatLng(lat, lng);rn latlist.add(allLat);rn rn //循环所有覆盖物rn for (int i = 0; i < array.length; i++) rn //判断点击的覆盖物rn if (marker == mMarker[i]) rn //获取点击的这个覆盖物的经纬rn double lat=Double.parseDouble(array[i][5]);double lng=Double.parseDouble(array[i][4]);rn // LatLng clicklat = new LatLng(lat, lng);rn //移除点击的这个覆盖物的经纬度rn latlist.remove(i);rn //boolean is = false;rn //判断点击的覆盖物是否被重叠rnrnrn rn rnrn return true;rn rn rn );rn rnrn rnrn /**rn * 清除所有Overlayrn *rn * @param viewrn */rn public void clearOverlay(View view) rn mBaiduMap.clear();rn /* mMarkerA = null;rn mMarkerB = null;rn mMarkerC = null;rn mMarkerD = null;*/rn rnrn /**rn * 重新添加Overlayrn *rn * @param viewrn */rn public void resetOverlay(View view) rn //clearOverlay(null);rn // initOverlay();rn rnrn /* private class SeekBarListener implements SeekBar.OnSeekBarChangeListener rnrn @Overridern public void onProgressChanged(SeekBar seekBar, int progress,rn boolean fromUser) rn // TODO Auto-generated <em>method</em> stubrn // float alpha = ((float) seekBar.getProgress()) / 10;rn if (mMarkerA != null) rn mMarkerA.setAlpha(alpha);rn rn if (mMarkerB != null) rn mMarkerB.setAlpha(alpha);rn rn if (mMarkerC != null) rn mMarkerC.setAlpha(alpha);rn rn if (mMarkerD != null) rn mMarkerD.setAlpha(alpha);rn rn rnrn @Overridern public void onStartTrackingTouch(SeekBar seekBar) rn // TODO Auto-generated <em>method</em> stubrn rnrn @Overridern public void onStopTrackingTouch(SeekBar seekBar) rn // TODO Auto-generated <em>method</em> stubrn rnrn */rnrn @Overridern protected void onPause() rn // MapView的生命周期与Activity同步,当activity挂起时需调用MapView.onPause()rn mMapView.onPause();rn super.onPause();rn rnrn @Overridern protected void onResume() rn // MapView的生命周期与Activity同步,当activity恢复时需调用MapView.onResume()rn mMapView.onResume();rn super.onResume();rn rnrn @Overridern protected void onDestroy() rn // MapView的生命周期与Activity同步,当activity销毁时需调用MapView.destroy()rn mMapView.onDestroy();rn super.onDestroy();rn // 回收 bitmap 资源rn rn bdGround.recycle();rn rnrnrn[/code]
The method list(String, Object[]) is ambiguous for the type BaseHibernateDao
@Overridern public List listAll(int pn, int pageSize) rn return list(HQL_LIST_ALL, pn, pageSize);rn rn rn @Overridern public List pre(PK pk, int pn, int pageSize) rn if(pk == null) rn return list(HQL_LIST_ALL, pn, pageSize);rn rn //倒序,重排rn List result = list(HQL_OPTIMIZE_PRE_LIST_ALL, 1, pageSize, pk);rn Collections.reverse(result);rn return result;rn rn @Overridern public List next(PK pk, int pn, int pageSize) rn if(pk == null) rn return list(HQL_LIST_ALL, pn, pageSize);rn rn return list(HQL_OPTIMIZE_NEXT_LIST_ALL, 1, pageSize, pk);rn rnrn @Overridern public void flush() rn getSession().flush();rn rnrn @Overridern public void clear() rn getSession().clear();rn rnrn protected long getIdResult(String hql, Object... paramlist) rn long result = -1;rn List list = list(hql, paramlist);rn if (list != null && list.size() > 0) rn return ((Number) list.get(0)).longValue();rn rn return result;rn rnrn protected List listSelf(final String hql, final int pn, final int pageSize, final Object... paramlist) rn return this. list(hql, pn, pageSize, paramlist);rn rnrnrn /**rn * for inrn */rn @SuppressWarnings("unchecked")rn protected List listWithIn(final String hql,final int start, final int length, final Map> map, final Object... paramlist) rn Query query = getSession().createQuery(hql);rn setParameters(query, paramlist);rn for (Entry> e : map.entrySet()) rn query.setParameterList(e.getKey(), e.getValue());rn rn if (start > -1 && length > -1) rn query.setMaxResults(length);rn if (start != 0) rn query.setFirstResult(start);rn rn rn List results = query.list();rn return results;rn rnrn @SuppressWarnings("unchecked")rn protected List list(final String hql, final int pn, final int pageSize, final Object... paramlist) rn Query query = getSession().createQuery(hql);rn setParameters(query, paramlist);rn if (pn > -1 && pageSize > -1) rn query.setMaxResults(pageSize);rn int start = PageUtil.getPageStart(pn, pageSize);rn if (start != 0) rn query.setFirstResult(start);rn rn rn if (pn < 0) rn query.setFirstResult(0);rn rn List results = query.list();rn return results;rn rn
发布时说 project failed to build! method'~'of object '~' failed ,由于编写的函数和改动的地方较多,我如何快速定位到错误处???
发布时说 project <em>failed</em> to build! <em>method</em>'~'of <em>object</em> '~' <em>failed</em> ,由于编写的函数和改动的地方较多,我如何快速定位到错误处???
insert of OLE object failed,license file required
我在2000下调一个mci32.ocx,每次加这个控件时,PB就报这个错,怎么回事,以前能用的??rnhelprnthanksrn:)
failed">为什么我在vb中打开word 文档时出错?提示为method 'Add' of object "documents" failed
Dim myWord As Word.ApplicationrnDim myWordDoc As Word.Documentrnrn'Set myWord = New Word.Applicationrn'Dim a As ObjectrnrnSet myWord = CreateObject("word.application")rnmyWord.Documents.Add
为什么总出现 method 'open' of object'_Recordset' failed的问题啊,请指教!
Private Sub ADO_OpenRecordsets()rn'++ Open the two recordsetsrnOn Error GoTo ErrorHandlerrn Dim tmp_rs As ADODB.Recordsetrn Set tmp_rs = New ADODB.Recordsetrn tmp_rs.Open "Select * from " & Text2.Text, pAdoCon, adOpenForwardOnly, adLockReadOnlyrn rn attSQLstr = GetAttrFlds(tmp_rs)rn tmp_rs.Closern Set tmp_rs = Nothingrn Set pAdoRs_att = New ADODB.Recordsetrn Set pAdors_geom = New ADODB.Recordsetrn rn '++ Open a new geometry-only recordsetrn pAdors_geom.Open "Select " & sSpatialGeomColNameParam & " from " & Text2.Text, pAdoCon, adOpenForwardOnly, adLockReadOnlyrn '++ Open a new attribute-only recordsetrn pAdoRs_att.Open "Select " & attSQLstr & " from " & Text2.Text, pAdoCon, adOpenForwardOnly, adLockOptimisticrnExit Sub
查询结果二次输出提示“method 'cells' of object '_global'failed”,怎么办?
If rs.EOF = True Thenrn MsgBox "暂时没有符合您要求的数据", , "提示"rn Elsern For ii = 1 To rs.Fields.Countrn Cells(1, ii).Value = rs.Fields(ii - 1).namern Next iirn rn rs.MoveFirstrn rn Do While Not rs.EOFrn jj = jj + 1rn For ii = 1 To rs.Fields.Countrn Cells(jj + 1, ii).Value = rs.Fields(ii - 1).Valuern If Cells(jj, 1).Value <> LastValue Thenrn LastValue = Cells(jj, 1).Valuern ColorIndex = ColorIndex + 1rn End Ifrn Range(Cells(jj + 1, 1), Cells(jj, 4)).Selectrn Selection.Interior.ColorIndex = ColorIndexrn Next iirn rs.MoveNextrn Looprn jj = 0rn End Ifrn xexcel.Visible = Truernrn Set xworkbool = Nothingrn Set xexcel = Nothingrnrn上面这段代码是我用来实现查询结果输出的。当我第一次点击输出按钮时,没有问题,但如果我不退出程序,将输出的表关闭后,换一种查询方法输出时,就会提示“<em>method</em> 'cells' of <em>object</em> '_global'<em>failed</em>”,我应该怎么改这段代码?rn我的查询语句是没有问题的。rn谢谢!rn还有就是我生成的excel表,虽然我把它关闭了。但是,在进程里还是有的,这是什么原因呢?
XML传文件时提示method'open' of object 'IXMLHTTPRequest'failed怎么回事.
都说XML结合VB实现数据传输好,我从来没有成功过,笨笨笨。。。。rn现在急着要用的时候就出错了。rnDim oXML As New XMLhttp rnoXML.open "post", "www.MySite.wom/upload.asp"rnoXML.setRequestHeader "content-type", "text/xml"rnoXML.send "XMLTEst.xml"rn执行到open那句就出错了。rn我错在哪里?哪位大哥有通过的完整例子。
ie.busy的错误问题,老是提示说Method 'busy' of object 'IWebBrowser2' failed,帮帮忙!!!!
运行到ie.busy的错误问题,老是提示说Method 'busy' of <em>object</em> 'IWebBrowser2' <em>failed</em>rn是怎么回事?
VB导出数据到excel,第一次成功,第二次出错,提示:Method 'Sheets' of object '_Global' failed
如题rn我用VB导出数据库的数据到excel,每次导出时第一次都是成功的,第二次就出错,提示rnMethod 'Sheets' of <em>object</em> '_Global' <em>failed</em>rn如果把程序关闭再导出,又可以再成功一次rn请问该问题如何解决?谢谢.
object Object] has no method">Android4.4下js调用java方法报错"Uncaught TypeError: Object [object Object] has no method
webview开发,在Android4.4下js调用java方法报错"Uncaught TypeError: Object [<em>object</em> Object] has no <em>method</em>,同样的写法在4.3及下都没问题,4.4怎么不行,各位有什么解决办法,求分享
求大虾指点 Invocation of init method failed; nested exception is java.lang.NoSuchMeth
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [applicationContext.xml]: Invocation of init <em>method</em> <em>failed</em>; nested exception is java.lang.NoSuchMethodError: com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(Ljava/io/InputStream;Ljava/util/Properties;)Lcom/ibatis/sqlmap/client/SqlMapClient;rn 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:567)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4172)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4671)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:701)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:585)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)rnCaused by: java.lang.NoSuchMethodError: com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(Ljava/io/InputStream;Ljava/util/Properties;)Lcom/ibatis/sqlmap/client/SqlMapClient;rn at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:338)rn at org.springframework.orm.ibatis.SqlMapClientFactoryBean.afterPropertiesSet(SqlMapClientFactoryBean.java:291)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 ... 27 more
method for hash">Exception in thread "main" java.lang.IllegalStateException: Failed to find method for hash
在测试EJB的时候出现这种错~!
Controller 单元测试报异常:Invocation of init method failed
小弟写了一个最简单的控制器测试用例,但是总是报异常,应该是配置方式有问题,以下贴出较详细的代码及异常信息,各位能否帮我决绝这个难题呢?谢谢了...rnrn以下是Controller代码rn[code=Java]rn@Controllerrnpublic class LoginController rn @RequestMapping(value="/login")rn public String login(ModelMap model) rn return "user/login";rn rnrn[/code]rnrn以下是测试用例代码rn[code=Java]rnimport org.junit.Before;rnimport org.junit.Test;rnimport org.junit.runner.RunWith;rnimport org.springframework.test.context.ContextConfiguration;rnimport org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;rnimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;rnrn@RunWith(SpringJUnit4ClassRunner.class)rn@ContextConfiguration(locations= "classpath:applicationContext*.xml", "classpath:dispatcher-servlet.xml" )rnpublic class LoginControllerTest extends AbstractTransactionalJUnit4SpringContextTests rn @Beforern public void setUp() throws Exception rn rnrn @Testrn public void testLoginModelMap() throws Exception rn System.out.println("controller test...");rn rnrn[/code]rnrn以下是dispatcher-servlet.xml配置信息,applicationContext.xml内容和一般配置一样,不另行贴出rn[code=XML]rnrn rn rn rn rnrn rnrn[/code]rnrn以下是异常信息rnjava.lang.IllegalStateException: Failed to load ApplicationContextrn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)rn at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.<em>method</em>Block(SpringJUnit4ClassRunner.java:303)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)rn at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)rn at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:236)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)rn[color=#FF0000]Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0': Invocation of init <em>method</em> <em>failed</em>; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration.[/color]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)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: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:580)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)rn at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)rn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)rn ... 24 morernCaused by: javax.validation.ValidationException: Unable to instantiate Configuration.rn at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:272)rn at org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.afterPropertiesSet(LocalValidatorFactoryBean.java:183)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)rn ... 37 morernCaused by: java.lang.NullPointerExceptionrn at java.util.ResourceBundle.getBundle(ResourceBundle.java:950)rn at org.hibernate.validator.engine.ResourceBundleMessageInterpolator.loadBundle(ResourceBundleMessageInterpolator.java:202)rn at org.hibernate.validator.engine.ResourceBundleMessageInterpolator.getFileBasedResourceBundle(ResourceBundleMessageInterpolator.java:182)rn at org.hibernate.validator.engine.ResourceBundleMessageInterpolator.(ResourceBundleMessageInterpolator.java:81)rn at org.hibernate.validator.engine.ResourceBundleMessageInterpolator.(ResourceBundleMessageInterpolator.java:73)rn at org.hibernate.validator.engine.ConfigurationImpl.(ConfigurationImpl.java:57)rn at org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:43)rn at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:269)rn ... 40 morern2012-09-18 15:40:11,286 DEBUG [Resource Destroyer in BasicResourcePool.close()] com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:566) - com.mchange.v2.c3p0.impl.NewPooledConnection@be834a closed by a client.rnrn 请注意红色标注异常信息,它是由配置项引起的,将这个配置去掉就可以加载成功,否则加载失败。rn 请问各位大侠有没有解决办法?万分感激!
服务器log 报HttpPost Method failed: HTTP/1.1 501 Not Implemented
HttpPost Method <em>failed</em>: HTTP/1.1 501 Not Implementedrn这个是什么错误呢?rn在jboss的log里面每天打出大量的HttpPost Method <em>failed</em>: HTTP/1.1 501 Not Implemented,rn求解~
3C Method 3C Method
3C Method3C Method3C Method3C Method3C Method3C Method
Anonymous Method Anonymous Method
Anonymous MethodAnonymous Method
遇到了ognl.MethodFailedException这个问题怎么破
[code=java][/code]错误是这样的rn23:36:07,204 WARN OgnlValueStack:57 - Error setting expression 'kid' with value '[Ljava.lang.String;@18da687'rnognl.MethodFailedException: Method "setKid" <em>failed</em> for <em>object</em> com.XK.action.CourseSelectAction@1d97cc2 [java.lang.NoSuchMethodException: com.XK.action.CourseSelectAction.setKid([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1305)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1494)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:224)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:546)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:744)rnCaused by: java.lang.NoSuchMethodException: com.XK.action.CourseSelectAction.setKid([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1246)rn ... 68 morern/-- Encapsulated exception ------------\rnjava.lang.NoSuchMethodException: com.XK.action.CourseSelectAction.setKid([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1246)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1494)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:78)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:127)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)rn at ognl.SimpleNode.setValue(SimpleNode.java:301)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:546)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:744)rn\--------------------------------------/rn23:36:07,229 ERROR ParametersInterceptor:33 - Developer Notification (set struts.devMode to false to disable this message):rnUnexpected Exception caught setting 'kid' on 'class com.XK.action.CourseSelectAction: Error setting expression 'kid' with value '[Ljava.lang.String;@18da687'rnCheckcourse-------------0rn遇到了这个问题怎么破这只是其中的一部分rn
ognl.MethodFailedException这个错误不知道怎么解决
以下是报错信息rn[code=java]rn2015-1-4 13:32:56 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warnrn警告: Error setting expression 'classId' with value '[Ljava.lang.String;@229220cb'rnognl.MethodFailedException: Method "setClassId" <em>failed</em> for <em>object</em> norm.cp.model.ClassCp@67db296e [java.lang.NoSuchMethodException: norm.cp.model.ClassCp.setClassId([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1265)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1454)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2225)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:65)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2225)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:127)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)rn at ognl.SimpleNode.setValue(SimpleNode.java:301)rn at ognl.Ognl.setValue(Ognl.java:737)rn at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:198)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:161)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:149)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:276)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:237)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:237)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:179)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)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:237)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at norm.common.myInterceptor.LoginInterceptor.intercept(LoginInterceptor.java:39)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)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.sitemesh.webapp.contentfilter.ContentBufferingFilter.bufferAndPostProcess(ContentBufferingFilter.java:169)rn at org.sitemesh.webapp.contentfilter.ContentBufferingFilter.doFilter(ContentBufferingFilter.java:126)rn at org.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:120)rn at org.sitemesh.config.ConfigurableSiteMeshFilter.doFilter(ConfigurableSiteMeshFilter.java:163)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.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:102)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:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)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.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:232)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)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:127)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:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: java.lang.NoSuchMethodException: norm.cp.model.ClassCp.setClassId([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1206)rn ... 83 morern/-- Encapsulated exception ------------\rnjava.lang.NoSuchMethodException: norm.cp.model.ClassCp.setClassId([Ljava.lang.String;)rn[/code]
method?
我想了解“get”、“post”到底该怎么用。rn 我想把表单里的内容发到我的邮箱里,该用哪个?rn 怎么用?
使用内部类完成"Replace Method with Method Object"(以函数对象取代函数)重构
“Replace Method with Method Object”(以函数对象取代函数)是一种重新组织函数(也就是Java中的方法,在本文中函数和方法这两个词表示的意思相同)的重构方法。其做法是将函数放进一个单独的对象当中,使用这个单独对象的值域(filed)来替代原函数中的局部变量。这样做的好处是对于一个拥有较多较复杂的局部变量的函数来说,进行“extract <em>method</em>”重构变得...
struts2 模型驱动封装对象时 ognl.MethodFailedException
ognl.MethodFailedException: Method "setCustomerLevel" <em>failed</em> for <em>object</em> com.chinasoft.app.domain.Customer@1182dc12 [java.lang.NoSuchMethodException: com.chinasoft.app.domain.Customer.setCustomerLevel([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1305)rn at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1494)rn at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)rn at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)rn at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:78)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:127)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)rn at ognl.SimpleNode.setValue(SimpleNode.java:301)rnrnrn因为这个customerLevel时 integer类型 表单传过去的是String类型rn但是我 实体类已经定义了 Integerrnrnpublic Integer getCustomerLevel() rn return customerLevel;rn rn public void setCustomerLevel(Integer customerLevel) rn this.customerLevel = customerLevel;rn rnrnrnrn求大神解决一下 ,谢谢!!
PB报错问题 Error:error calling method of a PBNI object
Power Builder Application Execution Error(R0000)rn Application terminatedrn Error:error calling <em>method</em> of a PBNI <em>object</em>rn怎么解决呢?
求解:S0120 An object reference is required for the non-static field, method,
[code=csharp]namespace Calibration_Win10rnrn rn class Programrn rn public readonly byte[] CMD_CAL = 0xc8, 0x63, 0xa7, 0xd2 ;rnrn static void Main(string[] args)rn rn SerialPort ComPort = new SerialPort();rn ComPort.Open();rn ComPort.Write(Program.CMD_CAL, 0, 4);// An <em>object</em> reference is required for the non-static field, <em>method</em>, rn....[/code]rnrn如果我需要ComPort.Write一些常数那该怎么写呢?
Object # has no method 'foo' 这个错误时什么意思?
调用方rn[code=javascript]var Net = require('net')rn//var ProtoBuf = require("protobufjs");rnrnvar ServerSock = require('./SvrSocket');rnrnvar server = Net.createServer( onConnected );rnrnserver.listen(20660, function() rn console.log(' server running...');rnrn);rnrnfunction onConnected( socket )rnrn console.log('connected..');rn rn var serverSocket = ServerSock.createSvrSocket(null);rn rn serverSocket.setSocket( socket );rn rn [/code]rnrn然后SvrSocket是这个对象rn[code=javascript]module.exports = rn rn createSvrSocket : function( socket)rn rn return new SvrSocket(socket);rn ,rnrnrnrnfunction SvrSocket( socket )rnrn this.m_Socket = socket;rn rn rnrnrnSvrSocket.prototype.onData = function( buffer )rnrn //this.foo();rnrnrnSvrSocket.prototype.setSocket = function( socket ) rn this.m_Socket = socket;rn rn this.m_Socket.on('data', this.onData ); rn rn this.foo();rn rnrnSvrSocket.prototype.foo = function() rnrnrn[/code]rnrn这么做的话 就没有错误rnrn但是如果我改成这样rn[code=javascript]rnmodule.exports = rn rn createSvrSocket : function( socket)rn rn return new SvrSocket(socket);rn ,rnrnrnrnfunction SvrSocket( socket )rnrn this.m_Socket = socket;rn rn rnrnrnSvrSocket.prototype.onData = function( buffer )rnrn this.foo(); rnrnrnSvrSocket.prototype.setSocket = function( socket ) rn this.m_Socket = socket;rn rn this.m_Socket.on('data', this.onData ); rn rn //this.foo();rn rnrnSvrSocket.prototype.foo = function() rnrn[/code]rnrn当socket收到消息的时候就会提示这个错rn[color=#FF0000] this.foo();rn ^rnTypeError: Object # has no <em>method</em> 'foo'[/color]rnrn
Unsupervised Object Category Discovery via Information Bottleneck Method
We present a novel approach to automatically discover <em>object</em> categories from a collection of unlabeled images. This is achieved by the Information Bottleneck <em>method</em>, which finds the optimal partitioning of the image collection by maximally preserving the relevant information with respect to the latent semantic residing in the image contents. In this <em>method</em>, the images are modeled by the Bag-of-Words representation, which naturally transforms each image into a visual document composed of visual words. Then the sIB algorithm is adopted to learn the <em>object</em> patterns by maximizing the semantic correlations between the images and their constructive visual words. Extensive experimental results on 15 benchmark image datasets show that the Information Bottleneck <em>method</em> is a promising technique for discovering the hidden semantic of images, and is superior to the state-of-the-art unsupervised <em>object</em> category discovery <em>method</em>s.
Fatal error: Call to undefined method Redis::object()redisadmin/view.php
Fatal error: Call to undefined <em>method</em> Redis::<em>object</em>() in /data/www/redisadmin/view.php on line 54rn遇到问题的朋友来讨论吧。rn在较低版本的centeros上没有问题,在新的系统中安装了redis就出现找不到<em>object</em>了rn54行 是 $encoding = $redis-><em>object</em>('encoding', $_GET['key']);rn查找了一下问题,应该是没有使用redis压缩 rn官方说明是:rn<em>object</em>rn说明:rn获得key对象的详细内容rn参数:rn"encoding"rn"refcount"rn"idletime"rn返回值:rnSTRING for "encoding",rnLONG for "refcount" and "idletime",rnFALSE if the key doesn't exist.rn范例:rn$redis-><em>object</em>("encoding", "l"); // → ziplistrn$redis-><em>object</em>("refcount", "l"); // → 1rn$redis-><em>object</em>("idletime", "l"); // → 400 (in seconds, with a precision of 10 seconds).rnrnrn
IE下报错Object doesn't support this property or method
[img=https://img-bbs.csdn.net/upload/201408/22/1408679575_263395.png][/img]rnrn求解为什么会报错,190行。别人留下来的问题,在IE下就8或以下就报这个错误,求解
Delphi 控制 CodeSoft 报错 Method 'Dialogs' not supported by automation object
Method 'Dialogs' not supported by automation <em>object</em>rn[code=Delphi(Pascal)]rnunit Unit1;rnrninterfacernrnusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dialogs,ShellApi,Comobj,OleServer, StdCtrls, LabelManager2_TLB, jpeg,rn ExtCtrls,Clipbrd, DB, ADODB;rnrntypern TForm1 = class(TForm)rn OpenDialog1: TOpenDialog;rn CheckBox1: TCheckBox;rn Image1: TImage;rn Button7: TButton;rn Button8: TButton;rn Button9: TButton;rn Button1: TButton;rn procedure Button7Click(Sender: TObject);rn procedure Button8Click(Sender: TObject);rn procedure Button9Click(Sender: TObject);rn procedure Preview();rn procedure FormClose(Sender: TObject; var Action: TCloseAction);rn procedure FormCreate(Sender: TObject);rn procedure Button1Click(Sender: TObject);rn privatern Private declarations rn publicrn Public declarations rn end;rnrnvarrn Form1: TForm1;rn BarApp,BarDoc,BarVars:Variant;rn OpenEd:boolean;rnrn MyApp:LabelManager2_TLB.Application;rn MyDoc:LabelManager2_TLB.Document;rn MyVars:LabelManager2_TLB.Variables;rnrnimplementationrnrn$R *.dfmrnprocedure TForm1.Preview();rnbeginrn if not opened thenrn exit;rn BarDoc.CopyToClipboard;rn image1.Picture.Bitmap.Assign(Clipboard);rnend;rnrn预览rnprocedure TForm1.Button1Click(Sender: TObject);rnbeginrn Preview;rnend;rnrn打开并打印rnprocedure TForm1.Button7Click(Sender: TObject);rnVar rn slab:string;rnbeginrn if not opendialog1.Execute thenrn exit;rn slab:=opendialog1.FileName;rnrn BarApp := CreateOleObject('lppx.Application');rn opened:=true;rn BarApp.Visible:=false;rn BarDoc:=BarApp.ActiveDocument;rn BarVars:=BarDoc.Variables;rn BarDoc.Open(slab);rn BarDoc.Variables.Item('Data1').Value:='ABCD';rn BarDoc.Variables.Item('Data2').Value:='111';rn BarDoc.Variables.Item('Data3').Value:='111ABCD';rn Bardoc.Printlabel(1);rn BarDoc.FormFeed;rnEnd;rnrn设置打印机rnprocedure TForm1.Button8Click(Sender: TObject);rnbeginrn if not opened thenrn exit;rn BarApp.Dialogs.Item(lppxPrinterSelectDialog).Show;rn ================================================rn 运行到这一句出错:Method 'Dialogs' not supported by automation <em>object</em>rn ================================================rnrnend;rnrn关闭rnprocedure TForm1.Button9Click(Sender: TObject);rnbeginrn close;rnend;rnrn窗体关闭rnprocedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);rnbeginrn if not opened thenrn exit;rn Bardoc.Close;rn BarApp.Quit;rnend;rnrn窗体创建rnprocedure TForm1.FormCreate(Sender: TObject);rnbeginrn opened:=false;rnend;rnrnrnrnend.rn[/code]
Designing Object Oriented C++ Applications Using The Booch Method
Bob大叔(Robert C. Martin)关于C++开发思想的大作,看他的书上提及过,好多C++高手也提及过,但是一直没看到,特地从图书馆借来并扫描,下载者只能用于学习,不可用于商业目的。
运行的时候为什么提示Object # has no method 'load'??
菜鸟本来想巩固下最近学习的只是,谁知道一上来就碰到问题。rn怎么样才能解决这个错误呢?rn[b]这是我的Mytest.js代码:[/b]rnfunction loadXMLDoc(dname) rnrntry //Internet Explorerrn rn xmlDoc=new ActiveXObject("Microsoft.XMLDOM");rn rncatch(e)rn rn try //Firefox, Mozilla, Opera, etc.rn rn xmlDoc=document.implementation.createDocument("","",null);rn rn catch(e) alert(e.message)rn rntry rn rn xmlDoc.async=false;rn xmlDoc.load(dname);rn return(xmlDoc);rn rncatch(e) alert(e.message)rnreturn(null);rnrn[b]这是我的MyX.xml代码:[/b]rnrnrn Georgern Johnrn Reminderrn Don't forget the meeting!rnrn[b]这是我的htm代码:[/b]rnrnrnrn rn 无标题页rnrnrn rnrn
罕见的Js错误: typeerror:object # has no method 'load'
typeerror:<em>object</em> # has no <em>method</em> 'load'rnrn谷歌浏览器下提示这个错误。rnrnif (document.implementation && document.implementation.createDocument) //在非IE浏览器环境下 rnrn xmlDoc = document.implementation.createDocument("", "", null);rn try rn xmlDoc.load(XMLPath);rn catch (e) alert(e); //typeerror:<em>object</em> # has no <em>method</em> 'load'rn xmlDoc.async = false;rn}rnrn在FF下可以正常。 谷歌下怎么处理呀????
C++能否实现Delphi中的method pointers(of object)
Delphi中有一种类型是指向类的方法的指针,procedure/function...of <em>object</em>。rnC++中好像没有这种语法。rn像下面这样的功能,在C++中怎么实现?rntypern TEvent=procedure of <em>object</em>;rn TA = classrn publicrn procedure OnEvent;rn end;rnvarrn A1: TA;rn Event1: TEvent;rn……rn Event1:=A1.OnEvent;rnrn以后可以通过Event1调用A1.OnEventrn
JAVA中 OBJECT, CLASS, METHOD, FIELD, EXPRESSION 的关系
谁能简单讲讲:rnJAVA中 OBJECT, CLASS, METHOD, FIELD, EXPRESSION 的关系?ARGUMENT的含义和EXPRESSION的关系?谢谢!
错误提示:Can't locate object method "new" via package "ca"
现在,我在winXP上安装了ActivePerl,然后自己写了一个pm,再perl脚本中调用如下:rnrn#!perlrnrnuse lib "../pm/ca.pm";rnmy $t = new ca;rnrn可就是提示错误Can't locate <em>object</em> <em>method</em> "new" via package "ca" (perhaps you forgot to load "ca"?) at E:\my_smoke_test\script\test1.pl line 10.rnrn不知道为何呢??谢谢大家
VC++ .net,MFC ActiveX,method 如何返回一个自定义类的 object ?
我用VC++ .NET,建立了一个MFC ActiveX project. 里面加入了几个自己写的类,rnrne.g. CPerson, CDepartment, rnrnActiveX 有一个函数:rnrn CPerson* FindPersonByName(CString sName)rnrn这个函数想返回CPerson 类型的指针. 类似的还有:rnrn CDepartment* FindDepartmentByNo(int nNumber)rnrn我知道如果想让ActiveX Container 能够接受 CPerson 或者 CDepartment 类型,要手动改 *.idl 文件(或者有更好的办法?)。但是不清楚具体如何改,msdn 上面也没有找到相关的内容。请高手指点一下。谢谢。rnrn
错误ORA-12545: Connect failed because target host or object does not exist
在虚拟机中安装了linux作为客户端,然后连接局域网内的ORACLE服务器(安装在win7下),配置完linux客户端后,使用sqlplus test/000000连接时报错rnORA-12545: Connect <em>failed</em> because target host or <em>object</em> does not exist。。。。。。。。。rnWIN7服务器端主机名admin-PC,ORACLE服务名APP,用户名test 密码000000rnrnlinux客户端下tnsnames.ora内容:ORACLR_CONNECTION_DATA =rn (DESCRIPTION =rn (ADDRESS_LIST =rn (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))rn )rn (CONNECT_DATA =rn (SID = CLRExtProc)rn (PRESENTATION = RO)rn )rn )APP =rn (DESCRIPTION =rn (ADDRESS_LIST =rn (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.24.50)(PORT = 1521))rn )rn (CONNECT_DATA =rn (SERVICE_NAME = APP)rn )rn )rnlinux客户端下listener.ora内容:rn# listener.ora Network Configuration File: D:\app\admin\product\11.2.0\dbhome_1\network\admin\listener.orarn# Generated by Oracle configuration tools.rnrnSID_LIST_LISTENER =rn (SID_LIST =rn (SID_DESC =rn (SID_NAME = CLRExtProc)rn (ORACLE_HOME = /usr/lib/oracle/11.2/client)rn (PROGRAM = extproc)rn (ENVS = "EXTPROC_DLLS=ONLY:D:\app\admin\product\11.2.0\dbhome_1\bin\oraclr11.dll")rn )rn )rnrnLISTENER =rn (DESCRIPTION_LIST =rn (DESCRIPTION =rn (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))rn (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.24.50)(PORT = 1521))rn )rn )rnrnwin7服务器下tnsnames.ora内容:rn# tnsnames.ora Network Configuration File: D:\app\admin\product\11.2.0\dbhome_1\network\admin\tnsnames.orarn# Generated by Oracle configuration tools.rnrnORACLR_CONNECTION_DATA =rn (DESCRIPTION =rn (ADDRESS_LIST =rn (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))rn )rn (CONNECT_DATA =rn (SID = CLRExtProc)rn (PRESENTATION = RO)rn )rn )rnrnrnwin7服务器下listener.ora内容:rnrn# listener.ora Network Configuration File: D:\app\admin\product\11.2.0\dbhome_1\network\admin\listener.orarn# Generated by Oracle configuration tools.rnrnSID_LIST_LISTENER =rn (SID_LIST =rn (SID_DESC =rn (SID_NAME = CLRExtProc)rn (ORACLE_HOME = D:\app\admin\product\11.2.0\dbhome_1)rn (PROGRAM = extproc)rn (ENVS = "EXTPROC_DLLS=ONLY:D:\app\admin\product\11.2.0\dbhome_1\bin\oraclr11.dll")rn )rn )rnrnLISTENER =rn (DESCRIPTION_LIST =rn (DESCRIPTION =rn (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))rn (ADDRESS = (PROTOCOL = TCP)(HOST = admin-PC)(PORT = 1521))rn )rn )rnrnADR_BASE_LISTENER = D:\app\adminrnrn求大神们指点啊,工作挡这了,急死了......................................
Server object error 'ASP 0177 : 8007007e' /n Server.CreateObject Failed
Server <em>object</em> error 'ASP 0177 : 8007007e' rnServer.CreateObject Failedrn/Default.asp, line 7 rn8007007ernrn这是我的 asp 文件后给出的出错信息,我想 asp 文件并没有什么问题,应该是我的电脑配置 或者是 IIS 可能出了问题,asp 的第7行是这样的一个 :Set rs = Server.CreateObject("ADODB.Recordset")rn我用的是win 2003 server, 这个 asp 是用 access做数据库的,虽然我后来又装了一个 MS SQL 2000,同时在用 IIS 做PHP的服务器(当然我已经把它关掉了)。rnrn非常感谢大家的帮助!!!rn谢谢!!!
home method和business method的区别..
为什么把方法写在home里面,作为home <em>method</em>,不放在remote接口中呢,不是说home的作用是find,locate,create,destory,这个bean嘛........
unix高级环境编程和unix网络编程两卷下载
unix环境高级编程第二版 unix网络编程第一卷 unix网络编程第二卷 相关下载链接:[url=//download.csdn.net/download/sheepsword2008/2081944?utm_source=bbsseo]//download.csdn.net/download/sheepsword2008/2081944?utm_source=bbsseo[/url]
用c#做的学生成绩管理系统下载
本系统为一次课程设计的小作品,实现了学生成绩的管理,教师、学生的注册等功能,用的是精致小巧的access数据库,很适合与初学者研究。 相关下载链接:[url=//download.csdn.net/download/mahilion/3339044?utm_source=bbsseo]//download.csdn.net/download/mahilion/3339044?utm_source=bbsseo[/url]
2012数学建模竞赛陕西赛区参赛队报名表下载
2012数学建模竞赛陕西赛区参赛队报名表 相关下载链接:[url=//download.csdn.net/download/andyrenpanlong/4616933?utm_source=bbsseo]//download.csdn.net/download/andyrenpanlong/4616933?utm_source=bbsseo[/url]
相关热词 c# gdi 占用内存 c#中遍历字典 c#控制台模拟dos c# 斜率 最小二乘法 c#进程延迟 c# mysql完整项目 c# grid 总行数 c# web浏览器插件 c# xml 生成xsd c# 操作sql视图
我们是很有底线的