Flash Builder 4编译排错

   在上文《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语句就会出错。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章