Method 'SaveAs' not supported by automation object [问题点数:20分,结帖人zhao8848jun]

Bbs1
本版专家分:10
结帖率 97.18%
Bbs7
本版专家分:12020
Blank
黄花 2008年11月 Delphi大版内专家分月排行榜第二
Blank
蓝花 2008年10月 Delphi大版内专家分月排行榜第三
Bbs1
本版专家分:10
Bbs1
本版专家分:10
Bbs7
本版专家分:12020
Blank
黄花 2008年11月 Delphi大版内专家分月排行榜第二
Blank
蓝花 2008年10月 Delphi大版内专家分月排行榜第三
TWebBrowser出现 Method pasteHTML not supported by automation object 解决方法
先看下面的源码,在TWebBrowser当前编辑位置插入一个图片,是通过源码的方法插入的。 var urlStr : string; ovSelection: OleVariant; ovTextRange: OleVariant; tmpStr : string; begin urlStr := 'http://www.1and1-mail.com/imgv2/
Authentication method 'caching_sha2_password' not supported by any of the available plugins
遇到这个问题是本机用的mysql是8.0的版本,而之前的版本用的是低版本的5.7或者6.8. 而这个问题的根本其实就是登陆加密的规则不一样,导致用户验证如法通过。 如上图所示,修改其加密规则以前低版本的:default_authentication_plugin=mysql_native_password; 另外修改完后不要忘记重启mysql服务: ...
Method definition shorthands are not supported by current JavaScript version解决方法(转)
提示:<em>Method</em> definition shorthands are not <em>supported</em> by current JavaScript version解决方法   当创建vue生命周期的钩子实例时,PhpStorm提示如下: 意思是:该方法定义的缺陷是不支持当前的JavaScript版本。 解决办法: 打开 File -&amp;gt; Settings -&amp;gt; Language...
Request method 'HEAD' not supported
2019独角兽企业重金招聘Python工程师标准&gt;&gt;&gt; ...
【Java总结】记一次诡异的Reques method 'POST' not supported
问题说明 本地开发测试,系统运行一切正常,但是系统打包部署到服务器之后, 浏览器控制台(Console)报错: 405 <em>Method</em> not allowed, 后台日志报错: org.springframework.web.servlet.PageNotFound - Request 'POST' not <em>supported</em> 解决路线 路线一:打包错误 从本地重新打包,放在服务器上运行,问题仍然...
method '' not supported by automation object
method 'AAA' not <em>supported</em> by <em>automation</em> <em>object</em> rnrn总是提示这个错误,该从哪方面去找原因啊rnrn
d7调用excel出错not supported by automation object
d7调用excel出错not <em>supported</em> by <em>automation</em> <em>object</em>rnd7调用excel时出错ethod 'ColumnsWidth' not <em>supported</em> by <em>automation</em> <em>object</em>rnvar ExcelApp: Variant;rnbeginrnExcelApp := CreateOleObject( 'Excel.Application' );rnExcelApp.Visible := True;rnExcelApp.Caption := '应用程序调用 Microsoft Excel';rnExcelApp.WorkBooks.Add;rnExcelApp.WorkBooks.Open( 'C:\test1.xls' );rnExcelApp.ActiveSheet.Columns[1].ColumnsWidth := 115;rnrnrn运行时报错如下:rn---------------------------rnDebugger Exception Notificationrn---------------------------rnProject Project1.exe raised exception class EOleError with message '<em>Method</em> 'ColumnsWidth' not <em>supported</em> by <em>automation</em> <em>object</em>'. Process stopped. Use Step or Run to continue.rn---------------------------rnOK Help rn---------------------------rnrnrn
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“<em>Method</em> '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不知如何解决?
Request method 'POST' not supported
rn rn rn rn :rnrn rn rn rnrn rn :rnrn rn rn rnrn rn rnrn rn rn rn rn rn rn为什么提交不了form 表单 一提交 就报题目那个错误
用DELPHI调用CODESOFT模板打印时,Method 'DocObjects' not supported by automation object
在用DELPHI调用CODESOFT模板打印时,不知道为什么我使用下面的语句的时候总是提示rn<em>Method</em> 'DocObjects' not <em>supported</em> by <em>automation</em> <em>object</em>rn<em>Method</em> 'Dialogs' not <em>supported</em> by <em>automation</em> <em>object</em>rnrnrnrnBarApp := CreateOleObject('lppx.Application');rnrnBarApp.ActiveDocument.DocObjects.Item('Text1');.value:= 'NEWVALUE';rnBarApp.Dialogs.Item(1).Show;rnrnrn另外想问一下,如何调整模板中TEXT的位置以及字体等属性,还望高手指点。
delphi调用excel出错Interface not supported
-
解决报错:method “***” not supported by automation object
2019独角兽企业重金招聘Python工程师标准&gt;&gt;&gt; ...
Delphi 控制 CodeSoft 报错 Method 'Dialogs' not supported by automation object
<em>Method</em> 'Dialogs' not <em>supported</em> by <em>automation</em> <em>object</em> unit Unit1; interface uses Windows, Messages, Sy
雷丰阳Springboot视频培训教程问题解决记录之六——奇怪的Request method 'POST' not supported 405错误
最近学习了RESTful服务的构建,在试验@DeleteMapping 删除功能的时候,出现了很奇怪的错误。 点击删除按钮,就会出现如下错误信息: Resolved [org.springframework.web.HttpRequest<em>Method</em>NotSupportedException: Request method 'POST' not <em>supported</em> There was an ...
Request method 'GET' not supported
今天做登录和注册的时候出现了这个问题,百度之后说是   即提交的表单字段要与bean的类型完全对应,否则请求并不能完全对应识别。 然后改了程序里面的句子。登录和注册页面要对应起来就可以 这是登录的程序:pass+count.getSalt()原来写的是count.getUser();   @RequestMapping(value = &quot;login&quot;, method = Reques...
supported - omitting">Text Object on sheet "第1页" not supported - omitting
问题描述: 出现这种情况,是因为导盘的Excel文件中出现了不该出现的东西,例如特殊字符,样式,或者图形。 每个人遇到的情况不一样,但是导致这种情况的应该都是同一类原因,就是存在特殊的东西在你须要导盘的数据里。 举个例子: 下图是我要读取的Excel文件的一部分。 肉眼看不出来有什么。但是当我鼠标点击上去的时候,发现了奇怪的东西。 通样式94行,在上面竟然有一个透明的图形,这个明显是不小心插入...
Python 问题解决
在把字典类型转换为list类型时遇到问题: 相应代码为:print a.values() 后发现是因为这样做只是返回一个“循环体 iter”, 你需要把它们显示出来需要用 list(dic.keys)
“method 'saveas' of object'_workbook' failed”怎样解决——————在线等
我在vb中用代码实现了将查询结果导入excel中,但是现在有个问题,我点击“导出图表”按钮系统开始导出查询结果时,如果我的d盘原来有一个test.xls文件,那么会弹出一个询问是否覆盖的对话框,我点击“是” 的话,覆盖原文件,将结果导出,没有问题,但是如果我点击“否”,就会出现“method 'saveas' of <em>object</em>'_workbook' failed”,我应该怎么做,才能让我在弹出询问对话框的时候有个选择呢?rn rnxexcel.Application.AlertBeforeOverwriting = Falsernxworkbook.SaveAs FileName:="D:\test.xls"rnrn
HTTP method GET is not supported by this URL
我想在select的onchange事件中提交servlet可是出现如题所示的错误!rn我的servlet中的方法是dopostrnjs中的提交代码是:rnfunction selectName() rnvar projectName=document.saleform.contractnum.value; rnwindow.location="chaxunServlet?projectName= "+document.saleform.contractnum.value; rnrn点击按钮后提示:rnHTTP method GET is not <em>supported</em> by this URLrn这是怎么回事?怎么解决?rn
springmvc Request method 'GET' not supported
@RequestMapping("/aa")rn@Controllerrnpublic class EmployeesHandler rn rn rn @Autowiredrn private EmployeeDao employeeDao;rn @Autowiredrn private DepartmentDao departmentDao;rn rn @RequestMapping(value="/insert/id",method=Request<em>Method</em>.DELETE)rn public String delete(@PathVariable("id")Integer id)rn employeeDao.delete(id);rn System.out.println(1);rn return "redirect:emps";rn rn rn @RequestMapping(value="/insert",method=Request<em>Method</em>.POST)rn public String insertList(Employee employee)rn employeeDao.save(employee);rn return "redirect:emps";rn rn rn @RequestMapping(value="/insert",method=Request<em>Method</em>.GET)rn public String inset(Map map)rn map.put("departments",departmentDao.getDepartments());rn map.put("employees", new Employee());rn return "insert";rn rn rn rn @RequestMapping(value="/emps")rn public String list(Map map)rn map.put("employees", employeeDao.getAll());rn return "list";rn rnrnrnrnemployeeDao.delete(id);System.out.println(1);;可以在控制台输出1,rn但是在redirect:emps后就提示Request method 'GET' not <em>supported</em>rn
HTTP method POST is not supported by this URL ??
孙鑫的书, servlet/jsp深入详解,网上参见http://www.qijan.com/bbs/viewthread.php?action=printable&tid=10063 rnrn书上67页请求转发的例子, 例2-16 PortalServlet.java和例2-17 LoginServlet2.javarn网上请通过ctrl+F去查找rnrn点登陆后出现错误: HTTP method POST is not <em>supported</em> by this URLrnrn把例2-17 LoginServlet2.java第21行代码form method=post改成form method=get后运行正常.rn请问是为什么?rnrnrnrn附两个程序:rn例2-16 PortalServlet.javarn1. package org.sunxin.ch02.servlet;rnrn2. rn3. import java.io.IOException;rn4. import java.io.PrintWriter;rn5. rn6. import javax.servlet.RequestDispatcher;rn7. import javax.servlet.ServletContext;rn8. import javax.servlet.ServletException;rn9. import javax.servlet.http.HttpServlet;rn10. import javax.servlet.http.HttpServletRequest;rn11. import javax.servlet.http.HttpServletResponse;rn12. rn13. public class PortalServlet extends HttpServletrn14. rn15. public void doGet(HttpServletRequest req, HttpServletResponse resp)rn16. throws ServletException,IOExceptionrn17. rn18. resp.setContentType("text/html;charset=gb2312");rn19. rn20. PrintWriter out=resp.getWriter();rn21. rn22. out.println(" ");rn23. out.println("登录页面");rn24. out.println("");rn25. rn26. String name=req.getParameter("username");rn27. String pwd=req.getParameter("password");rn28. rn29. if("zhangsan".equals(name) && "1234".equals(pwd))rn30. rn31. ServletContext context=getServletContext();rn32. RequestDispatcher rd=context.getRequestDispatcher("/welcome");rn33. rd.forward(req,resp);rn34. rn35. elsern36. rn37. RequestDispatcher rd=req.getRequestDispatcher("login2");rn38. rd.include(req,resp);rn39. rn40. out.println("");rn41. out.close();rn42. rn43. public void doPost(HttpServletRequest req,HttpServletResponse resp)rn44. throws ServletException,IOExceptionrn45. rn46. doGet(req,resp);rn47. rn48. rnrnrnrnrn例2-17 LoginServlet2.javarn1. package org.sunxin.ch02.servlet;rnrn2. rn3. import java.io.IOException;rn4. import java.io.PrintWriter;rn5. rn6. import javax.servlet.ServletException;rn7. import javax.servlet.http.HttpServlet;rn8. import javax.servlet.http.HttpServletRequest;rn9. import javax.servlet.http.HttpServletResponse;rn10. rn11. public class LoginServlet2 extends HttpServletrn12. rn13. public void doGet(HttpServletRequest req, HttpServletResponse resp)rn14. throws ServletException,IOExceptionrn15. rn16. rn17. resp.setContentType("text/html;charset=gb2312");rn18. rn19. PrintWriter out=resp.getWriter();rn20. rn21. out.println(" ");rn22. rn23. out.println(" ");rn24. rn25. out.println(" ");rn26. out.println(" 请输入用户名");rn27. out.println(" ");rn28. out.println("");rn29. rn30. out.println(" ");rn31. out.println(" 请输入密码");rn32. out.println(" ");rn33. out.println("");rn34. rn35. out.println(" ");rn36. out.println(" ");rn37. out.println(" ");rn38. out.println("");rn39. rn40. out.println("");rn41. out.println("");rn42. rn43. rn44. public void doPost(HttpServletRequest req,HttpServletResponse resp)rn45. throws ServletException,IOExceptionrn46. rn47. doGet(req,resp);rn48. rn49. rn
The method 'SelectMany' is not supported 错误求教
[b]Error :[/b]rnThe method 'SelectMany' is not <em>supported</em>rnrn[color=#FF0000]Line 54: Response.Write(CommentsAfterJanuary1st.Count());[/color]rnLine 55: rnLine 56: //foreach (var k in CommentsAfterJanuary1st)rnrnrn[b]CODE:[/b]rnrnvar postsWithCommentsAfterJanuary1st = from p in collection.Linq()rn where p.Comments.Any(c => c.TimePosted >rn new DateTime(2009, 1, 1)) rn select newrn rn Title = p.Title,rn Body = p.Bodyrn ;rnrn foreach (var p in postsWithCommentsAfterJanuary1st)rn rn Response.Write(p.Title + " " + p.Body + " "); rn rn//以上执行成功rn var CommentsAfterJanuary1st = from p in collection.Linq()rn from c in p.Commentsrn where p.CharCount > 10 && c.TimePosted > new DateTime(2010, 1, 1)rn select newrn c.Email;rn Response.Write(CommentsAfterJanuary1st.Count());rn//错误发生rn
HTTP method POST is not supported by this URL
一个很简单的网页,提交一个选项,让后返回建议,但是一点提交就出错,下面是html xml 和servlet的代码rn![图片说明](https://img-ask.csdn.net/upload/201806/25/1529927309_326821.png)rn![图片说明](https://img-ask.csdn.net/upload/201806/25/1529927323_40723.png)rn![图片说明](https://img-ask.csdn.net/upload/201806/25/1529927334_893242.png)rn网页能够正常打开,但是一点提交就405rn![图片说明](https://img-ask.csdn.net/upload/201806/25/1529927377_549407.png)
Property or Method not supported by layers of this type.
我在MapX中添加一个UserLayer,功能是添加个比例尺显示在地图左上角,那段代码是从别人的源码考过来的,地图单位和我的不一样,我的是Km,运行后可以显示比例尺,但弹出个对话框说Property or <em>Method</em> not <em>supported</em> by layers of this type.点击确定又弹出,就这样不断地弹出来,程序没法使用了,那位知道这是怎么回事,帮帮忙啊,谢谢了!!rn下面是代码rnvoid CWLDispView::OnDrawUserLayer(LPDISPATCH Layer, long hOutputDC, long hAttributeDC, rn LPDISPATCH RectFull, LPDISPATCH RectInvalid)rnrn float barWidth =(float)0.5, barHeight =(float)0.08;rn float startX =(float).3, startY =(float).3;rn long x1, y1;rn int i;rnrn // attach to dc that mapx passed us so we can use rn // mfc CDC <em>object</em>. (we will detach before exiting this methodrn CDC dc;rn CPen pen;rn CBrush brushRed, brushWhite, *pOldBrush;rn CFont *pOldFont;rn rn pen.CreatePen(0,1,(COLORREF)0);rn brushRed.CreateSolidBrush(255);rn brushWhite.CreateSolidBrush(16777215);rnrn dc.Attach((HDC)hOutputDC);rn dc.SetAttribDC((HDC)hAttributeDC);rnrn //Set map mode to HI-Englishrn dc.SetMapMode(MM_HIENGLISH);rn //Set pen to blackrn CPen *pOldPen = dc.SelectObject(&pen);rn pOldBrush = dc.SelectObject(&brushRed);rnrn //convert to HiEnglish, Conversion needed because one HIENGLISH unit is .001 inchrn x1=(long)(startX*1000);rn y1=(long)(startY*1000);rn barWidth*=1000;rn barHeight*=1000;rnrn for (i=0; iReportError();rn e->Delete();rn rn catch (COleException *e) rn e->ReportError();rn e->Delete(); rn rn rn double mapX2, mapY2;rn // add lPixPerInch to center to get 1 inch to right of Centerrn screenX = (float)(rc.right/2+lPixPerInch);rn screenY = (float)(rc.bottom/2);rn try rn m_ctrlMapX.ConvertCoord(&screenX, &screenY, &mapX2, &mapY2, miScreenToMap);rn rn catch (COleDispatchException *e) rn e->ReportError();rn e->Delete();rn rn catch (COleException *e) rn e->ReportError();rn e->Delete(); rn rn CFont font;rn font.CreatePointFont(100, "Arial", &dc);rnrn pOldFont = dc.SelectObject(&font);rn dc.SetTextColor(0); //Blackrn dc.SetBkMode(TRANSPARENT);rnrn // Output ScaleBar start Label = 0rn x1=(long)(startX*1000);rn y1=(long)((startY-.2)*1000);rn dc.TextOut(x1,-y1,"0");rnrn // Output label for distance of 1 inchrn x1=(long)(barWidth*2+startX*1000);rnrn CString str;rn str.Format("%.0f",m_ctrlMapX.Distance(mapX1, mapY1, mapX2, mapY2)/2);rn // Need to center text over center line. will move it 60 units for each characterrn int iCenterAdjustment = 60*str.GetLength();rn dc.TextOut(x1-iCenterAdjustment,-y1,str);rnrn // Output label for distance of 2 inchesrn x1=(long)(barWidth*4+startX*1000);rnrn str.Format("%.0f",m_ctrlMapX.Distance(mapX1, mapY1, mapX2, mapY2));rn // Need to center text over end line. will move it 60 units for each characterrn iCenterAdjustment = 60*str.GetLength();rn dc.TextOut(x1-iCenterAdjustment,-y1,str);rnrn // Output label for Units "Miles"rn x1=(long)(barWidth*2+startX*1000);rn y1=(long)((startY+.2)*1000);rn // Need to center text over center line. will move it 60 units for each characterrn str.Format("Miles");rn iCenterAdjustment = 60*str.GetLength();rn dc.TextOut(x1-iCenterAdjustment,-y1,str);rnrn dc.SelectObject(pOldBrush);rn dc.SelectObject(pOldPen);rn dc.SelectObject(pOldFont);rnrn // detach dc so destructore won't call Release itrn dc.ReleaseAttribDC();rn dc.Detach();rn
System.Threading.ThreadStart(object object,System.IntPtr method)
这里的 System.IntPtr method 如何得到rn能否给个例子
cannot create automation object?
我用LotusScript写了这样一句话:rnset wrd = create<em>object</em>(word.application)rn以前用了大概一年的时间,都没问题,但是最近突然出现题目中的提示,我用附件启动的方式可以打开,请问是什么原因?
Automation object 问题
建立一个带事件支持的Automation <em>object</em> COM (进程外.EXE),其中包含一个rn主窗口(mainForm).例如Automation <em>object</em>其中有一个事件方法event1.rn在Automation <em>object</em>模块中可以正常触发Fire_event1,rn但在主窗口中如何触发这个事件呢?rnrn谢!rn
Automation Object问题
程序1:提供一个接口,可以让程序2以CreateOLEObject的形式调用rnrn程序1就是一个普通的application,我在程序1中新建了一个Automation Object,也写好了方法,但在程序2中通过CreateOLEObject调用时报错,请问该怎么做?
关于OLE Automation Object
我在BCB中用File|New->Activex|Automation Object建了一个Automation Object,初始化的时候出现警告pM->m_hInst != 0两次,选择继续后运行似乎没有问题。但是退出时,不论我用Release,Unbind,都会提示There are still active COM <em>object</em>s in this application.选择退出后产生内存泄露。请问哪位遇到过这个问题,请帮忙,谢谢。
提示Automation object error
Dim wordApplication As Variant rnSet wordApplication = GetObject("C:\Lotus\Document\开发说明书.doc","Word.Document.8")rnwordApplication.Visible = Truernrn请问改如何启动指定硬盘上的OFFICE文档,谢谢!
jQuery报错 Object [object Object] has no method
我想在首页banner上加个轮播效果 在网上下载了个效果,然后放进去结果报错 Object [<em>object</em> Object] has no method '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现在情况是图片不动。。。请问到底是什么情况?
关于 Method '~' of Object '~' failed
在发布 ActiveX DLL 时rn 出现错误rn Project failed to built!rn <em>Method</em> '~' of Object '~' failedrn请问问题出在那?rn谢谢
Automation object 和 com object有什么区别?
Automation <em>object</em> 和 com <em>object</em>有什么区别?
Method '~' of object '~' failed.
<em>Method</em> '~' of <em>object</em> '~' failed.rn我用VB发布一个dll的时候就出这个错了。先前都是对的,换了个较低版本的dll引用后就这样了。。。但项目需要用较低版本的office啊,各位大大,怎么解决啊?
Method Object理解与应用
背景 这段时间在重构自己写过的烂代码(尴尬)。本着单一原则想把堆成一堆的代码按照功能拆分成一个个小方法,按照顺序整齐摆放,清晰好看易读有条理。但是遇到了问题,这堆代码涉及到了较多的变量,而且不同部分代码的变量都是另一部分代码需要的参数,所以没有办法单纯的抽出成一个个小方法。 举个例子 比如这一堆代码是一个更新活动的逻辑,其中包含活动的时间转换,活动信息校验,活动额外信息的获取,活动信息拼...
Method '~' of object '~' failed问题
服务器上asp页面调用dll模式。rn其中dll里面有个功能是利用xmlhttp.dll系统组件获取页面信息rn偶尔出现如下错误:rn<em>Method</em> '~' of <em>object</em> '~' failedrn对象名和方法名都不确定。但是知道是在创建该系统组件,利用open方法获取页面的时候出错提示。rnrn我做了一个exe调用的测试例程。分别验证两种模式:1、直接exe中利用xmlhttp对象rn2、用exe调用上面提到的dll获取页面,都正常。rnrn因此怀疑两个因素:1、可能是系统组件本身的问题。2、iis的问题(这种可能性比较大)。rnrn请帮忙定位一下并指出解决办法。
客户端调用服务端的方法是报错'method ***** not supported by automation object' 自动化对象不支持该方法?怎么回事
肯定客户端没错,服务端有问题rn客户端的调用rnprocedure TForm1.Button1Click(Sender: TObject);rnvarrn rr:OleVariant;rn myRec:TARec;rnbeginrn if not con1.Connected thenrn con1.Open;rn rr := con1.AppServer.GetRec//这句就报错了rn myRec := VariantToRecord2(con1.AppServer.GetRec);rn edt1.Text := myRec.Name;rn edt2.Text := IntToStr(myRec.age);rnend;rn服务端的rnfunction Trecoredpass.GetRec: OleVariant;rnvarrn myRec1:TARec;rnbeginrn myRec1.Name := '中英Chinese';rn myRec1.Age := 34;rn Result := RecordToVariant2(myRec1);rnend;
Automation object的接口参数问题?
我想做一个ActiveX 的Automation <em>object</em>的组件用于Web网页,在我在写一个接口测试时发现rnprocedure Test(const APrintCharts: WideString);或procedure Test(AInt: Integer);在网页调用(VBSCRIPT)都没有问题,rn但我写procedure Test(const APrintCharts: WideString; AInt: Integer);在网页调用时就出错,这是为什么呀?难道只能一个参数吗?
在Automation Object中使用DataModule
我在用Delphi 6写一个COM组件,rn在ActiveX Library里有一个Automation Object和一个DataModule,rnDataModule有一个TADOConnection和一个TADOQuery,rn当我在Automation Object中使用DataModule的ADOQuery时,组件就报错rn例如rnASP代码rnrnrnComTest.ADO.GetRS的代码如下rnrnfunction TADO.GetRS: OleVariant;rnbeginrn DataModule1.ADOQuery1.Active:=true;rn result:=ADODB_TLB._Recordset(DataModule1.ADOTable1.Recordset);rnend;rnrn组件在执行 DataModule1.ADOQuery1.Active:=true 时就报错了rnrn错误信息如下rnError Type:(0x8000FFFF) Catastrophic failure rnrn同一个数据模块,放到一个FORM Application里用没有问题。rnrn在Automation Object里使用DataModule有什么需要注意的地方?rnrn请指教,谢谢!rnrn
HTTP method POST is not supported by this URL的问题,很急
运行程序,报错:HTTP method POST is not <em>supported</em> by this URLrn我的jsp页面是这样的:rnrnrnrnrn 手机收费页面rn rn电话号码: rnrnrnrnrnrnservlet的源码是:rnimport java.io.*;rnimport javax.servlet.*;rnimport javax.servlet.http.*;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnimport java.io.IOException;rnimport java.io.PrintWriter;rnimport javax.servlet.ServletException; rnpublic class Login extends HttpServletrnrn public void doGet(HttpServletRequest request,HttpServletResponse response)rn throws IOException,ServletExceptionrn rn PrintWriter out=response.getWriter();rn String num=request.getParameter("phonenum");rn rn if (num.trim().equals("")) rn rn out.println("号码不能为空,请重新输入!");rn response.sendRedirect("login.jsp");rn rn else rn rn if((!num.trim().equals("11")) && (!num.substring(0,1).equals("13")))rn rn out.println("非手机号码,请重新输入!");rn response.sendRedirect("login.jsp");rn rn else rn rn response.sendRedirect("fail.jsp");rn rn rn rn public void doPost(HttpServletRequest request,HttpServletResponse response)rn throws IOException,ServletExceptionrn rn doGet(request,response);rn rnrnrnrnweb。xml配置:rnrnrnrnrnrn Welcome to Tomcatrn rn Welcome to Tomcatrn rnrnrnrnrn rn rn org.apache.jsp.index_jsprn org.apache.jsp.index_jsprn rn rn rn myloginrn myloginrn rn rn rn Loginrn Loginrn rn rn rn FeeLoginrn FeeLoginrn rn rn rn org.apache.jsp.index_jsprn /index.jsprn rnrn rn myloginrn /myloginrn rn rn rn Loginrn /Loginrn rn rn rn FeeLoginrn /FeeLoginrn rnrnrnrnrn可是运行时总是报这个错,我都疯了,我是新手,实在不知道怎么办了
supported"的错误">XtraReport.ShowPerview()报"The method or operation is not supported"的错误
我的DXperience工具是11.1.8的,已经破解了,我是用Winform的Report Designer设计的repx文件,我用的开发工具是VS2010,然后在Asp.Net的页面后台加载这个文件,用XtraReport控件显示报表,但是每当程序运行到XtraReport的ShowPerview方法时都会报"The method or operation is not <em>supported</em>"的错误,刚开始遇到这个错误时,我以为是我少添加了引用,我就根据Devexpress的帮助文档[url=http://documentation.devexpress.com/#XtraReports/CustomDocument9367][/url]添加了这些引用,但是任然报这个错;于是我就在其他本版的DXperience(10.1.5)环境下做测试,也是报这个错。下面是我用VS2010写的一个demo:rnrn[code=HTML]rnrnrnrnrnrnrnrnrn rnrnrn rn rn rn rn rnrnrn[/code]rnrn[code=C#]rnusing System;rnusing System.Collections.Generic;rnusing System.Linq;rnusing System.Web;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing DevExpress.XtraReports.UI;rnrnnamespace Webrnrn public partial class Default1 : System.Web.UI.Pagern rn protected void Page_Load(<em>object</em> sender, EventArgs e)rn rn rn rnrn protected void rvDemo_Load(<em>object</em> sender, EventArgs e)rn rn XtraReport xr = new XtraReport();rn xr.LoadLayout(@"C:\Users\Default\Desktop\DXexpress Demo\DXexpress\Web\File\Report1.repx");rn xr.ShowPreview();rn rn rnrn[/code]rnrn此问题本人纠结了很久,找过很多文档资料,始终没有解决,但求高人指点,谢谢。
编写/调用 Automation object 问题
1.在编写进程外(.EXE) Automation Object 时,怎样使rn 调用时可以带参数rn 如 TAutoTest test := coAutotest::Create(Param1);rnrn2.同样是进程外(.EXE) Automation Object,其中怎样识别rn 程序启动时是单独运行,还是被调用运行的?rnrn delphi或bcb实现方法都可以.rn
求教,关于Automation Object 和 Mapinfo
我用File|New->ActiveX|Automation Object添加了一个<em>object</em>,想作为MAPINFO的callback.rn请做过的朋友指教一下,关于其中的一方面也欢迎。谢谢。
关于automation object的生存期问题
我做了一个<em>automation</em> <em>object</em>。rnrn通过vb调用rnrnset <em>object</em>a = CreateObject("bbb.ccc") rna.methodxrnrn调用正常,但methodx结束后,整个程序就关掉了。我想要的结果是程序还会继续运行。rnrn我怀疑是创建<em>automation</em> <em>object</em>时参数不对,我是这样调用的rnTAutoObjectFactory.Create(ComServer, TLinkCatcher, Class_LinkCatcher, ciMultiInstance, tmNeutral);
The HttpRuntime.ProcessRequest method is not supported by IIS integrated pipelin
[img=https://img-bbs.csdn.net/upload/201306/25/1372136991_600614.png][/img]
Spring MVC 注解方式 Request method 'PUT' not supported
初学 Spring MVC rn我在修改页面中使用了 PUT方式提交rnrnrnrn------------------------------------------------------------------------------------------------------------------------------rnweb.xml 中也配置了 HiddenHttp<em>Method</em>Filter rnrn rn contextConfigLocationrn classpath:spring.xmlrn rnrn rn rn org.springframework.web.context.ContextLoaderListenerrn rnrn rn rn encodingFilterrn org.springframework.web.filter.CharacterEncodingFilterrn rn encodingrn UTF-8rn rn rn forceEncodingrn truern rn rn rn encodingFilterrn /*rn rnrn rn rn openSessionInViewrn org.springframework.orm.hibernate4.support.OpenSessionInViewFilterrn rnrn rn openSessionInViewrn /*rn rnrn rn rn springDispatcherServletrn org.springframework.web.servlet.DispatcherServletrn rn contextConfigLocationrn classpath:springmvc.xmlrn rn 1rn rnrn rn springDispatcherServletrn /rn rnrn rn rn HiddenHttp<em>Method</em>Filterrn org.springframework.web.filter.HiddenHttp<em>Method</em>Filterrn rn rn rn HiddenHttp<em>Method</em>Filterrn /*rn rnrn rn rn defaultrn *.cssrn rnrn rn defaultrn *.gifrn rnrn rn defaultrn *.jpgrn rnrn rn defaultrn *.jsrn rn------------------------------------------------------------------------------------------------------------------------------rn在类中也配置了 PUT请求啊rn@RequestMapping(value = "/salesOpportunity", method = Request<em>Method</em>.PUT)rn public String update(SalesOpportunity salesOpportunity) rn salesOpportunityService.update(salesOpportunity);rn return "redirect:/marketingManage/salesOpportunityHandler/salesOpportunityList";rn rn------------------------------------------------------------------------------------------------------------------------------rn提交修改页面时,出现这种错误,找了半天都没找到哪里有问题? 给位能指点一下吗?rnrnHTTP Status 405 - Request method 'PUT' not <em>supported</em>rnrn
SpringMVC出现 Request method 'POST' not supported 错误
![图片说明](https://img-ask.csdn.net/upload/201610/14/1476451398_851931.png)n![图片说明](https://img-ask.csdn.net/upload/201610/14/1476451893_490488.png)n![图片说明](https://img-ask.csdn.net/upload/201610/14/1476451912_555477.png)n![图片说明](https://img-ask.csdn.net/upload/201610/14/1476451932_774744.png)n![图片说明](https://img-ask.csdn.net/upload/201610/14/1476451963_715213.png)n
!!!!!!!!------>>>Method '_Default 'of object 'Sheets' is failed
当我运行下列程序时rnset objSheet=objBook.sheets(1)rn出现以上错误。rn请问什麽原因?
object">ognl.MethodFailedException: Method "setEndtime" failed for object
ognl.<em>Method</em>FailedException: <em>Method</em> "setEndtime" failed for <em>object</em> com.piptrade.action.tradetools.eCalerddarAction@17db177 [java.lang.NoSuch<em>Method</em>Exception: setEndtime([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriate<em>Method</em>(OgnlRuntime.java:823)rn at ognl.OgnlRuntime.set<em>Method</em>Value(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.<em>Method</em>FilterInterceptor.intercept(<em>Method</em>FilterInterceptor.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.<em>Method</em>FilterInterceptor.intercept(<em>Method</em>FilterInterceptor.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.<em>Method</em>FilterInterceptor.intercept(<em>Method</em>FilterInterceptor.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.piptrade.card.base.CharaterFilter.intercept(CharaterFilter.java:56)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 com.piptrade.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:182)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:286)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:595)rn/-- Encapsulated exception ------------\rnjava.lang.NoSuch<em>Method</em>Exception: setEndtime([Ljava.lang.String;)rn
object">ognl.MethodFailedException: Method "setId" failed for object
15:28:30,890 WARN com.opensymphony.xwork2.ognl.OgnlValueStack:60 - Error setting expression 'id' with value '[Ljava.lang.String;@1be20c'rnognl.<em>Method</em>FailedException: <em>Method</em> "setId" failed for <em>object</em> com.zxcs.action.user.DeleteAllUsersAction@16c1227 [java.lang.NoSuch<em>Method</em>Exception: com.zxcs.action.user.DeleteAllUsersAction.setId([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriate<em>Method</em>(OgnlRuntime.java:1285)rn at ognl.OgnlRuntime.set<em>Method</em>Value(OgnlRuntime.java:1474)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:2245)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:77)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2245)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:209)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:173)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:160)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:151)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:288)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:199)rn at com.opensymphony.xwork2.interceptor.<em>Method</em>FilterInterceptor.intercept(<em>Method</em>FilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)rn at com.opensymphony.xwork2.interceptor.<em>Method</em>FilterInterceptor.intercept(<em>Method</em>FilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)rn at com.opensymphony.xwork2.interceptor.<em>Method</em>FilterInterceptor.intercept(<em>Method</em>FilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:190)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)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.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(Unknown Source)rnCaused by: java.lang.NoSuch<em>Method</em>Exception: com.zxcs.action.user.DeleteAllUsersAction.setId([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriate<em>Method</em>(OgnlRuntime.java:1226)rn ... 65 morern/-- Encapsulated exception ------------\rnjava.lang.NoSuch<em>Method</em>Exception: com.zxcs.action.user.DeleteAllUsersAction.setId([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriate<em>Method</em>(OgnlRuntime.java:1226)rn at ognl.OgnlRuntime.set<em>Method</em>Value(OgnlRuntime.java:1474)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:2245)rn at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:77)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2245)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:209)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:173)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:160)rn at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:151)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:288)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:199)rn at com.opensymphony.xwork2.interceptor.<em>Method</em>FilterInterceptor.intercept(<em>Method</em>FilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)rn at com.opensymphony.xwork2.interceptor.<em>Method</em>FilterInterceptor.intercept(<em>Method</em>FilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at rn
问下关于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 method '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 method 'getElementByTagName'rnrn求解~~
Automation的 Method方法参数可不可用数组?
请问有哪位高手知道Automation的<em>Method</em>的参数可不可以用数组?怎样实现?
vb是不是只能访问automation com object?
如题,各位牛人请帮个忙。
为什么说variant does not reference an automation object?
rnvar objmail:olevariant;rnclassid:TGUID;rnbeginrnclassid:=ProgIDToClassID('CDONTS.NewMail');rnobjmail:=CreateComObject(classid);rnobjMail.Send('webmaster@bbs4xm.com','hero@sina.com','aa','asfd');rnend;rn
Automation object 的方法的参数数据类型疑惑
Integer 对应于 long,rnVariant_Bool 对应于 WordBool,rnBoolean 对应于什么? rnrn这个玩意的类型怎么回事?设计得不太友好,rn例如列表中没有的类型手动输入也可以,它的类型检查安全吗?
Automation 操作 Excel2002 另存为(saveas) .TXT的郁闷事
代码如下rnrn//excelxp_test.cpprnBOOL CExcelxp_testApp::InitInstance()rnrn if(!AfxOleInit()) rn rn AfxMessageBox("Could not initialize COM dll");rn return FALSE;rn rnrnrn//excelxp_testDlg.cpprn#include rn#include "stdafx.h"rn#include "excel.h"rn#define xlUnicodeText 42rn#define xlTextWindows 20rn#define xlTextMSDOS 21rn#define xlCurrentPlatformText -4158rn#define xlTextPrinter 36rnBOOL CExcelxp_testDlg::OnButtonOk() rnrn // TODO: Add your control notification handler code herern char currentDir[256]="";rn CString sCurrentDir;rn ::GetCurrentDirectory(256, currentDir);rn sCurrentDir = currentDir;rn rn _Application App;rn Workbooks books;rn _Workbook book;rnrn Worksheets sheets;rn _Worksheet sheet;rn rn LPDISPATCH m_lpDisp;rnrn if (!App.CreateDispatch("Excel.Application", NULL)) rn rn AfxMessageBox("创建Excel服务失败!"); rn return -1;rn rn elsern rn //Make Excel Visible and display a messagern AfxMessageBox("创建Excel服务成功!"); rn App.SetVisible(TRUE);rn rn //openrn if(App != NULL)rn rn m_lpDisp = App.GetWorkbooks();rn if(m_lpDisp != NULL)rn rn books.AttachDispatch(m_lpDisp);rn m_lpDisp = NULL;rn AfxMessageBox("Initial WorkBooks -- OK!");rn rn elsern rn AfxMessageBox("Initial WorkBooks -- Failed!");rn //write to Error Log; 0x17rn return false;rn rn rn COleVariant m_VOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);rn //Open the exist workbook and attach that IDispatch pointer to the Workbook <em>object</em>.rn m_lpDisp = books.Open(sCurrentDir + "\\test.xls",rn m_VOptional, m_VOptional, m_VOptional, m_VOptional,rn m_VOptional, m_VOptional, m_VOptional, m_VOptional,rn m_VOptional, m_VOptional, m_VOptional, m_VOptional,rn m_VOptional, m_VOptional);rn rn if(m_lpDisp)rn rn book.AttachDispatch(m_lpDisp);rn m_lpDisp = NULL;rn AfxMessageBox("Open OK!");rn rn elsern rn AfxMessageBox("Open Failed!");rn //write to Error Log; rn return false;rn rn rn //Get the Sheets collection and attach the IDispatch pointer to your sheets <em>object</em>.rn rn rn //Get Current Active Sheet;rn m_lpDisp = book.GetActiveSheet();rnrn // Get sheet #1 and attach the IDispatch pointer to your sheet <em>object</em>.rn rn if(m_lpDisp)rn rn sheet.AttachDispatch(m_lpDisp);rn m_lpDisp = NULL;rn AfxMessageBox("Open WorkSheet -- OK!");rn sheet.SaveAs(sCurrentDir + "\\text.txt", COleVariant((short)xlCurrentPlatformText),rn m_VOptional, m_VOptional, m_VOptional, rn m_VOptional, m_VOptional, m_VOptional, m_VOptional,rn m_VOptional);rn rn elsern rn AfxMessageBox("Open WorkSheet -- Failed!");rn return FALSE;rn rn rn elsern return FALSE;rn return TRUE;rn rnrnrnrn以上代码调用的是Excel2002,saveas方法使sheet另存为.txt文件(与操作excel2002软件打开.xls文件,然后另存为.txt文件所获得的格式相同),可是用xlCurrentPlatformText格式不行,总是会提示出错。用xlUnicodeText却可以,但是xlUnicodeText的格式不是我需要的,求助!!rn以上代码在Excel2000下,将Open方法去掉最后两个参数,saveas方法去掉最后一个参数后能够获得正确结果。rn在MSDN上查的Excel2002的open参数应该是16个,但是程序中只能用15个!!
automation object"错误详解">请给出"not reference an automation object"错误详解
做多层程序时,经常出现"not reference an <em>automation</em> <em>object</em>"错误,请大家讨论这个错误,并给出详细解决方法。
代码重构(一)-用函数对象代替函数(replace method with method object)
用函数对象代替函数(replace method with method <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说明原因/../.........谢谢
错误:‘variable uses an automation type not supported in visual basic’
我用字节数组收发文件,接受方用动态字节数组rn Put FileNumber, UBound(buffer) + 1, buffer(0),对吗?rn上面的错误有是怎么回事情。
Automation Object DLL在ie中的调用细则?
ie中调用auto obj dll ,rn开发dll时如何获得ie 的信息?如何控制ie?rn如何直接获得调用他的 IWebBrowser2 接口???rn老大们来谈谈
错误提示:variant doese not reference an automation object
错误提示:variant doese not reference an <em>automation</em> <em>object</em>rn是什么原因? rnrnrn
Cannot Create Automation Object报错问题
中控门禁提供的DLL文件,在System32和SysWOW64下都安装了这个DLL,注册成功,利用他们的VB的DEMO来运行,也成功运行了,但是开发过程中调用DLL的时候,就发生了Cannot Create Automation Object的报错,这是再测试调用Excel的对象,能够成功运行,求问这个问题怎么解决?rn
使用Automation时,调用excel的SaveAs,能否指定存盘格式?
.h中rnVariant myExcel;rn.cpp中,rnvoid __fastcall TForm1::FormCreate(TObject *Sender)rnrn myExcel = Variant::CreateObject("excel.application");rnrn//---------------------------------------------------------------------------rnvoid __fastcall TForm1::Button1Click(TObject *Sender)rnrn Variant MyWorkBook=myExcel.OlePropertyGet("workbooks");rn Procedure Open("Open");rn if (od->Execute())rn rn //MyWorkBook.Exec(Open Execute())rn rn Procedure SaveAs("SaveAs");rn Variant ActiveWorkBook=myExcel.OlePropertyGet("ActiveWorkbook");rn ActiveWorkBook.Exec(SaveAs ?rnrn怎么写?谢谢rn
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 method 'hasClass'rnrnwhy?
Object doesn't support this property or method
我在使用别人写好的JQuery Plugin的时候。rn总提示 Object doesn't support this property or method 错误。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 method 的错误是什么意思。rn网上找了说画面有元素名是submit而导致的错误。但是我这不用submit之类的东西,也没有submit的名。rnrn还有就是我正常include了这个js文件。
object com.city.action.UpdateAction">Struts2.2.3.1,Method "setStudent" failed for object com.city.action.UpdateAction
在自学struts2 就自己写了个小的管理程序rn在对信息进行修改的时候出错了,请大家帮帮忙rnstruts.xmlrn[code=XML]rnrnrnrnrnrn rn rnrn rn rn rn rn /index.jsprn /update.jsprn /add.jsprn rn backrn /rn rn rn rn rn /index.jsprn rn rn rn rn backrn /rn rn rn rn rn backrn /rn rn rn /error.jsprn rn rn rnrn rnrn rnrnrnrn[/code]rnrnStudentActionrn[code=Java]package com.city.action;rnrnimport java.util.ArrayList;rnimport java.util.List;rnimport java.util.Map;rnrnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnimport javax.servlet.http.HttpSession;rnrnimport org.apache.struts2.ServletActionContext;rnimport org.apache.struts2.interceptor.RequestAware;rnimport org.apache.struts2.interceptor.ServletRequestAware;rnrnimport com.opensymphony.xwork2.Action;rnimport com.opensymphony.xwork2.ActionSupport;rnimport com.city.model.*;rnimport com.city.server.StudentServer;rnrnrnpublic class StudentAction extends ActionSupportrn rn List list = new ArrayList();rn HttpServletRequest request=ServletActionContext.getRequest();rn private String id;rn private Student student = new Student();rn rn public HttpServletRequest getRequest() rn return request;rn rnrnrnrn public void setRequest(HttpServletRequest request) rn this.request = request;rn rnrnrnrn public Student getStudent() rn return student;rn rnrnrnrn public void setStudent(Student student) rn this.student = student;rn rnrnrnrn public List getList() rn return list;rn rnrnrnrn public void setList(List list) rn this.list = list;rn rnrn// public void setServletRequest(HttpServletRequest request)rn// this.request = request;rn// rnrnrn public String execute()rn list = new StudentServer().checkStuList();rn return SUCCESS;rn rn rn public String gotoUpdate()rn this.student = new StudentServer().checkStuById(Integer.parseInt(id));rn return "update";rn rn rn public String gotoAdd() rn return "add";rn rnrnrn public String deleteStuById()rn new StudentServer().deleteStu(Integer.parseInt(id));rn return "goback";rn rn rnrn public void setId(String id) rn this.id = id;rn rnrnrnrn public String getId() rn return id;rn rnrnrnrnrnrnrnrnrn[/code]rnrnUpdateActionrn[code=Java]package com.city.action;rnrnimport com.city.model.Student;rnimport com.city.server.StudentServer;rnimport com.opensymphony.xwork2.ActionSupport;rnrnpublic class UpdateAction extends ActionSupport rn Student student = new Student();rnrn public Student getStudent() rn return student;rn rnrn public void setStudent(Student student) rn this.student = student;rn rn rn public String updateSuccess()rn new StudentServer().updateStu(student);rn return "goback";rn rn rn public String updateCancle()rn rn return "goback";rn rn rn rn rn rn rnrn[/code]rnrnupdate.jsprn[code=HTML]rnrnrnrnrn rn rn rn My JSP 'update.jsp' starting pagern rn rn rn rn rn rn rnrn rn rn rn This is my update page. 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 rnrn[/code]rnrn报错信息:rnrn警告: Error setting expression 'student' with value '[Ljava.lang.String;@1d5c645'rnognl.<em>Method</em>FailedException: <em>Method</em> "setStudent" failed for <em>object</em> com.city.action.UpdateAction@1f15067 [java.lang.NoSuch<em>Method</em>Exception: com.city.action.UpdateAction.setStudent([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriate<em>Method</em>(OgnlRuntime.java:1285)rn at ognl.OgnlRuntime.set<em>Method</em>Value(OgnlRuntime.java:1474)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:2245)rnjava.lang.NoSuch<em>Method</em>Exception: com.city.action.UpdateAction.setStudent([Ljava.lang.String;)rnrn。。。。rn我在网上查了下,有的人说是页面有重复信息,是不是我在StudentAction里面定义了student对象 在UpdateAction里面也定义了student对象 然后都放在了udapte.jsp页面造成了冲突,但是如果这样写的话,那我UpdateAction里面怎样获得update.jsp提交的值呢???求帮助rn
动态代理(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 = method.invoke(obj, args);rn这个返回值有什么用啊?怎么用啊?rn有个小例子就最好不过了,小弟刚入行,谢谢各位大峡了。
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 method
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 method '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 cn.muke.ssh.action.ProductAction@51850ee2">求助 Method "save" failed for object cn.muke.ssh.action.ProductAction@51850ee2
在慕课网自学ssh框架遇到如下问题,错误如下rn Type Exception Reportrn[color=#FF0000]Message <em>Method</em> "save" failed for <em>object</em> cn.muke.ssh.action.ProductAction@51850ee2[/color]rnDescription The server encountered an unexpected condition that prevented it from fulfilling the request.rnExceptionrn[color=#FF0000]ognl.<em>Method</em>FailedException: <em>Method</em> "save" failed for <em>object</em> cn.muke.ssh.action.ProductAction@51850ee2 [java.lang.NoSuch<em>Method</em>Error: org.hibernate.Session.getFlushMode()Lorg/hibernate/FlushMode;][/color]rn ognl.OgnlRuntime.callAppropriate<em>Method</em>(OgnlRuntime.java:1305)rn ognl.Object<em>Method</em>Accessor.call<em>Method</em>(Object<em>Method</em>Accessor.java:68)rn com.opensymphony.xwork2.ognl.accessor.XWork<em>Method</em>Accessor.call<em>Method</em>WithDebugInfo(XWork<em>Method</em>Accessor.java:117)rn[b]我的工程文件如下[/b]rn[b]product.jsp[/b]rn[code=java]rnrnrnrnrn Insert title herernrnrn 保存商品的页面rnrn rn rn 商品名称rn rn rn rn rn rn 商品价格rn rn rn rn rn rn rnrnrnrn[/code]rnspring-config.xmlrn[code=java]rn rnrn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn org.hibernate.dialect.MySQL57Dialectrn truern truern updatern rn rn rn rn rn cn/muke/ssh/domain/Product.hbm.xmlrn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn[/code]rn[b]productAction[/b]rn[code=java]rnpackage cn.muke.ssh.action;rnrnimport cn.muke.ssh.domain.Product;rnimport cn.muke.ssh.service.ProductService;rnimport com.opensymphony.xwork2.ActionSupport;rnimport com.opensymphony.xwork2.ModelDriven;rnrn/**rn * 商品管理的Actionrn */rnpublic class ProductAction extends ActionSupport implements ModelDriven rn //模型驱动使用的类rn private Product product=new Product();rn @Overridern public Product getModel() rn return product;rn rn //Struts和Spring整合过程中按名称自动注入的业务类rn private ProductService productService;rnrn public void setProductService(ProductService productService) rn this.productService = productService;rn rn /**rn * 保存商品的执行方法rn */rn public String save()rn rn System.out.println("Action方法被执行了...");rn System.out.println(product.getPrice());rn System.out.println(product.getPname());rn productService.save(product);rn return NONE;rn rnrn[/code]rn[b]struts.xml[/b]rn[code=java]rn rnrnrnrnrn rn rn rn rnrn[/code]rn在搜索引擎上苦苦寻觅解决办法而不得,恳请各位指教。[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/8.gif][/img]
object XXXLoginAction">[ognl.MethodFailedException: Method "userlogin" failed for object XXXLoginAction
一个SSH项目,点击页面的submit之后,就报错了,如上所示,rn看到提示有ognl的,我将页面上的ognl表达式写的标签换成普通的标签代替,还是这个错误,rn百度也有说spring jar冲突,我有仔细检查 lib下的文件夹,spring-corejar包只有一个rn不知道是不是还有其它可能,请大侠帮忙了。rn项目的控制台错误信息如下[code=java]ERROR DefaultDispatcherErrorHandler Exception occurred during processing request: [ognl.<em>Method</em>FailedException: <em>Method</em> "userlogin" failed for <em>object</em> com.haigang.web.action.LoginAction@70493c6 [java.lang.NoSuch<em>Method</em>Error: org.springframework.util.ClassUtils.isUserLevel<em>Method</em>(Ljava/lang/reflect/<em>Method</em>;)Z], <em>Method</em> "userlogin" failed for <em>object</em> com.haigang.web.action.LoginAction@70493c6]rn[/code]rnrn前台的错误如下rn[code=java]HTTP Status 500 - <em>Method</em> "userlogin" failed for <em>object</em> com.haigang.web.action.LoginAction@70493c6rnrntype Exception report[/code]rn500错误,在我的理解中,一直都是页面有语法错误之类的,可是不应该的,这个项目在另一个人的电脑上是可以运行的。页面应该不会有问题
谷歌浏览器出现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 method '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 method or propertyrnrn请问这是什么问题,如何解决?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老是报错:rn<em>Method</em> 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 '~' of object '~' failed 这是啥问题?
我用ASP调用VB写的DLL将数据导出到Excel,但是总是报错:<em>Method</em> '~' of <em>object</em> '~' failed。rn
这是什么错误啊HTTP method GET is not supported by this URL
地址栏运行到http://localhost:8080/flight/searchflightServlet?action=list时就出现了这个405错误,请大家帮忙啊?
求助:servlet运行时出现的问题 HTTP method GET is not supported by this URL
各位兄弟姐妹,小弟在调试JSP的时候遇到一个问题:rnservlet运行时出现的问题 HTTP method GET is not <em>supported</em> by this URL rn昨晚调了一晚都搞不定,代码如下:rnpackage ch07;rnrnimport javax.servlet.*;rnimport javax.servlet.http.*;rnimport java.io.*;rnpublic class SampleServlet1 extends HttpServlet rn public void doGet(HttpServlet request,HttpServletResponse response)rnthrows ServletException,IOExceptionrn response.setContentType("text/html;charset=GB2312");rn PrintWriter out = response.getWriter();rn out.println("");rn out.println(" Servlet");rn out.println("");rn out.println("大家好");rn out.println("");rn out.println("");rn out.close();rn rn
Servlet验证出现405错误,HTTP method POST is not supported by this URL
rn我找了很久确实没有找出错误!!看看错在哪儿行吗?rn谢谢!!rn我用Form表单提交:rnrn[code=HTML]"html" [color=#FF0000] [/color]rn 用户名: rn 密码: rn 确认密码: rn 邮箱: rn 安全问题: rn 答案: rn rn rn[/code]rnrn以下是我的Servlet代码:rn[code=HTML]"java"public class UserDAOServlet extends HttpServlet rn public class UserLoginServlet extends HttpServlet rn [color=#FF0000]public void doGet(HttpServletRequest request, HttpServletResponse response)[/color]rn throws ServletException, IOException rn [color=#FF0000]doPost(request, response);[/color]rnrn rnrn [color=#FF0000]public void doPost(HttpServletRequest request, HttpServletResponse response)[/color]rn throws ServletException, IOException rn request.setCharacterEncoding("utf-8"); //统一设置编码rn String page = "user_register.jsp";rn String code = request.getParameter("code");rn List errors = new ArrayList();rn // 验证码验证rn if (code == null || "".equals(code)) rn errors.add("验证码为空!");rn else rn String rand = (String) request.getSession().getAttribute("rand"); rn if (!code.equalsIgnoreCase(rand)) rn errors.add("验证码错误!!") ;rn rn rn //取出接受参数进行验证rn String userName = request.getParameter("userName");rn String userPassword = request.getParameter("userPassword");rn String confirmPassword = request.getParameter("confirmPassword");rn String userEmail = request.getParameter("userEmail");rn String userQuestion = request.getParameter("userQuestion"); rn String userAnswer = request.getParameter("userAnswer"); rn String userRealName = request.getParameter("userRealName");rn String tele = request.getParameter("tele");rn String address = request.getParameter("address");rn String sex = request.getParameter("sex");rn rn if(!(userPassword.equals(confirmPassword)))rn errors.add("两次输入密码不一样!");rn rn if (userName == null || "".equals(userName)) rn errors.add("用户名不能为空!");rn rn if (userPassword == null || "".equals(userPassword)) rn errors.add("密码不能为空!");rn rn if(errors.size()==0) // 现在没有任何的错误信息rn User vo=new User();rn vo.setUserName(userName);rn vo.setUserPassword(new MD5Code().getMD5ofStr(userPassword)) ;rn vo.setAddress(address);rn vo.setSex(sex);rn vo.setTele(tele);rn vo.setUserQuestion(userQuestion);rn vo.setUserAnswer(userAnswer);rn vo.setUserEmail(userEmail);rn vo.setUserRealName(userRealName);rn try rn if(DAOFactory.getIUserDAOInstance().doCreate(vo))rn request.getSession().setAttribute("user", vo) ; // 现在保存对象rn request.setAttribute("userName", userName);rn page = "register_success.jsp" ;rn else rn errors.add("用户名或密码错误!");rn rn catch (Exception e) rn e.printStackTrace();rn rn rn request.setAttribute("errors", errors) ;rn request.getRequestDispatcher(page).forward(request, response);rn rnrnrn[/code]rnrn以下是在WEB.XML里面的配置:rn[code=HTML]"xml"rnuserDAOrnorg.mm.servlet.UserDAOServletrnrnrnuserDAOrn/user_dao_servletrnrn[/code]
紧急求助:Method called on illegally casted object
1、在创建一个类(由抽象类派生)的对象时,有如下错误提示:rn<em>Method</em> 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 method '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 method 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 method stubrn rnrn @Overridern public void onStopTrackingTouch(SeekBar seekBar) rn // TODO Auto-generated method 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
method open of object _recordset failed 错误
[code=VB]Private Sub Form_Activate()rn Dim iBookMark As Integerrn Dim strSQL As Stringrn rn strSQL = "select itemmstr.cust_code, itemmstr.MRP_FG, itemmstr.ITEM_NO, itemmstr.oms_itemno, itemmstr.ITEM_DESCE, itemmstr.material_type, itemmstr.i_date, itemmstr.factory_code, itemmstr.Mrp_MG, itemmstr.Mrp_MC, itemmstr.Mrp_ProcType, itemmstr.Mrp_SP, itemmstr.mrp_prodsch,itemmstr.Mrp_BF, itemmstr.Mrp_PG, itemmstr.Mrp_GIS, itemmstr.Mrp_GRS, itemmstr.Mrp_LS, itemmstr.Mrp_iUser, itemmstr.Mrp_iDate, itemmstr.Mrp_ApprUser, itemmstr.Mrp_ApprDate, itemmstr.Mrp_Prod " & _rn " FROM itemmstr " & _rn " WHERE ((itemmstr.appr_status)='A' and itemmstr.mrp_fg = " & False & " and itemmstr.factory_code = '" & strPFactoryCode & "') order by itemmstr.item_no,itemmstr.mrp_fg,itemmstr.factory_code "rn rn If rs.State <> adStateClosed Thenrn rs.Closern End Ifrn rn rs.Open strSQL, cn, adOpenStatic, adLockReadOnlyrn rn Set DataGrid1.DataSource = rs[/code]rnrn提示:rnmethod open of <em>object</em> _recordset failedrnrn错误代码为 :rn rs.Open strSQL, cn, adOpenStatic, adLockReadOnlyrnrn有了解的帮帮忙,谢谢!!rn
object">老问题:Method "setId" failed for object
我现在在维护一个项目。rnrn在新建的时候,由于页面id为空,所以编译器会提示这样的问题rnrnError setting expression 'entity.id' with value '[Ljava.lang.String;@179637a'rnognl.<em>Method</em>FailedException: <em>Method</em> "setId" failed for <em>object</em> net.jqsoft.medicine.entity.SellLogOutListEntity@16b44ea [java.lang.NoSuch<em>Method</em>Exception: net.jqsoft.medicine.entity.SellLogOutListEntity.setId([Ljava.lang.String;)]rnrn但是在修改的时候,都没有问题。rnrnrn它页面是这样写的:rnrnrn后台是这样定义的:rnprivate LogOutListEntity entity;rnrn这个问题网上也有许多解决办法,大概就是把id 设置成String,可现在的问题是,他们用的都是这种格式,我总不能再private String id。吧。各位有好的解决办法吗?rnrninput为空的话默认就是String类型的吧?
object com.entity.Cla">ognl.MethodFailedException: Method "setCreator" failed for object com.entity.Cla
2011-11-05 10:48:17,684 WARN [com.opensymphony.xwork2.ognl.OgnlValueStack] - Error setting expression 'claimVoucher.creator' with value '[Ljava.lang.String;@1e0a562'rnognl.<em>Method</em>FailedException: <em>Method</em> "setCreator" failed for <em>object</em> com.entity.ClaimVoucher@bbaf09 [java.lang.NoSuch<em>Method</em>Exception: com.entity.ClaimVoucher.setCreator([Ljava.lang.String;)]rn at ognl.OgnlRuntime.callAppropriate<em>Method</em>(OgnlRuntime.java:1265)rn at ognl.OgnlRuntime.set<em>Method</em>Value(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 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.ASTChain.setValueBody(ASTChain.java:227)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.<em>Method</em>FilterInterceptor.intercept(<em>Method</em>FilterInterceptor.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.<em>Method</em>FilterInterceptor.intercept(<em>Method</em>FilterInterceptor.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.<em>Method</em>FilterInterceptor.intercept(<em>Method</em>FilterInterceptor.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 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.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.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)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(Thread.java:619)rnCaused by: java.lang.NoSuch<em>Method</em>Exception: com.entity.ClaimVoucher.setCreator([Ljava.lang.String;)rn at ognl.OgnlRuntime.callAppropriate<em>Method</em>(OgnlRuntime.java:1206)rn ... 73 morern/-- Encapsulated exception ------------\
HTML4实用大全第二版part3.pdf下载
HTML4实用大全第二版.part3.rar 共有3个压缩包 这是第3个 相关下载链接:[url=//download.csdn.net/download/Sun_Moon_Stars/2200476?utm_source=bbsseo]//download.csdn.net/download/Sun_Moon_Stars/2200476?utm_source=bbsseo[/url]
c# 彩色平滑连续进度条源码下载
用vs2008编写的NeroBar,色彩、阈值等都可设置的进度条,可以直接在项目中引用,非常方便,有源代码。 相关下载链接:[url=//download.csdn.net/download/csfgfh/2689394?utm_source=bbsseo]//download.csdn.net/download/csfgfh/2689394?utm_source=bbsseo[/url]
类似QQ弹出提示框源码20130507下载
类似QQ弹出提示框源码 工作原理: 1.将要显示的消息添加到队列。2.独立的线程被信号量通知有消息来了,它就去取出来显示。 功能介绍: 点击button 会弹出提示框,点击提示框详细信息显示提示信息。 相关下载链接:[url=//download.csdn.net/download/ss_geng/5374863?utm_source=bbsseo]//download.csdn.net/download/ss_geng/5374863?utm_source=bbsseo[/url]
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件
我们是很有底线的