Re: Unexpected return type from space.read()

Bob Scheifler <[email protected]>
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
 From looking at the logging output you sent me off-list (thanks),
the problem seems to be that early on your service is being run
without a security manager set.  When there's no security manager
set, codebases are ignored and code isn't downloaded, classes
just get resolved locally.  Since you had reggie's and outrigger's
classes in your classpath, they resolved locally.  After outrigger's
proxy was obtained, it appears that a security manager was then set,
and so class loading started paying attention to codebases, and
when you did a space.read(), outrigger's EntryRep class in the return
value got downloaded instead of being resolved locally, which resulted
in a type mismatch.

Make sure you have a security manager set at the start of execution.

- Bob

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.