rsrini7 / flexmonkey

Automatically exported from code.google.com/p/flexmonkey
0 stars 0 forks source link

FlexMonkey breaks AMF service calls using RemoteObject. #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run a Flex 3 application in FlexMonkey that makes an AMF service call 
using RemoteObject.

What is the expected output? What do you see instead?
It should allow the AMF service call to execute and return it's results or 
at least a FaultEvent if there is an underlying reason the calls are 
failing. Instead, the service call hangs indefinitely without returning a 
FaultEvent.

What version of the product are you using? On what operating system?
Using FlexMonkey 1.0 Beta 1 with Flex 3 and PureMVC 2.0.4 on Windows Vista.

Please provide any additional information below.

Original issue reported on code.google.com by Andrew.B...@gmail.com on 15 Jul 2009 at 1:20

GoogleCodeExporter commented 9 years ago

Original comment by eric.owe...@gtempaccount.com on 16 Jul 2009 at 12:53

GoogleCodeExporter commented 9 years ago
Hi Andrew:

I am unable to reproduce your problem.  I am able to use remote objects with 
both the MonkeyAgent and the 
FlexMonkey Target SWF window.

I have a few questions:

Are you using the MonkeyAgent or the FlexMonkey Target SWF window?
If you are using the MonkeyAgent, could you describe where it and your 
application are? 
Are you having the problems only on playback, or with record as well?
What is your server-side AMF remoting setup?

Thanks,
Eric

Original comment by eric.owe...@gtempaccount.com on 16 Jul 2009 at 1:34

GoogleCodeExporter commented 9 years ago
Eric,

I'm using the FlexMonkey Target SWF window currently. The problem is affecting 
record and playback functionality 
because the call to the authentication service hanging prevents the rest of the 
application from being tested.

The server is a simple AMFPHP setup on localhost - I've tested the service on a 
remote box as well and I get the same 
issue. It's got one service class (at this point) that's called UserService and 
contains the authenticateUser 
endpoint (among others). I used the -services flag in the Flex project compiler 
options to add the services-
config.xml file to the Flex app and give it the proper channel, etc.

If you need any other information regarding this issue, please let me know.

Thanks,
Drew Miller

Original comment by Andrew.B...@gmail.com on 16 Jul 2009 at 3:42

GoogleCodeExporter commented 9 years ago
Hi Andrew:

Could you try your application with the MonkeyAgent?  I suspect that your 
remoting setup requires running in 
the browser, which is supported by the agent.

Cheers,
Eric

Original comment by eric.owe...@gtempaccount.com on 20 Jul 2009 at 2:15

GoogleCodeExporter commented 9 years ago
Eric,

I've setup the MonkeyAgent and now I'm getting some different, but possibly 
related issues.

Our back-end has changed, we're now connecting to a LiveCycle server. The 
application loads and connects to the FlexMonkey window just fine, but whenever 
I make a 
DataServer fill call, I'm getting the following error message from the 
application:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at mx.messaging::ChannelSet/connectChannel()[C:\autobuild\3.3.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1325]
    at mx.messaging::ChannelSet/send()[C:\autobuild\3.3.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1207]
    at mx.messaging::MessageAgent/internalSend()[C:\autobuild\3.3.0\frameworks\projects\rpc\src\mx\messaging\MessageAgent.as:1083]
    at mx.messaging::Producer/internalSend()[C:\autobuild\3.x\frameworks\projects\rpc\src\mx\messaging\Producer.as:147]
    at mx.messaging::AbstractProducer/connect()[C:\autobuild\3.x\frameworks\projects\rpc\src\mx\messaging\AbstractProducer.as:446]
    at 
mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::initialize()[C:\d
epot\DataServices\branches\lcds26_hotfixes\frameworks\projects\data\src\mx\data\
DataStore.as
:2414]
    at mx.data::ConcreteDataService/fill()[C:\depot\DataServices\branches\lcds26_hotfixes\frameworks\projects\data\src\mx\data\ConcreteDataService.as:1018]
    at mx.data::DataService/fill()[C:\depot\DataServices\branches\lcds26_hotfixes\frameworks\projects\data\src\mx\data\DataService.as:1039]

It looks like the channels aren't working properly when the app is inside the 
agent. Any help you can provide would be greatly appreciated.

Thanks,
Drew Miller

Original comment by Andrew.B...@gmail.com on 27 Jul 2009 at 4:20

GoogleCodeExporter commented 9 years ago
The AMF Call issue is fixed when moving to the MonkeyAgent.  If there is still 
an issue here, I'll open a new issue 
to cover it.

Original comment by eric.owe...@gtempaccount.com on 12 Aug 2009 at 10:20

GoogleCodeExporter commented 9 years ago
Hi, I got similar issue. In my case, everything is fine with 
mx.messaging.channels.AMFChannel, but when 
application is trying to use org.granite.gravity.channels.GravityChannel as 
Channel class, error "The channel class 
'org.granite.gravity.channels.GravityChannel' specified was not found." raised 
and then I always get  same error 
with  Andrew.Brett.Miller post. Same in Target SWF window and MonkeyAgent. And 
these errors only happened 
when I use FlexMonkey to launcher the application.

Original comment by swing1...@gmail.com on 18 Aug 2009 at 9:53

GoogleCodeExporter commented 9 years ago
I found the problem is, when the application try to create Channel, the 
ServerConfig class uses 
getDefinitionByName to find the class, but in some reason, this 
getDefinitionByName is trying to find definition 
in ApplicationDomain of FlexMonkey which is parent ApplicationDomain of the 
application. So when it is ok to  
find out AMFChannel, but couldn't find out GravityChannel because there is no 
one in FlexMonkey 
ApplicationDomain.

Original comment by swing1...@gmail.com on 20 Aug 2009 at 1:53