FLEX:期待 mx.messaging.messages.AcknowledgeMes​​sage,但收到 null

发布于 2024-10-06 05:47:26 字数 466 浏览 2 评论 0原文

将 RubyAMF 与 Flex 结合使用。

response = HashWithIn DifferentAccess.new( :handle_type => HandleType.first ) 工作正常,并且 HandleType 是我们 Rails 应用程序中的模型。

response = HashWithIn DifferentAccess.new( :user => User.first ) borks,我在 flex 中得到的响应是:

“本来期待 mx.messaging.messages.AcknowledgeMes​​sage,但收到 null”

User 只是我们 Rails 应用程序中的另一个模型,但显然有一些不同之处。 ClassMapping 的设置相同,但具有正确的名称和属性。有什么想法可能导致它,或者寻找什么?我什至不能百分百确定我知道这个错误意味着什么。

任何帮助都会很棒!

Using RubyAMF with Flex.

response = HashWithIndifferentAccess.new( :handle_type => HandleType.first ) works fine, and HandleType is a model in our rails app.

response = HashWithIndifferentAccess.new( :user => User.first ) borks, and the response I get in flex is:

"Was expecting mx.messaging.messages.AcknowledgeMessage, but received null"

User is just another model in our rails app, but obviously there is something different about it. The ClassMapping is set up identically, but with the correct names and attributes. Any ideas what might be causing it, or what to look for? I am not even 100% sure I know what the fault means.

Any help would be great!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

浅语花开 2024-10-13 05:47:26

我想在这里问问题给了我解决这个问题所需的脑力:D

如果有人感兴趣,发生的事情如下:

在帐户价值对象(AccountVO)中,我有以下内容:

public var user:UserVO = new UserVO()

在用户价值对象(UserVO)中),我有以下内容:

public var account:AccountVO = new AccountVO();

所以,它基本上陷入了创建值对象的无限循环中,并且从未真正响应!哎哟!

I guess asking the question here gave me the necessary brain-power to solve this :D

In case anyone is interested, here is what happened:

In the Account Value Object (AccountVO), I had the following:

public var user:UserVO = new UserVO()

In the User Value Object (UserVO), I had the following:

public var account:AccountVO = new AccountVO();

So, it basically got stuck in an infinite loop of creating value objects, and never actually responded! Doh!

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