[英]Flex error Server.Acknowledge.Failed: Didn't receive an acknowledge message
I'm having a very strange behavior with a C# class 'Digital', mapped to an AS3 class (Flex) with the same name, using FluorineFx. 我在使用C#类“数字”时有一个非常奇怪的行为,该类使用FluorineFx映射到了具有相同名称的AS3类(Flex)。
This class (C#) has a FluorineFx.AMF3.ByteArray field, mapped with a ByteArray property in AS3, it's purpose is transmit binary files stored in databases. 此类(C#)具有FluorineFx.AMF3.ByteArray字段,该字段与AS3中的ByteArray属性映射,其目的是传输存储在数据库中的二进制文件。
Sometimes (not always) I'm receiving this error: "Server.Acknowledge.Failed - Didn't receive an acknowledge message - Was expecting mx.messaging.messages.AcknowledgeMessage, but received null." 有时(并非总是),我收到此错误:“ Server.Acknowledge.Failed-未收到确认消息-预期为mx.messaging.messages.AcknowledgeMessage,但收到null。” This error never occurs in development machines, just in clients over the network. 仅在通过网络的客户端中,此错误永远不会在开发计算机中发生。
Debbuging with Firebug/FlashFirebug, this exception is thrown randomically: 使用Firebug / FlashFirebug调试时,会随机抛出此异常:
RangeError: Error #2006: The supplied index is out of bounds. RangeError:错误#2006:提供的索引超出范围。 at ObjectInput/readObject() at mx.collections::ArrayList/readExternal()[E:\\dev\\hero_private\\frameworks\\projects\\framework\\src\\mx\\collections\\ArrayList.as:593] at mx.collections::ArrayCollection/readExternal()[E:\\dev\\hero_private\\frameworks\\projects\\framework\\src\\mx\\collections\\ArrayCollection.as:149] 在mx.collections :: ArrayList / readExternal()处位于ObjectInput / readObject()[在Ex:\\ dev \\ hero_private \\ frameworks \\ projects \\ framework \\ src \\ mx \\ collections \\ ArrayList.as:593]在mx.collections :: ArrayCollection /readExternal()[E:\\dev\\hero_private\\frameworks\\projects\\framework\\src\\mx\\collections\\ArrayCollection.as:149]
This is driving me crazy, I know generally this is caused by a mapping mistake, but if it's the case, it should ocurrs always and everywhere. 这让我发疯,我通常知道这是由映射错误引起的,但是如果是这样,它应该在所有地方都发生。
Any help I will appreciate. 任何帮助,我将不胜感激。
Ok, I'm embarrassed, but maybe this could help somebody else: the real problema was the Firewall in those machines. 好的,我很尴尬,但这也许可以帮助其他人:真正的问题是那些机器上的防火墙。 In some cases, Personal ZoneAlarm and in others, Windows Firewall. 在某些情况下,使用Personal ZoneAlarm,在其他情况下,使用Windows防火墙。 It really makes sense because the response with binary files embebed should be interrupted to protect the clients. 这确实是有道理的,因为应该中断嵌入二进制文件的响应以保护客户端。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.