【问题标题】:What are reasons for Channel disconnected message error popup?频道断开消息错误弹出的原因是什么?
【发布时间】:2012-11-04 11:19:03
【问题描述】:

当我测试我的应用程序时,我每次将数据更新到数据库后都会发现。弹出一个恼人的故障信息。

说什么

在收到确认之前通道已断开

我检查数据库,测试php脚本,检查网络监视器,甚至重写服务调用者(不知道它的名字)

<dataservice:DataService id="dataservice2" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail  + '\n' + 'dataservice')" showBusyCursor="true"/>

甚至创建一个新应用程序只是为了测试该组件。但是,一切正常,数据库收到了正确的数据集,我仍然无法识别该消息的来源。

我怎样才能找到这条消息的来源???

【问题讨论】:

标签: php apache-flex


【解决方案1】:

我发现了PHP脚本的错误原因。当我查看 PHP 错误日志文件时,我发现 Flex 没有显示像这样的变量引用错误

PHP Strict Standards:  Only variables should be passed by reference in C:\xampp\htdocs\fypweee_admin\FYPadminSideV3-debug\services\StockproductService.php on line 238

如果您使用 XAMPP,错误日志文件将位于 [your hard disk name]:\xampp\php\logs1

由于 php 脚本仍然神秘地将数据集发送到数据库,我想我会留下那个错误(暂时)。

【讨论】:

    【解决方案2】:

    1.将文件夹放入项目中

       (i).flex-spreadsheet(folder)
       (ii).amfphp-spreadsheet(folder)
    

    2.然后打开文件

      for xamp=> \htdocs\projectname\flex-spreadsheet\properties\ApplicationSettings.properties
    
      for wamp=> \www\projectname\flex-spreadsheet\properties\ApplicationSettings.properties
    

    3.将第一行设为

    serverpath=http://192.xxx.x.xxx/projectname/amfphp-spreadsheet/gateway.php
    **or**
    serverpath=localhost/projectname/amfphp-spreadsheet/gateway.php
    

    这对我有用。

    【讨论】:

      猜你喜欢
      • 2017-02-20
      • 1970-01-01
      • 1970-01-01
      • 2020-12-18
      • 1970-01-01
      • 2011-01-24
      • 1970-01-01
      • 1970-01-01
      • 2011-09-15
      相关资源
      最近更新 更多