![]() |
| Flex2/CFC -> RemoteObject not working on HMS.com |
|
CMNT
|
Hi all - back from MAX, and I'm finally using RemoteObject! Anyone else using Flex2 around here?
I have a simple calendar application. All is working fine with my dev copy of ColdFusion, but when I put it up on hostmysite.com it fails to connect - error follows at the end of this post. The remoteobject looks like this. <mx:RemoteObject id="calendarRO" destination="ColdFusion" source="g3calendar.cfcs.CalendarGateway"> <mx:method name="getAll" result="getAllHandler(event)"/> </mx:RemoteObject> I have tried with and without "g3calendar" in the source (both work in my dev copy), though I think its finding the CFC, because instead, I would get a "CFC not found" right? I used the make CFCs wizard in Flex Builder 2. As far as I know, the servers on HMS are updated to v7.02. I have double-checked that the datasource is working fine. I have made a CFMapping to the g3calendar folder. Other Flex Apps work fine via WebService and HTTPService. Here is the error - not quite sure how to toubleshoot this! - Chris [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500"] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::fa ultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at mx.messaging::ChannelSet/::faultPendingSends() at mx.messaging::ChannelSet/channelFaultHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv entFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.messaging::Channel/mx.messaging:Channel::connectFailed() at mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingCha nnel::connectFailed() at mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::st atusHandler() |
||||||||||||
|
|
|||||||||||||
|
tedjtw
|
You probably want to send this to support. They usually can get you an answer pretty quickly.
HTH |
||||||||||||
|
|
|||||||||||||
|
Shaji
|
Hi,
I am using RemoteObject with Flex2 without issue on my website. I used simple hello world code at http://www.adobe.com/devnet/flex/articles/helloworld.html If you said 'work fine via WebService and HTTPService', correct cfmapping to cfc and not work on RemoteObject, I would say it is issue with version of JRE on server. Just send it to support and mention "RemoteObject with Flex2" in subject of email and I will take a look on it. |
||||||||||||
|
|
|||||||||||||
|
Shaji
|
Now Flex2 with CF RemoteObject is not working anymore.
Have you tried webservice connection with Flex2 yet? |
||||||||||||
|
|
|||||||||||||
|
CMNT
|
So after seeing your reply, I've spent the last two months building a new Flex2/CF application using RemoteObject instead of WebService. I was having many many problems using WS, and they've all been fixed via Remote Object.
So I uploaded it this morning, and sure enough, I get the following error: An error has occured: [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500: url: 'http://<myWebsite>/flex2gateway/'"] ...sonofa... Can anyone confirm or deny without a doubt on the functionality of Remote Object / CF on HMS? If this doesn't work, I'm going elsewhere. - Chris |
||||||||||||
|
|
|||||||||||||
|
Shaji
|
Hello Chris,
I am sorry for replying delay. I have played around it with JVM config. It is working fine on Linux CF server. You can request support to move your site to Linux CF server and they would give you IP for testing. If it is working, ask them to repoint your domain to new IP. Shaji |
||||||||||||
|
|
|||||||||||||
|
CMNT
|
Shaji,
You need to double-check with the rest of your staff. I was told by support that it would work on a CF/Linux hosting plan, and spent all of the time moving to a Linux server specifically for the purpose of Flex2-CF RemoteObject support. RemoteObject still did not work as promised, and I was told that due to the custom JVM installation on HMS, I would need to upgrade to a different, much more expensive hosting plan. Because of this whole debacle, I have already left HostMySite and moved to another hosting provider where I'm paying less and have all of the RO/Flex2 gateway functionality I need. Thanks for your time, - Chris |
||||||||||||
|
|
|||||||||||||
|
rakuda
|
I am looking into your hosting Builder + CF on Linux and one thing I'll be doing is using Flex 2 and CF and will probably use RemoteObject. I wanted to verify that this would indeed work. Shaji?
|
||||||||||||
|
|
|||||||||||||
|
Shaji
|
Rakuda,
Sorry for reply lately. I confirmed that it is working on Linux Bulder CF +.. See my hello world felx at http://65.36.238.80/flex/HelloWorld_ro.html You can download this code at http://www.adobe.com/devnet/flex/articles/helloworld.html Shaji |
||||||||||||
|
|
|||||||||||||
|
rakuda
|
Thanks for the info Shaji! I just saw the CF8 beta so I'll try that. Hopefully I'll have some time to work on some CF stuff and run it through the paces and hopefully jump to Linux CF8 hosting when its out of beta.
|
||||||||||||
|
|
|||||||||||||
|
Shaji
|
Hi Rakuda,
I got cf8 beta account and played flex2. http://h127118.cf8beta.com/flex/HelloWorld_ro.html You can get free cf8 beta account at http://www.hostmysite.com/cf8/. Happy Coding!!! Shaji |
||||||||||||
|
|
|||||||||||||
| Flex2/CFC -> RemoteObject not working on HMS.com |
|
||
|


