try this, ya i wrote about it today, the way i made it work is to
<mx:RemoteObject
endpoint="http://localhost:8500/flex2gateway"/>
try that.
----- Original Message ----
From: Don Kerr <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, June 5, 2008 4:39:28 PM
Subject: [flexcoders] Re: Flex and CFC issues
Looks like you're not even getting a connection to the flex2gateway.
Few things to check:
1) do you get a blank screen when you go to ../flex2gateway/ ?
2) In CF8 Administrator, do you have Flex enabled under Flex Integration?
3) When you compile your flex app do you have -services
"C:\ColdFusion8\ wwwroot\web- inf\flex\ services- config.xml" in your
arguments (project properties>> compiler . If so, try going to
Project>>Clean.
4) If using IIS, use CF's Web Server Config tool to re-install your
connectors. This can help with connecting to the gateway.
This shouldn't have anything to do with your CFC, since it never gets
to the point of hitting it. You'll get different errors if it is a CFC
issue.
Hope this helps.
Don Kerr
--- In [EMAIL PROTECTED] ups.com, "Just give a guess..."
<paulcathcart@ ...> wrote:
>
> All,
>
> I am extremely new to Flex but I have been doing ColdFusion for a
> while now. I am having an issue with data from a CFC getting back to
> my Flex app. I have put code into my CFC to write to the log file if
> it gets hit. I can run a .cfm file against it and it works. However,
> the moment I try to hit it with Flex, I get nothing back.
>
> I have searched all over the web (over 30 hours) and it seems that I
> am not the only one getting this issue. It's quite common and I've
> tried everything they suggested and more.
>
> This is the error that I am getting:
>
> [RPC Fault faultString= "Send failed"
> faultCode="Client. Error.MessageSen d"
> faultDetail= "Channel. Connect.Failed error NetConnection. Call.Failed:
> HTTP: Failed: url: 'http://localhost/ flex2gateway/'"]
> at
> mx.rpc::AbstractInv oker/http://www.adobe. com/2006/ flex/mx/internal ::fa
> ultHandler()
> at mx.rpc::Responder/ fault()
> at mx.rpc::AsyncReques t/fault()
> at mx.messaging: :ChannelSet/ ::faultPendingSe nds()
> at mx.messaging: :ChannelSet/ channelFaultHand ler()
> 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( )
>
> Also, someone suggested I use ServiceCapture and this is what I got
> as an error:
>
> rootCause (null): null
> destination (String): ColdFusion
> headers (Object):
>
> correlationId (String):
> A5DFBE78-9536- 1CF0-23E5- 59EBBA214D71
> faultString (String):
> coldfusion.runtime. AbortException
> messageId (String):
> 5588792D-3119- 89F1-9677- EED9F71D7018
> faultCode (String): Server.Processing
> timeToLive (Number): 0
> extendedData (Object):
> stacktrace (Array):
> 0 (String):
> coldfusion.tagext. net.LocationTag. doEndTag( LocationTag. java:161)
> 1 (String):
> coldfusion.runtime. CfJspPage. _emptyTag( CfJspPage. java:1916)
> 2 (String):
> cfApplication2ecfm9 41020151. runPage
> (E:\Inetpub\ wwwroot_tmo\ Application. cfm:92)
> 3 (String):
> coldfusion.runtime. CfJspPage. invoke(CfJspPage .java:152)
> 4 (String):
> coldfusion.tagext. lang.IncludeTag. doStartTag( IncludeTag. java:349)
> 5 (String):
> coldfusion.filter. CfincludeFilter. invoke(Cfinclude Filter.java: 65)
> 6 (String):
> coldfusion.filter. CfincludeFilter. include(Cfinclud eFilter.java: 33)
> 7 (String):
> coldfusion.filter. ApplicationFilte r.invoke( ApplicationFilte r.java:172)
> 8 (String):
> coldfusion.flash. filter.CFCInvoke DebugFilter. invoke
> (CFCInvokeDebugFilt er.java:54)
> 9 (String):
> coldfusion.flash. filter.CFCInvoke PathFilter. invoke
> (CFCInvokePathFilte r.java:53)
> 10 (String):
> coldfusion.filter. ClientScopePersi stenceFilter. invoke
> (ClientScopePersist enceFilter. java:28)
> 11 (String):
> coldfusion.filter. GlobalsFilter. invoke(GlobalsFi lter.java: 38)
> 12 (String):
> coldfusion.filter. DatasourceFilter .invoke(Datasour ceFilter. java:22)
> 13 (String):
> coldfusion.flash. messaging. ColdFusionAdapte r.invoke
> (ColdFusionAdapter. java:197)
> 14 (String):
> flex.messaging. services. RemotingService. serviceMessage
> (RemotingService. java:115)
> 15 (String):
> flex.messaging. MessageBroker. routeMessageToSe rvice
> (MessageBroker. java:548)
> 16 (String):
> flex.messaging. endpoints. AbstractEndpoint .serviceMessage
> (AbstractEndpoint. java:301)
> 17 (String):
> flex.messaging. endpoints. amf.MessageBroke rFilter.invoke
> (MessageBrokerFilte r.java:93)
> 18 (String):
> flex.messaging. endpoints. amf.LegacyFilter .invoke
> (LegacyFilter. java:156)
> 19 (String):
> flex.messaging. endpoints. amf.SessionFilte r.invoke
> (SessionFilter. java:46)
> 20 (String):
> flex.messaging. endpoints. amf.BatchProcess Filter.invoke
> (BatchProcessFilter .java:67)
> 21 (String):
> flex.messaging. endpoints. amf.Serializatio nFilter.invoke
> (SerializationFilte r.java:130)
> 22 (String):
> flex.messaging. endpoints. AMFEndpoint. service(AMFEndpo int.java: 164)
> 23 (String):
> flex.messaging. MessageBrokerSer vlet.service
> (MessageBrokerServl et.java:340)
> 24 (String):
> javax.servlet. http.HttpServlet .service( HttpServlet. java:853)
> 25 (String):
> coldfusion.bootstra p.BootstrapServl et.service
> (BootstrapServlet. java:78)
> 26 (String):
> jrun.servlet. ServletInvoker. invoke(ServletIn voker.java: 91)
> 27 (String):
> jrun.servlet. JRunInvokerChain .invokeNext( JRunInvokerChain .java:42)
> 28 (String):
> jrun.servlet. JRunRequestDispa tcher.invoke
> (JRunRequestDispatc her.java: 257)
> 29 (String):
> jrun.servlet. ServletEngineSer vice.dispatch
> (ServletEngineServi ce.java:541)
> 30 (String):
> jrun.servlet. jrpp.JRunProxySe rvice.invokeRunn able
> (JRunProxyService. java:204)
> 31 (String):
> jrunx.scheduler. ThreadPool$ DownstreamMetric s.invokeRunnable
> (ThreadPool. java:318)
> 32 (String):
> jrunx.scheduler. ThreadPool$ ThreadThrottle. invokeRunnable
> (ThreadPool. java:426)
> 33 (String):
> jrunx.scheduler. ThreadPool$ UpstreamMetrics. invokeRunnable
> (ThreadPool. java:264)
> 34 (String):
> jrunx.scheduler. WorkerThread. run(WorkerThread .java:66)
>
>
> faultDetail (null): null
> clientId (null): null
> timestamp (Number): 1.212689397441E12
> body (null): null
>