Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / August 2006



Tip: Looking for answers? Try searching our database.

Server Response Error Explaination?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
intercept - 27 Jul 2006 17:13 GMT
I'm new to FlashRemoting and have been assigned the task of getting a
project back up and running. I have a JRun server that I'm trying to
connect to a EJB but I just get back the error below.

I would really appreciate it if someone could please tell me what it
actually means and how one would go about resolving it.

Many thanks in advance.

-----------------------------------------------
7/27 16:6:48 [INFO] : Creating Service for
uk.co.twodb.java.apps.fastbet.services.business.Us er
7/27 16:6:48 [INFO] : Creating gateway connection for
http://dev2core/fastbet/web/v3.10/dynamic/gateway
7/27 16:6:48 [INFO] : Successfully created Service
7/27 16:6:48 [INFO] : Invoking getUser on
uk.co.twodb.java.apps.fastbet.services.business.Us er
error
7/27 16:6:49 [DEBUG] : Service invocation failed.
7/27 16:6:49 [DEBUG] :
uk.co.twodb.java.apps.fastbet.services.business.Us er.getUser()
returned {code: "SERVER.PROCESSING",
description: "Service threw an exception during method invocation:
null",
details: "java.io.FileNotFoundException
at jrun.servlet.ServletInvoker.invoke(ServletInvoker. java:79)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvok erChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invokeNext(JRun
RequestDispatcher.java:534)
at jrun.servlet.JRunNamedDispatcher.include(JRunNamed
Dispatcher.java:91)
at flashgateway.adapter.java.ServletAdapter.invokeFun
ction(ServletAdapter.java:79)
at flashgateway.filter.AdapterFilter.invoke(AdapterFi lter.java:266)
at flashgateway.filter.SecurityFilter.invoke(Security Filter.java:84)
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.FilterChain.doFilter(FilterChain.java :86)
at jrunx.util.DynamicClassLoaderFilter.doFilter(Dynam
icClassLoaderFilter.java:48)
at jrun.servlet.FilterChain.doFilter(FilterChain.java :94)
at jrun.servlet.FilterChain.service(FilterChain.java: 101)
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:259)
at jrun.servlet.ServletEngineService.dispatch(Servlet
EngineService.java:541)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(
JRunProxyService.java:204)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu
nnable(ThreadPool.java:428)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java :66)
",
level: "error",
type: "java.io.FileNotFoundException"}

-----------------------------------------------
The code that returns this erorr is:-

import mx.remoting.Service;
import mx.services.Log;
import mx.rpc.RelayResponder;
import mx.rpc.FaultEvent;
import mx.rpc.ResultEvent;
import mx.remoting.PendingCall;
import mx.remoting.RecordSet;
import mx.remoting.DataGlue;

mx.remoting.debug.NetDebug.initialize(); // initialize the NCD

var fbService:Service = new
Service("http://dev2core/fastbet/web/v3.10/dynamic/gateway", new
Log(Log.DEBUG),"uk.co.twodb.java.apps.fastbet.serv ices.business.User",
null, null);

//Test the connection
function getTestConn(){

var user_str:String = "1700029";
var pin_str:String = "1111";
var service_str:String = "cdp"

var testConn_pc:PendingCall = fbService.getUser(user_str, pin_str,
service_str);
testConn_pc.responder = new RelayResponder(this, "getTestConn_Result",
"getTestConn_Fault");
}

function getTestConn_Fault(fault:FaultEvent):Void{
trace("error");
}

function getTestConn_Result(re:ResultEvent){
trace("Here");
}

getTestConn();
intercept - 04 Aug 2006 19:06 GMT
Found it.

For any poor unfortunate soul out there suffering as I did.

Always Check The following:-

1. JRun server has got it's self in a pickle and needs restarting
especially if you are restarting Jrun often and deploying new objects
on the fly. Check you don't have any other instances of JRun running -
they are supposed to stop but don't always TERMINATE THEM ALL!
2. Reboot the server.
3. Start/Restart JRun default server from a command prompt to follow
any logs.
4. Get/Put print statements in your remoting objects and trace them in
your log files/command session(see 3.).
5. Does the remoting object exist.
6. The remoting object method does not exist - can you call any other
methods?
7. The remoting object exists but there's something wrong with the
ActionScript parameter sent to the remoting object. Try passing
different parameter(s) to the method to force an error and read the
trace/log.
8. Double/Triple check your Action Script Parameters against what the
remoting object is expecting.
9. Check 7 and 8 again!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.