macromedia flash flash remoting:
I realize an exception trace isn't the best way to ask for help, but I haven't been able to find any information on this problem. The code is very simple, just calling a Hello World cfc to get a simple test running. It works on the local windows CFMX installation without a problem, but when trying to execute from an AIX server running CFMX through JRun, I get this error trying to execute a cfc procedure: 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.license.LicenseManager.isSingleIP(LicenseManager.java(Compiled Code)) at coldfusion.flash.FlashProxy.invokeComponent(FlashProxy.java(Compiled Code)) at flashgateway.adapter.coldfusion.CFCAdapter.invokeFunction(CFCAdapter.java(Compil ed Code)) at flashgateway.filter.AdapterFilter.invoke(AdapterFilter.java:266) at flashgateway.filter.SecurityFilter.invoke(SecurityFilter.java(Compiled Code)) at flashgateway.filter.LicenseFilter.invoke(LicenseFilter.java:58) at flashgateway.filter.ErrorFilter.invoke(ErrorFilter.java:44) at flashgateway.filter.LogFilter.invoke(LogFilter.java:43) at flashgateway.filter.BatchProcessFilter.invoke(BatchProcessFilter.java(Compiled Code)) at flashgateway.filter.DebugFilter.invoke(DebugFilter.java:38) at flashgateway.filter.SerializationFilter.invoke(SerializationFilter.java:59) at flashgateway.Gateway.invoke(Gateway.java:194) at flashgateway.controller.GatewayServlet.service(GatewayServlet.java:56) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java(Compiled Code)) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java(Compiled Code)) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java(Compiled Code)) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java(Inlined Compiled Code)) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java(Compiled Code)) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java(Comp iled Code)) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java(Compile d Code)) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java(Compil ed Code)) at jrunx.scheduler.WorkerThread.run(WorkerThread.java(Compiled Code)) " .....level: "error" .....type: "java.lang.NullPointerException"
I'm getting a stack trace for my test that's very very similar to yours, with just one line of difference at the top. Flash Remoting MX (not 2004) CFMX 6.1 on JRun4, several new instances. The new instances are clones of the first cfusion instance. Suse 8.2 Linux A simple component that returns a timestamp as a string. A webservice test from CFML that confirms that the CFC can be consumed remotely. The component works fine on a CFMX 6.1 server configuration on the same machine. The netservices gateway was modified to reflect the host and JWS port for the server instance The NetDebugger shows that a connection was established and the methods were called. A exception occurs on the server clones, and it references isSingleIP( ). The following code outputs NO on that server instance: <cfobject action="CREATE" type="JAVA" class="coldfusion.server.ServiceFactory" name="factory"> <cfset ls = factory.getLicenseService()> <cfoutput>Is License Single IP? #ls.isSingleIP()#</cfoutput> The exception thrown from the flash remoting call to the CFC is the following: java.lang.NullPointerException at coldfusion.license.LicenseManager._isSingleIP(LicenseManager.java:171) at coldfusion.license.LicenseManager.isSingleIP(LicenseManager.java:68) at coldfusion.flash.FlashProxy.getComponentFilterChain(FlashProxy.java:179) at coldfusion.flash.FlashProxy.invokeComponent(FlashProxy.java:125) at flashgateway.adapter.coldfusion.CFCAdapter.invokeFunction(CFCAdapter.java:95) at flashgateway.filter.AdapterFilter.invoke(AdapterFilter.java:266) at flashgateway.filter.SecurityFilter.invoke(SecurityFilter.java:85) at flashgateway.filter.LicenseFilter.invoke(LicenseFilter.java:58) at flashgateway.filter.ErrorFilter.invoke(ErrorFilter.java:44) at flashgateway.filter.LogFilter.invoke(LogFilter.java:43) at flashgateway.filter.BatchProcessFilter.invoke(BatchProcessFilter.java:63) at flashgateway.filter.DebugFilter.invoke(DebugFilter.java:38) at flashgateway.filter.SerializationFilter.invoke(SerializationFilter.java:59) at flashgateway.Gateway.invoke(Gateway.java:194) at flashgateway.controller.GatewayServlet.service(GatewayServlet.java:56) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) I am also stumped. Any help is appreciated.
Someone from Macromedia helped me resolve this. The problem was that the JRun server had a Flash Remoting EAR having a context root of /flashservices which is different from and interferes with the Flash Remoting EAR contained in the ColdFusion server having a servlet mapping patter /flashservices*. The solution is to delete the FR EAR from JRun's JMC for that server instance and while allowing FR to operate with the CFMX FR EAR.
LarsVR - you hit the nail on the head! I struggled all day with this (a perfectly functional CFC that I couldn't call from Flash/ActionScript). As you stated, I had to go into the JRUN JMC and delete the FlashRemoting EAR instance. Once that was done, bingo! Thanks for your post - I wish Macromedia would address this issue somewhere in the CFMX Enterprise Edition documentation (unless I missed it).
Don't see what you're looking for? Try a search.
|