Re: [Fwd: Re: [Aglets-developer] Remote messaging and .. even local messaging between throwing erros
Status: Beta
Brought to you by:
cat4hire
From: Anil K. <akr...@ya...> - 2005-10-10 19:04:46
|
Hi Luca , The exception " com.ibm.aglet.NotHandledException:com.ibm.maf.NotHandled:null " was coming when i called the method with two parameters : context.getAgletProxy(url,remoteID) . But you are mentioning a method with single parameter : public AgletProxy getAgletProxy(AgletID aid) and you are saying that the cause is " the MAFFinder is not running:" Are you refering to remote messaging ..? or Local mesaaging within the same proxy ..? In my previous mail i mentioned errors that i am getting in both cases ( remote and local messaging). I am confused with your following sentences.. >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. By writing the above sentences ,are you asking me to run the "java com.ibm.maf.rmi.MAFFInder_RMIImpl" at command prompt ..? I assuemd "YES" to my above question and went ahead and tried running "java com.ibm.maf.rmi.MAFFInder_RMIImpl" at command prompt . I havse seen the file com/ibm/maf/rmi/MAFFInder_RMIImpl in the java/aglets/lib/aglets-2.0.2.jar file and so i moved to the directory java/aglets/lib and run the command " java com.ibm.maf.rmi.MAFFInder_RMIImpl " BUt got the following error .. [akvz2@r24intelsys lib]$ java com.ibm.maf.rmi.MAFFInder_RMIImpl Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/maf/rmi/MAFFInder_RMIImpl I thought i have to extrat class files and extracted them to /java/aglets/lib directory ( where /java/aglets/ is my AGLETS_HOME directory ) ( After extracting the files from java/aglets/lib/aglets-2.0.2.jar file , I removed aglets-2.0.2.jar thinking java compiler tries to find the same file in two locations and may raise a classpath error.) I moved to /java/aglets/lib and tried running " java com.ibm.maf.rmi.MAFFInder_RMIImpl " again But got the same following error .. [akvz2@r24intelsys lib]$ java com.ibm.maf.rmi.MAFFInder_RMIImpl Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/maf/rmi/MAFFInder_RMIImpl Following are my environment variables .... [akvz2@r24intelsys lib]$ echo $CLASSPATH .:/home/akvz2/java/aglets/public:/home/akvz2/java/aglets/lib:/home/akvz2/java/jdk1.5.0_04/bin: [akvz2@r24intelsys lib]$ echo $JAVA_HOME /home/akvz2/java/jdk1.5.0_04 [akvz2@r24intelsys lib]$ echo $AGLETS_HOME /home/akvz2/java/aglets [akvz2@r24intelsys lib]$ echo $PATH /home/akvz2/java/jdk1.5.0_04/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/akvz2/bin:/home/akvz2/java/aglets/bin Why i am not able to run the MAFFInder_RMIImpl file from command prompt ..? Is this what you asked me to do ..? Please let me know , if i understood your stamement wrong. Thanks 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! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com |