[Aglets-developer] Even after getting loacl proxy properly why local messaging between aglets thro
Status: Beta
Brought to you by:
cat4hire
From: Anil K. <akr...@ya...> - 2005-10-10 23:14:32
|
Hi Luca , While doing remote messaging i used " AgletProxy remoteProxy = context.getAgletProxy(url,remoteID); " and got the null as the return value for remoteProxy . So message was not sent and cause you said is "the MAFFinder is not running". But When i used local mesaging i got the value properly for the local proxy as printed below. But , can you please let meknow why i am not able send a message ..? In this case also exception is being thrown is becuase of "the MAFFinder is not running"...? Hope you will let me know the reason . For your reference ..following is the exception thrown while doing local messaging. Error with local messaging ..................................STARTS $$$$$$$$$$ The new agent has ID =3f9f1be5e4cd0e7e localProxy is :AgletProxyImpl : Aglet [active] ClassName [old.agletB] Identifier[3f9f1be5e4cd0e7e] Owner[CN=anilkumar, OU=erl, O=umr, L=rolla, ST=mo, C=us] CodeBase[atp://r24intelsys:4434/] CN=anilkumar, OU=erl, O=umr, L=rolla, ST=mo, C=us myID is :3f9f1be5e4cd0e7e Message is not sent .Exception is :com.ibm.aglet.NotHandledException: [Message : kind = HELLO: arg = {}: priority = 5] Error with local messaging ..................................ENDS Thanks for your help . Anil --- Luca Ferrari <flu...@ka...> wrote: > > > -------- 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... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, > downloads, discussions, > and more. > http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Aglets-developer mailing list > Agl...@li... > https://lists.sourceforge.net/lists/listinfo/aglets-developer > __________________________________ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ |