Re: [Jgroup-users] more informations (registry locator error)
Brought to you by:
amontresor,
meling
|
From: Hein M. <hei...@ui...> - 2006-01-24 07:07:08
|
It should work without domain name if you give "-". However, it just have not been tested in recent years. Also, when using non-DNS hosts, you should probably specify the IP addresses directly in the <Host name=3D"192.168.x.y"> tag, since otherwis= e Jgroup is unable to do a naming service lookup to find the ip addresses. I think using IP addresses directly in the host tag like shown above should be possible; I think it was tested last year or something? As for the MergingData serialization problem. Make sure you have the exact same version of the MergingData class at both hosts. For example, compile everything on one machine and copy the codebase to the other hosts in your system. Note that sometimes NFS caching can cause problems with different versions on hosts. These cases are a bit rare, but they do happen. Hein On Mon, 2006-01-23 at 23:01 +0100, Rohnny Moland wrote: > Hi, >=20 > Hmm. I'm not sure if jgroup will work at all without a domain name, as > far as I know it has never been tested. You are using jgroup 2.0 is tha= t > right? >=20 > About the InvalidClassException. Looking at the code for jgroup 2.0, > jgroup.relacs.registry.MergingData uses serialization, but, no > serialVersionUID is specified. So, this need to be specified to avoid > the InvalidClassException, else the uid can be changed after compilatio= n. >=20 > Ps. A new 3.0 release of Jgroup where this is fixed will (hopefully) > soon be rolled out. >=20 >=20 > Regards, >=20 > -- > Rohnny >=20 > On 01/23/2006 10:11 PM, boussada redouane wrote: > > ok;thank you for yur interest. > >=20 > > i have my own network at home whith two pc, i have not a domain but s= imply a=20 > > workgroup. > >=20 > > my config.xml file is like this : > >=20 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >=20 > > <?xml version=3D"1.0" encoding=3D"us-ascii"?> > > <!DOCTYPE Configuration SYSTEM "config.dtd"> > >=20 > > <Configuration version=3D"1.0"> > >=20 > > <BootstrapRegistry port=3D"1200"/> > > <Services url=3D"file:config///services.xml"/> > > <Applications url=3D"file:config///applications.xml"/> > > <Transport payload=3D"1024" maxTTL=3D"10" TTLWarning=3D"5"/> > >=20 > > <DistributedSystem> > > <Domain name=3D"-" address=3D"226.1.2.2"> > >=20 > > <Host name=3D"hightekh"/> > > <Host name=3D"redouane"/> > > </Domain> > >=20 > >=20 > > </DistributedSystem> > >=20 > > </Configuration> > >=20 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > >=20 > > redouane and hightekh are pc's names. > >=20 > > i have seen a line in the config.dtd whitch is : > >=20 > > <!ATTLIST DependableRegistry locator CDATA=20 > > "jgroup.relacs.registry.RelacsRegistryLocator"> > >=20 > > but i can't say any thing about. > >=20 > > my dregistry is like this: > >=20 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >=20 > > dregistry: > > [java] localhost: hightekh/192.168.0.8 > > [java] DEBUG: - New View ------------------------ > > [java] DEBUG: [[192.168.0.8:28771], 1138047971, 1] > > [java] DEBUG: ----------------------------------- > > [java] INFO : Dependable registry ready... > >=20 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >=20 > > when i start a second instance of dregistr localy ( at hightekh too) = : > >=20 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >=20 > > dregistry: > > [java] localhost: hightekh/192.168.0.8 > > [java] DEBUG: - New View ------------------------ > > [java] DEBUG: [[192.168.0.8:28771], 1138048105, 2] > > [java] DEBUG: [[192.168.0.8:28771], 1138048105, 1] > > [java] DEBUG: ----------------------------------- > > [java] INFO : Dependable registry ready... > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >=20 > > but i note that when i start the registry simultanously at the other = site (ie :=20 > > redouane) i have this error: > >=20 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > >=20 > > dregistry: > > [java] localhost: hightekh/192.168.0.8 > > [java] DEBUG: - New View ------------------------ > > [java] DEBUG: [[192.168.0.8:28771], 1138049297, 1] > > [java] DEBUG: ----------------------------------- > > [java] INFO : Dependable registry ready... > > [java] DEBUG: - New View ------------------------ > > [java] DEBUG: [[192.168.0.8:28771], 1138049297, 1] > > [java] DEBUG: [[192.168.0.11:28771], 1009843826, 1] > > [java] DEBUG: ----------------------------------- > > [java] WARN : MergingLayer: Unable to unmarshal stream message > > [java] java.io.InvalidClassException: jgroup.relacs.registry.Mer= gingData;=20 > > local class incompatible: stream classdesc serialVersionUID =3D -3216= 043980643 > > 626103, local class serialVersionUID =3D 9121582667934027169 > > [java] at=20 > > java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463) > > [java] at=20 > > java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:152= 1) > > [java] at=20 > > java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435) > > [java] at=20 > > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1= 626) > > [java] at=20 > > java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) > > [java] at java.io.ObjectInputStream.readObject(ObjectInputSt= ream.java:324) > > [java] at=20 > > jgroup.relacs.gm.MergingLayer.deliverStream(MergingLayer.java:411) > > [java] at=20 > > jgroup.relacs.gm.BaseLayer.handleDeliveryEvent(BaseLayer.java:509) > > [java] at jgroup.relacs.gm.BaseLayer.notifyEvent(BaseLayer.j= ava:445) > > [java] at=20 > > jgroup.relacs.gm.DispatcherLayer.dispatch(DispatcherLayer.java:232) > > [java] at jgroup.relacs.gm.DispatcherLayer.run(DispatcherLay= er.java:269) > > [java] at java.lang.Thread.run(Thread.java:534) > >=20 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > >=20 > > thank yo very much. > >=20 > >=20 > > ---------------------------------------------------------------------= ----------- > > Partagez une seule photo ou un diaporama complet directement depuis v= otre=20 > > courriel avec MSN Premium: <http://g.msn.com/8HMBFRCA/2728??PS=3D4757= 5> Adh=E9rez=20 > > maintenant et obtenez les deux premiers mois=20 > > GRATUITS*------------------------------------------------------- This= SF.net=20 > > email is sponsored by: Splunk Inc. Do you grep through log files for = problems?=20 > > Stop! Download the new AJAX search engine that makes searching your l= og files as=20 > > easy as surfing the web. DOWNLOAD SPLUNK!=20 > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&d= at=3D121642=20 > > _______________________________________________ Jgroup-users mailing = list=20 > > Jgr...@li...=20 > > https://lists.sourceforge.net/lists/listinfo/jgroup-users >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log = files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=103432&bid#0486&dat=12164= 2 > _______________________________________________ > Jgroup-users mailing list > Jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgroup-users >=20 |