[Fwd: Re: [Aglets-developer] Remote messaging and .. even local messaging between throwing erros...
Status: Beta
Brought to you by:
cat4hire
From: Luca F. <flu...@ka...> - 2005-10-10 10:37:18
|
-------- Original Message -------- Subject: Re: [Aglets-developer] Remote messaging and .. even local messaging between throwing erros.....Any advises Date: Mon, 10 Oct 2005 12:14:14 +0200 From: Luca Ferrari <cat...@us...> Reply-To: cat...@us... To: Anil Kumar <akr...@ya...> References: <200...@we...> Anil Kumar's cat, on 10/10/2005 6.38, walking on the keyboard wrote: > com.ibm.aglet.NotHandledException:com.ibm.maf.NotHandled:null > > Here i found that the function " > context.getAgletProxy(url,remoteID) " is returning a > null. > I am not sure why is this ..?Any guess or ideas ..? > ( I am able to dispatch and retract agents between > remote an local Tahithi servers) > The exception raises from the MessageBroker.sendMessage method. The getProxy returns null, I guess, cause the MAFFinder is not running: public AgletProxy getAgletProxy(AgletID aid) { AgletProxy p = (AgletProxy)_agletProxies.get(aid); if (p != null) { return p; } try { MAFFinder finder = MAFAgentSystem.getLocalMAFAgentSystem().get_MAFFinder(); if (finder != null) { String[] locations = finder.lookup_agent(MAFUtil.toName(aid, null), null); p = getAgletProxy(new URL(locations[0]), aid); } } catch (EntryNotFound ex) { p = null; } catch (MalformedURLException ex) { ex.printStackTrace(); p = null; } catch (FinderNotFound ex) { ex.printStackTrace(); p = null; } catch (Exception ex) { ex.printStackTrace(); p = null; } return p; } if the maffinder is not found than no proxy is returned. Try starting the MAFFinder running: java com.ibm.maf.rmi.MAFFInder_RMIImpl and tell us what changes. Hope this helps, Luca -- +-------------------------------+ Luca Ferrari cat...@us... The Aglets Project: http://aglets.sourceforge.net +-------------------------------+ -- Luca Ferrari flu...@ka... |