I'm trying to get going with some Flash Remoting from Flex, but I'm having a
tough time of it. My requests from Flex seem to time out, but if I call the
same CFC/method, called via http://mysite/cfc/myCfc.cfc?method=myMethod syntax,
it works right away.
Any ideas as to how to fix or troubleshoot this? Please let me know what more
info you might need from me in order to help.
Thanks,
Jamie
Here's my CFC's method: (/cfc/AddressService.cfc?method=getStates)
====================================================
<cffunction name="getStates" access="remote" output="false"
returntype="query">
<cfset var local = structNew() />
<cfscript>
local.states = querySim('
stateID,countryID,state,state_abbr
1|1|Alabama|AL
2|1|Alaska|AK
....snip...
58|1|Wyoming|WY
');
return local.states;
</cfscript>
</cffunction>
<cffunction name="getCountries" access="public" output="false"
returntype="any">
<cfreturn countries />
</cffunction>
Here's the service setup in MXML
==========================================
<mx:RemoteObject id="addressService"
source="cfc/AddressService"
destination="ColdFusion"
fault="faultHandler(event)"
requestTimeout="10">
<mx:method name="getStates" result="resultHandler(event)"/>
</mx:RemoteObject>
In Flex, I'm having my app dump its error:
==========================================
Request timed out
And here's what I get from the CF console:
===========================================
[Flex] null
java.lang.IllegalStateException
at jrun.servlet.JRunResponse.getOutputStream(JRunResponse.java:183)
at flex.messaging.endpoints.AMFEndpoint.service(AMFEndpoint.java:140)
at
flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:438)
at
coldfusion.flex.ColdFusionMessageBrokerServlet.service(ColdFusionMessageBrokerServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at
coldfusion.filter.FlashRequestControlFilter.doFilter(FlashRequestControlFilter.java:71)
at
coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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/flex/message.cfm/messageid:5599
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37