Flex RPC错误小结
一、Flex
Remoting
1.Channel definition,
mx.messaging.channels.RTMPChannel, can not be
found...:最新版的Fluorined在services-config.xml中新增了RTMP Channel,主要是用来配 置Flex
Messaging,编译时需要FDS.swc支持,当然如果不需要此功能可以注释掉channel-definition这个节点。
2.RPC
Fault faultString="The requested type... is not accessible":Flash
Remoting服务名不对。详见Flash Remoting支持的远程服务。
3.RPC Fault faultString="Could
not find a suitable method with name ..."
:找不到对应的方法。首选看方法名对不对,再看方法的参数个数, 参数类型,还要检查返回数据的类型。关于数据的类型详见Flex
AS3数据类型转换成Fluorine数据类型和 Fluorine .NET数据类型转换成Flex AS3数据类型。
4.NetConnection.Call.Failed:
HTTP: Status 404: url...: '虚拟主机的域名/子目录/Gateway.aspx'":没将Root
URL设置为虚拟主机的域名。详见Flex Bulider 2与Flash cs3的发布文件 。
5.RPC Fault
faultString="Send failed" faultCode="Client.Error.MessageSend"
faultDetail="Channel.Connect.Failed errorNetConnection.Call.Failed:
HTTP: Status 404: url: 'http://localhost/Gateway.aspx...'": Root
URL中包含的Context与Context root中设置的不一致。
6.[RPC Fault faultString="Send
failed" faultCode="Client.Error.MessageSend"
faultDetail="Channel.Security.Error error Error #2048...: 安全沙箱冲突
7.RPC
Fault faultString="MessagingError message='Destination 'fluorine'
either does not exist or the destination has no channels defined (and
the application does not define any default channels.)'"
faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to
'fluorine'"...:FluorineFX没配置或destination
没有定义channels(默认是fluorine),详见配置支持Fluorine Remoting的Web应用
8.ReferenceError:
Error #1056: 无法为 ...创建属性...:当使用[RemoteClass(alias="XXX")],客户端与服务器端Value
Object映射时属性名不一 致。
二、Http Service
1.faultCode:Server.Proxy.
相关文档:
性能测试是一项浩大的工程,若你只想随便找台机器装上ld后,造几条数据,弄几个并发用户简单跑一下出来结果就可以万事大吉了,那你就大错特错了!(这样得出的测试结果没有任何价值和意义,当然更无法依此评估出你贵公司系统的性能了。
性能测试真正开始执行之前 ......
前言
C/C++的开发,内存的管理是十分重要的课题,分配内存使用后要及时释放,否则内存泄漏导致内存耗尽。进入托管环境后,内存能够自动管理和回收,已经不用开发者太操心内存管理方面的问题了,在托管环境,开发者仍然可以做一些工作,提供内存回收的效率,例如,把类内部的引用对象设置为null是最基本的。借鉴在.net环境 ......
前言
Undo,Redo是编辑环境里常见的并且非常重要的功能,下面介绍【命令模式】在Flex/AS3下的实现。
ICommand接口
定义ICommand接口,其中Execute和UnExecute是相反的2个操作,Title属性用于命令显示,例如显示在操作历史列表里。
package cwn.wb.ui.core.command
{
import cwn.core.IDi ......
Repeater 顾名思义,Repeat就是重复的意思, Repeater 就是用来重复的控件
Repeater 会根据数据源中对象的多少来产生多少个子项,生成的子项全部是以数组形式存在的
<mx:Repeater id="myRepeater" dataProvider="{myArray}">
<mx:HBox>
  ......
http://blog.minidx.com/2008/08/06/1227.html good
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" verticalAlign="top"
horizontalAlign="center" backgroundGradientColors="[0x000000,0x323232]" ......