Re: java.io.InvalidClassException
Alexandre Gomes <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
BINGO! I've already searched for EnglishSpeaker in B classpath and haven't find anything. Now, I removed each library in the classpath, until I find the problematic one. I added EnglishSpeaker inside another lib by mistake. thanks a lot, Dave! []s Alê! On 17/01/2007, at 20:42, Dave Brosius wrote: > Does B have EnglishSpeaker class in it's class path? > and perhaps C does not? > > > -----Original Message----- > From: "Alexandre Gomes" <[email protected]> > Sent: Tue, August 1, 2006 3:55 pm > To: [email protected] > Subject: java.io.InvalidClassException > > Hello friends, > > I have 3 applications: 1 publisher (let's call it 'A') and 2 clients > (B and C). > > So, I run A and it publishes an EnglishSpeaker service in reggie. > > Then I run B and it tries to get the EnglishSpeaker proxy, but it > gets an InvalidClassExpcetion [1]. Well, AFAIK, the most common > reason is that the class version used to instantiate the service > published is not the same class version available to reggie, right? > > But then, if I run C, it discovers the EnglishSpeaker service and it > gets its proxy successfuly. > > The problem occurs only in B app. Can you help me, please? > > > [1] > 2006 5:41:27 PM com.sun.jini.reggie.RegistrarProxy handleException > INFO: unmarshalling failure > java.io.InvalidClassException: > br.unb.cic.ubiquitos.provider.speaker.EnglishSpeaker; class invalid > for deserialization > at java.io.ObjectStreamClass.initNonProxy > (ObjectStreamClass.java:544) > at java.io.ObjectInputStream.readNonProxyDesc > (ObjectInputStream.java:1546) > at java.io.ObjectInputStream.readClassDesc > (ObjectInputStream.java:1460) > at java.io.ObjectInputStream.readOrdinaryObject > (ObjectInputStream.java:1693) > at java.io.ObjectInputStream.readObject0 > (ObjectInputStream.java:1299) > at java.io.ObjectInputStream.readObject > (ObjectInputStream.java:339) > at net.jini.io.MarshalledInstance.get > (MarshalledInstance.java:358) > at net.jini.io.MarshalledInstance.get > (MarshalledInstance.java:287) > at com.sun.jini.proxy.MarshalledWrapper.get > (MarshalledWrapper.java:127) > at com.sun.jini.reggie.Item.get(Item.java:141) > at com.sun.jini.reggie.Item.toServiceItem(Item.java:177) > at com.sun.jini.reggie.Matches.get(Matches.java:62) > at com.sun.jini.reggie.RegistrarProxy.lookup > (RegistrarProxy.java:128) > at br.unb.cic.jini.EasyJini.findServices(EasyJini.java:316) > at > br.unb.cic.ubiquitos.servicemanager.ServiceManager.getServiceProviders > (ServiceManager.java:120) > at > br.unb.cic.ubiquitos.adaptabilityengine.AdaptabilityEngine.handleServi > ce > ProviderRequest(AdaptabilityEngine.java:66) > at > br.unb.cic.ubiquitos.connectionmanager.BluetoothConnectionManager.hand > le > UbiquitOSSmartSpaceConnection(BluetoothConnectionManager.java:113) > at > br.unb.cic.ubiquitos.connectionmanager.BluetoothConnectionManager.acce > ss > $000(BluetoothConnectionManager.java:28) > at > br.unb.cic.ubiquitos.connectionmanager.BluetoothConnectionManager$1 > $1.connectionEstablished(BluetoothConnectionManager.java:80) > at br.unb.cic.bluetooth.BtUtil$1.run(BtUtil.java:717) > > > > Thanks a lot, > Alexandre > > ---------------------------------------------------------------------- > ---- > Getting Started: http://www.jini.org/wiki/Category:Getting_Started > Community Web Site: http://jini.org > jini-users Archive: http://archives.java.sun.com/archives/jini- > users.html > Unsubscribing: email "signoff JINI-USERS" to > [email protected] > > ---------------------------------------------------------------------- > ---- > Getting Started: http://www.jini.org/wiki/Category:Getting_Started > Community Web Site: http://jini.org > jini-users Archive: http://archives.java.sun.com/archives/jini- > users.html > Unsubscribing: email "signoff JINI-USERS" to > [email protected] -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected]