Flash Builder 4编译排错

本文介绍了在使用FlashBuilder4通过LCDS31DataManagement访问Coldfusion的CFCs时可能遇到的几个典型错误及其解决办法,包括组件路径配置、编译设置及数据库交互问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

   在上文《Flash Builder 4通过LCDS31 Data Management访问Coldfusion的CFCs》的程序运行时会发现以下几个错误:

 

  • [RPC Fault faultString="Error invoking fill-method 'fill' for destination workcalendar: Unable to invoke CFC - Error invoking CFC fill operation:Could not find the ColdFusion Component or Interface com.les.visual.workcalendarAssembler." faultCode="Server.Processing" faultDetail="null"]

很明显,找不到com.les.visual.workcalendarAssembler的CF组件,解决方法,确保组件存放在CF_Root/wwwroot/com/les/visual目录下

 

 

  • [RPC Fault faultString="Error during update: The OLDBEAN argument passed to the update function is not of type com.les.visual.workcalendar." faultCode="null" faultDetail="null"]

Flash Builder 4 编译时没有将com.les.visual.workcalendar编译到Flex2004中,将workcalendar.as拷贝到scr下com/les/visual目录下,在Flex2004.mxml增加语句

     import com.les.visual.workcalendar;

     //增加一个虚拟变量

     private var dummyVariableToCompile:workcalendar= new workcalendar();

 

  • [RPC Fault faultString="error" faultCode="Channel.Polling.Error" faultDetail="null"]
    The client has no active subscriptions over endpoint 'cf-polling-amf'

           出现这种情况有多种原因,就本例来说

           在配置文件 data-management-config.xml增加
                       <use-accessors>true</use-accessors>
                            <use-structs>false</use-structs>
                      <access>
                          <method-access-level>remote</method-access-level>
                       </access>

  •  [RPC Fault faultString="Error during update: Error Executing Database Query." faultCode="null" faultDetail="null"]

 1.检查权限,必须拥有修改数据权限
2.{t 'hh:mm:ss'}不能被数据库直接识别为time类型,需要转化。
3.空值问题,从CF日志看出数据空值被赋予默认值,但使用此值SQL语句就会出错。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值