Zend AMF 抛出 InvocableTargetException
我正在尝试通过 Zend AMF 从 Flex 对 php 函数进行服务调用。大多数函数都可以正常调用,但对于一个特定函数,它会抛出以下异常:
InspirationTargetException:有一个 调用操作时出错。 检查您的操作输入或服务器 代码并尝试调用该操作 再次。
原因:致命错误:呼叫成员 函数 getInvokeArguments() 上 非对象在 D:\wamp\www\ZendFramework\library\Zend\Amf\Server.php 在第 328 行
我无法通过此进行调试 - 有没有人以前遇到过类似的问题,或者有任何想法如何调试?
I am trying to make a service call to a php function from flex, through Zend AMF. Most of the functions get called fine, but for one particular function, it throws the following exception:
InvocationTargetException:There was an
error while invoking the operation.
Check your operation inputs or server
code and try invoking the operation
again.Reason: Fatal error: Call to a member
function getInvokeArguments() on a
non-object in
D:\wamp\www\ZendFramework\library\Zend\Amf\Server.php
on line 328
I am not able to debug through this - has anyone faced any issue like this before, or have any ideas how this can be debugged?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
快速浏览一下 ZFW 的源代码,这似乎是他们框架上的一个错误。
来源: http://framework.zend.com/code/filedetails.php?repname=Zend+Framework&path=/trunk/library/Zend/Amf/Server.php
我查看了他们的错误跟踪器,但没有发现任何与此相关的内容,也许您应该打开一个新问题?
此外,您可以通过抓取 Flex 发送到 PHP 客户端的消息并从中创建一个测试用例来调试问题。
At a quick glance through ZFW's source, this appears to be a bug on their framework.
Source: http://framework.zend.com/code/filedetails.php?repname=Zend+Framework&path=/trunk/library/Zend/Amf/Server.php
I looked in their bug tracker and haven't found anything related to this, perhaps you should open a new issue?
Additionally, you can debug the problem by grabbing the message that Flex is sending to the PHP client and making a test case out of it.
我们终于意识到这是 Flex 项目设置中的一个问题 - 不知道到底是什么,但是一旦我们删除并再次创建项目,一切就开始正常了!
We finally realized that this was a problem in the flex project setup - don't know exactly what it was, but once we deleted and created the project again, things started working fine!