2012-03-23 69 views
2

我在使用重力时遇到了Map对象的问题。所有消息都可以正常使用,除了包含Map对象的消息。他们抛出以下异常:发送重力消息时发生错误#2173

ArgumentError: Error #2173: Could not read the object in the stream. though Class:org.granite.collections.BasicMap do not implement flash.utils.IExternalizable,but we know that it's Class:externalizable by its alias. 

我发现,出现此错误时,你不包括花岗岩essentials.swc,但我不认为是这样,因为使用RemoteObject正常通讯工作正常,即使使用Map对象。
任何帮助将不胜感激。

回答

3

该问题已通过在我的GravityManager类中添加以下行来解决: registerClassAlias("org.granite.collections.BasicMap", BasicMap); 我希望它对某人有用。