Dawnthea
08-16-2004, 09:07 PM
Has anyone tried to do the "Hello World" test for Flash Remoting MX 2004 and ColdFusion 6.1? Thank's in advance for any assistance.
What this test has you do is
1) download the remoting components and install them -- here is the link: http://www.macromedia.com/devnet/mx/flashremoting/
2) create a .cfm file with a single line of code: <cfset flash.result = "Hello from ColdFusion MX!">
3) create a flash file with one dynamic text field in it
4) drag the remoting components on to the stage in the flash file
5) add some action script (that you copy from their documentation).
And when you compile the flash file into a .swf you are supposed to see the text "Hello from ColdFusion MX!" in the text field.
My text field says "service threw an exception during invocation: null"
I think I did everything they said to do, and I'm stumped. If anyone else can get this to work, I'd love to hear what you did.
Here is the link to the documentation
http://www.macromedia.com/support/documentation/en/flash_remoting/
Also, here is the NetConnection Debugger information I get when I see the error:
MethodName: "/1/onStatus"
ResponseURI: (undefined)
Parameters (object #2)
.....code: "SERVER.PROCESSING"
.....description: "Service threw an exception during method invocation: null"
.....details: "java.lang.NullPointerException
at coldfusion.runtime.TemplateClassLoader.findApplica tionCfm(TemplateClassLoader.java:82)
at coldfusion.filter.ApplicationFilter.invoke(Applica tionFilter.java:89)
at coldfusion.filter.FlashTemplateFilter.invoke(Flash TemplateFilter.java:37)
at coldfusion.filter.FlashFilter.invoke(FlashFilter.j ava:75)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilt er.java:24)
at coldfusion.filter.ClientScopePersistenceFilter.inv oke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilt er.java:43)
at coldfusion.filter.DatasourceFilter.invoke(Datasour ceFilter.java:22)
at coldfusion.flash.FlashProxy.invokeTemplate(FlashPr oxy.java:103)
at flashgateway.adapter.coldfusion.ColdFusionAdapter. invokeFunction(ColdFusionAdapter.java:107)
at flashgateway.filter.AdapterFilter.invoke(AdapterFi lter.java:266)
at flashgateway.filter.SecurityFilter.invoke(Security Filter.java:85)
at flashgateway.filter.LicenseFilter.invoke(LicenseFi lter.java:58)
at flashgateway.filter.ErrorFilter.invoke(ErrorFilter .java:44)
at flashgateway.filter.LogFilter.invoke(LogFilter.jav a:43)
at flashgateway.filter.BatchProcessFilter.invoke(Batc hProcessFilter.java:63)
at flashgateway.filter.DebugFilter.invoke(DebugFilter .java:38)
at flashgateway.filter.SerializationFilter.invoke(Ser ializationFilter.java:59)
at flashgateway.Gateway.invoke(Gateway.java:194)
at flashgateway.controller.GatewayServlet.service(Gat ewayServlet.java:56)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker. java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvok erChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequ estDispatcher.java:252)
at jrun.servlet.ServletEngineService.dispatch(Servlet EngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebSer vice.java:168)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invok eRunnable(ThreadPool.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu nnable(ThreadPool.java:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeR unnable(ThreadPool.java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java :66)
"
.....level: "error"
.....type: "java.lang.NullPointerException" :confused:
What this test has you do is
1) download the remoting components and install them -- here is the link: http://www.macromedia.com/devnet/mx/flashremoting/
2) create a .cfm file with a single line of code: <cfset flash.result = "Hello from ColdFusion MX!">
3) create a flash file with one dynamic text field in it
4) drag the remoting components on to the stage in the flash file
5) add some action script (that you copy from their documentation).
And when you compile the flash file into a .swf you are supposed to see the text "Hello from ColdFusion MX!" in the text field.
My text field says "service threw an exception during invocation: null"
I think I did everything they said to do, and I'm stumped. If anyone else can get this to work, I'd love to hear what you did.
Here is the link to the documentation
http://www.macromedia.com/support/documentation/en/flash_remoting/
Also, here is the NetConnection Debugger information I get when I see the error:
MethodName: "/1/onStatus"
ResponseURI: (undefined)
Parameters (object #2)
.....code: "SERVER.PROCESSING"
.....description: "Service threw an exception during method invocation: null"
.....details: "java.lang.NullPointerException
at coldfusion.runtime.TemplateClassLoader.findApplica tionCfm(TemplateClassLoader.java:82)
at coldfusion.filter.ApplicationFilter.invoke(Applica tionFilter.java:89)
at coldfusion.filter.FlashTemplateFilter.invoke(Flash TemplateFilter.java:37)
at coldfusion.filter.FlashFilter.invoke(FlashFilter.j ava:75)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilt er.java:24)
at coldfusion.filter.ClientScopePersistenceFilter.inv oke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilt er.java:43)
at coldfusion.filter.DatasourceFilter.invoke(Datasour ceFilter.java:22)
at coldfusion.flash.FlashProxy.invokeTemplate(FlashPr oxy.java:103)
at flashgateway.adapter.coldfusion.ColdFusionAdapter. invokeFunction(ColdFusionAdapter.java:107)
at flashgateway.filter.AdapterFilter.invoke(AdapterFi lter.java:266)
at flashgateway.filter.SecurityFilter.invoke(Security Filter.java:85)
at flashgateway.filter.LicenseFilter.invoke(LicenseFi lter.java:58)
at flashgateway.filter.ErrorFilter.invoke(ErrorFilter .java:44)
at flashgateway.filter.LogFilter.invoke(LogFilter.jav a:43)
at flashgateway.filter.BatchProcessFilter.invoke(Batc hProcessFilter.java:63)
at flashgateway.filter.DebugFilter.invoke(DebugFilter .java:38)
at flashgateway.filter.SerializationFilter.invoke(Ser ializationFilter.java:59)
at flashgateway.Gateway.invoke(Gateway.java:194)
at flashgateway.controller.GatewayServlet.service(Gat ewayServlet.java:56)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker. java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvok erChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequ estDispatcher.java:252)
at jrun.servlet.ServletEngineService.dispatch(Servlet EngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebSer vice.java:168)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invok eRunnable(ThreadPool.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu nnable(ThreadPool.java:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeR unnable(ThreadPool.java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java :66)
"
.....level: "error"
.....type: "java.lang.NullPointerException" :confused: