Re: Help needed on returning serviceregistrar by hand

Alex Co <[email protected]> Thu, 25 Jun 2009 12:45:52 -0600
Newsgroups gmane.comp.java.sun.jini
Message-ID <LISTSERV%[email protected]>
I am trying this on MyLUS

MyRegistrarProxy p =3D new MyRegistrarProxy();


out.writeObject(new=20
MarshalledInstance(p,Collections.EMPTY_LIST).convertToMarshalledObject())=
;

Then another thread reads the file (out) and sends byte by byte to receiv=
er.

but on receiver (client) when the line=20

ServiceRegistrar registrar =3D lookup.getRegistrar();

is executed JVM says:

Exception in thread "main" java.io.StreamCorruptedException: invalid type=
=20
code:00

Alex

--------------------------------------------------------------------------
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]