Zend AMF 抛出 InvocableTargetException

发布于 2024-10-08 19:55:19 字数 368 浏览 3 评论 0原文

我正在尝试通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

人间不值得 2024-10-15 19:55:19

快速浏览一下 ZFW 的源代码,这似乎是他们框架上的一个错误。

// There is no check if $this->_table[$qualifiedName] is an object, implements an interface, extends a class, only if it's set (the key exists).
$info = $this->_table[$qualifiedName];
$argv = $info->getInvokeArguments(); // Here's when you get the error.

来源: 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.

// There is no check if $this->_table[$qualifiedName] is an object, implements an interface, extends a class, only if it's set (the key exists).
$info = $this->_table[$qualifiedName];
$argv = $info->getInvokeArguments(); // Here's when you get the error.

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.

吖咩 2024-10-15 19:55:19

我们终于意识到这是 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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文