Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/400.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 发送重力信息时出现错误#2173_Java_Actionscript 3_Flash_Gravity_Graniteds - Fatal编程技术网

Java 发送重力信息时出现错误#2173

Java 发送重力信息时出现错误#2173,java,actionscript-3,flash,gravity,graniteds,Java,Actionscript 3,Flash,Gravity,Graniteds,使用重力时,我对贴图对象有问题。除包含贴图对象的消息外,所有消息都正常工作。它们抛出以下异常: 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

使用重力时,我对贴图对象有问题。除包含贴图对象的消息外,所有消息都正常工作。它们抛出以下异常:

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-essenties.swc时,会发生此错误,但我认为情况并非如此,因为使用RemoteObject的正常消息传递工作正常,即使使用Map对象也是如此

任何帮助都将不胜感激。

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