"Method Amf3Broker.handleMessage does not exist" error
| Project: | AMFPHP |
| Version: | 6.x-1.0-beta1 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
I'm encountering this error in Recent log entries page:
Method Amf3Broker.handleMessage does not exist.
The setup is this:
I created a profile_service module and exposed a function named profile.save. This is the code:
array(
'#method' => 'profile.save',
'#callback' => 'profile_service_save',
'#args' => array(
array(
'#name' => 'user',
'#type' => 'struct',
'#description' => t('The object that contains the profile data.'))),
'#help' => t('Saves a profile data.')),Here is the callback function:
function profile_service_save($data) {
print_r($temp);
}Now, I'm planning to create a Flex application that would use that. AMFPHP is already installed too. Here's an excerpt of the Flex code:
...
...
public function submitUpdate():void {
var data:Object = new Object();
data.uid = userID;
data.profile_fname = txtFirstname.text;
data.profile_lname = txtLastname.text;
profileAPI.save(data);
}
...
...
...
<mx:RemoteObject endpoint="http://localhost/services/amfphp" showBusyCursor="true"
destination="amfphp" source="profile" id="profileAPI">
<mx:method name="save" result="profileSave(event)" fault="onFault(event)"/>
<mx:method name="get" result="userGet(event)" fault="onFault(event)"/>
<mx:method name="uid" result="profileUid(event)" fault="onFault(event)"/>
</mx:RemoteObject>After doing some several tests and experimentation, I'm still receiving this message "Channel disconnected before an acknowledgement was received". And it seems that for the backend error, this is the message: Method Amf3Broker.handleMessage does not exist.
But note that when I remove the argument in profile_service_save, the error is gone.
Kindly tell me what part or what could be missing that causes that error. Thanks a lot in advance.

#1
Hi,
We are stucked on the same issue...
Did you get a workaround ?
Thanks for helping.