Flex调用Hessian服务时错误#1014与#1065的处理
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://www.voidcn.com/article/p-nmgqmyjo-vm.html 项目环境: 问题:控制台输出如下提示,但不影响调用。 Cannot find class by alias 'test.vo.User': ReferenceError: Error #1014: Class test.vo.User could not be found. Cannot file class by name 'test.vo.User': ReferenceError: Error #1065: Variable User is not defined. 在程序中加入下面代码,后可消除ReferenceError: Error #1065错误,
Cannot file class by name 'test.vo.User': ReferenceError: Error #1065: Variable User is not defined 提示信息便成为Found class [class User] by alias test.vo.User 说明已经找到该类的引用 再来看看如何消除下面提示 Cannot find class by alias 'test.vo.User': ReferenceError: Error #1014: Class test.vo.User could not be found. 要消除这个提示,只需要在test.vo.User类定义的上面加上下面这行代码就可以了。
User的完整代码如下:
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |