|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Problem connecting flex and cfc, issue with flex integration screenHi All,
I'm having an issue with using cfcs from flex. Everything seems correct in my flex code to use RemoteObject, with destination of ColdFusion and source is my cfc, referenced exactly as done in tutorial. I know my cfc works fine, but I got the error "faultCode:InvokeFailed faultString:'[MessagingError message='Destination 'ColdFusion' has no channels defined and the application does not define any default channels.']' faultDetail:'Couldn't establish a connection to 'ColdFusion'' when I tried to run the code on my server. According to most stuff I read on that error, I would need to define my services-config.xml and go to my CFIDE to make sure the Flex Integration pane shows that the flash remoting and flex data services are enabled. There's where I hit the problem, when I go to flex integration, my admin console throws an error: unexpected constant #2 88. I've got no idea why it throws that error, but the rest of the CFIDE admin console is working fine. We are a shop that builds our coldfusion servers as war files through ant scripts, so doing a reinstall isn't very practical for us. I've tried comparing some of the neo-XXXX.xml files to ones on a working server a friend has and haven't found anything immediately that jumps at me. Has anyone hit this issue before or anything like it? We are running CF 7.0.2.142559 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-server/message.cfm/messageid:6694 Subscription: http://www.houseoffusion.com/groups/cf-server/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.10 |
|
|
Re: Problem connecting flex and cfc, issue with flex integration screenI have an article that just got posted on Fusion Authority about BlazeDS
which would help explain how all of this works. If you're nto a subscriber yet, it's well worth the money. I also have some notes and a recorded presentation on labs.fusionlink.com The neo files don't really have any thing to do with the flex remoting. The config files are all in that flex directory where services-config.xml is located. If this is 7.0.2 and nothing has been changed (like installing Blaze, etc) you should have one services-config.xml file. In that file, it should have a destination named "ColdFusion". In that destination, you need to have a defined channel. By default it's called my-cfamf <channels> <channel ref="my-cfamf"/> </channels> It actually can be called anything. It's just a pointer. Further down the same file, you should have a section that defines the channel and it's endpoint. By default it should look something like this. <channels> <channel-definition id="my-cfamf" class="mx.messaging.channels.AMFChannel"> <endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/" class="flex.messaging.endpoints.AMFEndpoint"/> <properties> <polling-enabled>false</polling-enabled> <serialization> <instantiate-types>false</instantiate-types> </serialization> </properties> </channel-definition> </channels> Below that is the logging section. Change the level from "Error" to "Debug", then start coldfusion is command line and try to run your flex remoting call. The debug level should output some useful information to help find the problem. John mason@... Blog: www.codfusion.com Joel Spriggs wrote: > Hi All, > > I'm having an issue with using cfcs from flex. Everything seems correct in my flex code to use RemoteObject, with destination of ColdFusion and source is my cfc, referenced exactly as done in tutorial. I know my cfc works fine, but I got the error "faultCode:InvokeFailed faultString:'[MessagingError message='Destination 'ColdFusion' has no channels defined and the application does not define any default channels.']' faultDetail:'Couldn't establish a connection to 'ColdFusion'' when I tried to run the code on my server. > > According to most stuff I read on that error, I would need to define my services-config.xml and go to my CFIDE to make sure the Flex Integration pane shows that the flash remoting and flex data services are enabled. There's where I hit the problem, when I go to flex integration, my admin console throws an error: unexpected constant #2 88. > > I've got no idea why it throws that error, but the rest of the CFIDE admin console is working fine. We are a shop that builds our coldfusion servers as war files through ant scripts, so doing a reinstall isn't very practical for us. I've tried comparing some of the neo-XXXX.xml files to ones on a working server a friend has and haven't found anything immediately that jumps at me. > > Has anyone hit this issue before or anything like it? We are running CF 7.0.2.142559 > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-server/message.cfm/messageid:6695 Subscription: http://www.houseoffusion.com/groups/cf-server/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.10 |
| Free embeddable forum powered by Nabble | Forum Help |