Adobe Flex HTTPService AsyncResponder onResult 处理程序触发两次?
我的 HTTPService resultHandler 触发了两次。这正常吗? messageId 和 token# 相同。两次 StatusCode=200。
我检查了 Fiddler 中的流量,只提交了一个请求。这是一个代码片段;我在服务 send() 方法上放置了一个断点,并且它只发生一次。
var token: AsyncToken; var myResponder : AsyncResponder = new AsyncResponder(onResult, onFault); token=myHTTPService.send(); token.addResponder(myResponder); private function onResult(e:ResultEvent , token:Object=null):void { **// we enter this function twice** }
My HTTPService resultHandler is firing twice. Is that normal? The messageId and token# are the same. StatusCode=200 both times.
I've examined the traffic in Fiddler and only one request is being submitted. Here's a code snippet; I've put a breakpoint on the service send() method and it is happening only once.
var token: AsyncToken; var myResponder : AsyncResponder = new AsyncResponder(onResult, onFault); token=myHTTPService.send(); token.addResponder(myResponder); private function onResult(e:ResultEvent , token:Object=null):void { **// we enter this function twice** }
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
结果发现是一个错误。
http://bugs.adobe.com/jira/browse/SDK-22883
Turns out to be a bug.
http://bugs.adobe.com/jira/browse/SDK-22883
我也面临这个问题!我想解决方案是转向 Flex3.5.. 这就是我今天 2010 年 2 月 17 日看到的错误跟踪页面所说的内容
I am facing this problem as well! I guess the solution is to move on to Flex3.5.. thats what the bug tracking page says when I saw it today 17/feb/2010