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 1 year ago
I met with the same problem,thanks very much for your notes.
about 11 months 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 5 months ago
You are a lifesaver.. Thanks!
about 5 months ago
My pleasure
glad it helped you…
about 3 months 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 2 months ago
This was a tremendous help and saved me several hours of troubleshooting at least. THANK YOU
about 1 month ago
My pleasure Sean