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語句就會出錯。

 

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