Java-AS,PetStoreFacade转换失败
关键字: 旧文章整理简要介绍,为实现Flex调用Spring示例PetStore的Facade,写了一个类用于RemoteObject将Java端的Facade转换到AS端的对象或接口。结果发现AS不支持函数重载,只能将Java端的带重载的函数改名或删除。
[SWF] F:\eclipse32\workspace\FlexPetStore\bin\StockQuoteImpl-debug.swf - 724,623 bytes after decompression
TypeError: Error #1034: 强制转换类型失败:无法将 mx.utils::ObjectProxy@a14e601 转换为 org.springframework.samples.jpetstore.domain.logic.PetStoreFacade。
at StockQuoteImpl/StockQuoteImpl::handleResult()[F:\eclipse32\workspace\FlexPetStore\StockQuoteImpl.mxml:37]
at StockQuoteImpl/__PetStoreRO_result()[F:\eclipse32\workspace\FlexPetStore\StockQuoteImpl.mxml:58]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc::AbstractService/dispatchEvent()[C:\dev\enterprise_gmc\frameworks\mx\rpc\AbstractService.as:236]
at mx.rpc.remoting.mxml::RemoteObject/dispatchEvent()[C:\dev\enterprise_gmc\frameworks\mx\rpc\remoting\mxml\RemoteObject.as:201]
at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\dev\enterprise_gmc\frameworks\mx\rpc\AbstractOperation.as:183]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[C:\dev\enterprise_gmc\frameworks\mx\rpc\AbstractInvoker.as:167]
at mx.rpc::Responder/result()[C:\dev\enterprise_gmc\frameworks\mx\rpc\Responder.as:48]
at mx.rpc::AsyncRequest/acknowledge()[C:\dev\enterprise_gmc\frameworks\mx\rpc\AsyncRequest.as:82]
at NetConnectionChannel.as$37::NetConnectionMessageResponder/NetConnectionChannel.as$37:NetConnectionMessageResponder::resultHandler()[C:\dev\enterprise_gmc\frameworks\mx\messaging\channels\NetConnectionChannel.as:407]
at mx.messaging::MessageResponder/result()[C:\dev\enterprise_gmc\frameworks\mx\messaging\MessageResponder.as:202]
发表评论
- 浏览: 72115 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
基于MVC的Flex framework ...
这话怎么理解? 不过正如某人在演讲上指出的那样,要使用这些框架,了解Cairng ...
-- by 毕竟红尘 -
在HostMonster上部署rail ...
你这个文章就是屁话,骗点击的,看了还是不知道怎么做
-- by kokko -
基于MVC的Flex framework ...
千万不要用PUREMVC,它只适合做只有一个主界面的程序,如果你有弹出窗口它的m ...
-- by wangwanttt -
想起一个同事
不认识,不过他关于swing的blog很棒,可惜他好像离开了SUN?!所以也不更 ...
-- by eccojap -
想起一个同事
正是他,你认识他吗?适合自己,我不确定自己是否找到了。
-- by zerozone






评论排行榜