1

While I am testing my application, I find out every time I after update the data to the database. A annoying fault message is popup.

Which is said

Channel disconnected before an acknowledgement was received

I check the database, test the php script, check the network monitor, even rewrite the service caller (dont know what its name)

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

And even create a new application just to test that component. But, every things are working and the database had received correct data set and I still cannot Identity where that message is come form.

How can I find the source of this message???

4

2 回答 2

0

我发现了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 脚本仍然神秘地将数据集发送到数据库,我想我会留下那个错误(暂时)。

于 2012-11-04T13:03:58.327 回答
0

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

这对我有用。

于 2016-09-22T14:13:42.327 回答