Hey Douglas,

Thanks for posting this. Definitely could come in handy.

If you know of any good resources for flex/Amf information, please let me
know.

Thanks again.

J


On Tue, May 12, 2009 at 7:47 PM, Douglas Pasqua <[email protected]>wrote:

> The following link has the solution for this problem.
> http://www.mail-archive.com/[email protected]/msg74512.html "Ok,
> now...one single line of code added into my Module's constructor has fixed
> the whole problem. It is:
> registerClassAlias("flex.messaging.messages.RemotingMessage",
> mx.messaging.messages.RemotingMessage);" I need also added the folowing
> line: import mx.messaging.messages.RemotingMessage; Regards, Douglas
>
> Douglas Pasqua wrote:
>  Hello, I have notice a strange behave in Zend/Amf/Server.php, line 648:
> $message = $body->getData(); Sometimes, after some requests mades from Flex
> module. the method getData returns a object instance of StdClass. On first
> Module Loaded, the $message is a instance of
> Zend_Amf_Value_Messaging_RemotingMessage. Then, I added the following code,
> after line 648: if ($message instanceof stdClass) { $n = new
> Zend_Amf_Value_Messaging_RemotingMessage(); $n->source = $message->source;
> $n->operation = $message->operation; $n->headers = $message->headers;
> $n->destination = $message->destination; $n->messageId =
> $message->messageId; $n->body = $message->body; $n->clientId =
> $message->clientId; $n->timestamp = $message->timestamp; $n->timeToLive =
> $message->timeToLive; $message = $n; } After that, I didin't received the
> error message: Method "null" does not exist ! Everything is working well.
> Maybe, there is a Flex RemoteObject request that ZF doesn't handle well.
> Regards, Douglas Pasqua
>
> Douglas Pasqua wrote:
>  Hello Guys, I have a flex module , named "Host", loaded by a item in a
> Tree. The module makes requests to a Zend_Amf_Server ! The flex module has a
> init method where its make the connection to Zend_Amf_Server, loading a
> DataGrid and some LIST form components. On the first load of module,
> everything goes well. The DataGrid and the Lists form are Loaded successful!
> When I click in another item of Tree, changing the module, and then return
> back to the module "Host", loading the "Host" module again, I receive the
> message below: The same connection made a litte time ago with sucess, know
> it's fail. [RPC Fault faultString="Method "null" does not exist"
> faultCode="0" faultDetail="#0 /usr/share/php/Zend/Amf/Server.php(268):
> Zend_Amf_Server->_dispatch('null', Object(stdClass)) #1
> /usr/share/php/Zend/Amf/Server.php(322):
> Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http)) #2
> /home/AGTECH/douglas.pasqua/public_html/agmonitor_dev/application/core/controllers/ServerController.php(44):
> Zend_Amf_Server->handle() #3 /usr/share/php/Zend/Controller/Action.php(503):
> ServerController->loadAction() #4
> /usr/share/php/Zend/Controller/Dispatcher/Standard.php(285):
> Zend_Controller_Action->dispatch('loadAction') #5
> /usr/share/php/Zend/Controller/Front.php(934):
> Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
> Object(Zend_Controller_Response_Http)) #6
> /home/AGTECH/douglas.pasqua/public_html/agmonitor_dev/application/library/Agtech/Bootstrap.php(217):
> Zend_Controller_Front->dispatch() #7
> /home/AGTECH/douglas.pasqua/public_html/agmonitor_dev/application/webapp/controller.php(25):
> Agtech_Bootstrap->dispatch() #8 {main}"] at mx.rpc::AbstractInvoker/
> http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C<http://www.adobe.com/2006/flex/mx/internal::faultHandler%28%29%5BC>:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:220]
> at
> mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
> at
> mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
> at
> NetConnectionMessageResponder/statusHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:569]
> at
> mx.messaging::MessageResponder/status()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:222]
> The Server Controller, loadAction: $server = new Zend_Amf_Server();
> $server->setProduction(false); require_once dirname(__FILE__) .
> '/../Host/HostServer.php'; require_once dirname(__FILE__) .
> '/../Host/agHost.php'; $server->setClass('HostServer');
> $server->setClassMap('HostVO', 'agHost'); $response = $server->handle();
> echo $response; Services-Config: * Regards, Douglas
>
>
> ------------------------------
> View this message in context: Re: Zend_Amf: Method "null" does not 
> exist<http://www.nabble.com/Zend_Amf%3A-Method-%22null%22-does-not-exist-tp21108518p23506775.html>
> Sent from the Zend Framework mailing list 
> archive<http://www.nabble.com/Zend-Framework-f15440.html>at Nabble.com.
>

Reply via email to