Server.Acknowledge.Failed – another AMFPHP ballache
While working on a project today, i encountered a serious ballache in the form of this:
mx.rpc.Fault (@14f27331)
[inherited]
faultCode “Server.Acknowledge.Failed”
faultDetail “Was expecting message ’93EDDF20-516F-2C3F-AA63-619BAB9DA793′ but received ”.”
faultString “Didn’t receive an acknowledgement of message”
rootCause null
AMFPHP, for all it’s wonder and usefulness, doesn’t document its errors very well. Very irritating. After much digging, i found that the solution to this isn’t actually anything to do with the AMFPHP framework, nor with Flex! It’s stupid little error in PHP… Make sure that you aren’t trying to return an array or object in PHP that has an undefined index or property. I slapped my forehead when i realised the error of my ways.
Sigh.
| Print article | This entry was posted by Danny Kopping on November 3, 2008 at 11:12 am, and is filed under Flex, PHP. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 2 years ago
I met with the same problem,thanks very much for your notes.
about 2 months ago
I have the same problem. But one difference. It works smoothly in Firefox browser and chrome version 12.. but not work with chrome version 15.. what can i do for this?
about 2 years ago
Hi.
Never use unset() function with objects that should be returned by AMFPHP. I fixed mentioned problem with method described in the sentence above
.
Hamazasp Avetisyan
about 1 year ago
You are a lifesaver.. Thanks!
about 1 year ago
My pleasure
glad it helped you…
about 1 year ago
Hi, i have the same problem only when i return one to many list from hibernate, but not in the case of data returned from single table.
Thanks in Advance.
about 1 year ago
This was a tremendous help and saved me several hours of troubleshooting at least. THANK YOU
about 1 year ago
My pleasure Sean
about 1 year ago
thx 4 the tip its been hard 4me to find the problem by my self
about 8 months ago
4 hours wasted until I find your blog!
Tks!