【问题标题】:Error #2173 when sending Gravity message发送重力消息时出现错误 #2173
【发布时间】:2012-03-23 16:51:04
【问题描述】:

我在使用 Gravity 时遇到了 Map 对象的问题。所有消息都可以正常工作,除了包含 Map 对象的消息。他们抛出以下异常:

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.

我发现当您不包含 granite-essentials.swc 时会发生此错误,但我不认为是这种情况,因为使用 RemoteObject 的正常消息传递工作正常,即使使用 Map 对象也是如此。
任何帮助将不胜感激。

【问题讨论】:

    标签: java actionscript-3 flash gravity graniteds


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-02-27
      • 2016-12-22
      • 1970-01-01
      • 2012-07-22
      • 2011-04-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多