Re: Persistent space question

Juan Ramirez <[email protected]>
Newsgroups gmane.comp.java.sun.javaspaces
Organization Sun Microsystems
Message-ID <[email protected]>
It looks like the problem is that the digest in the codebase annotation for the
persisted entries no longer matches because the contents of TraceService-dl.jar
have changed.  A way to get around this problem might be to package the newly
compiled classes in a different jar file and use that new jar file in the
codebase annotation henceforth, while still making the previous jar file
(TraceService-dl.jar) available for persisted entries.

Hope this helps,

Juan

David Novice wrote:
> I'm looking for help with an issue I don't understand.
> I have a persistent space in a 'secure' environment that is set up using
> httpmd for codebases, etc.
> If I start the space and write entries to it, stop the space, recompile
> my environment and restart the space,
> I get a series of exceptions, basically:
> -----------------------------------------------------------------------------------------------
> java.rmi.UnmarshalException: Encountered a ClassNotFoundException while
> unmarshalling com.cisco.si.entry.SiClassStructureEntry; nested exception is:
>         java.lang.ClassNotFoundException: could not obtain preferred
> value for: com.cisco.si.entry.SiClassStructureEntry
> ...
> Caused by: java.lang.ClassNotFoundException: could not obtain preferred
> value for: com.cisco.si.entry.SiClassStructureEntry
>         at
> net.jini.loader.pref.PreferredClassProvider.loadClass(PreferredClassProvider.java:363)
> ....
> Caused by: net.jini.url.httpmd.WrongMessageDigestException: Incorrect
> message digest for
> httpmd://rtp-dnovice-vpn9.cisco.com:9080/TraceService-dl.jar;sha=9a013d3feb0f5ee8f63cb05b509b97b48ff33d10:
> 1be3682df18c02a6639d6d58ed3784709a247bf0
> ------------------------------------------------------------------------------------------------
> Of course if I get rid of the persistent space by removing the datafile
> and then restarting it, so it has no history, things work ok. However,
> that's not an acceptable solution. How can I avoid this error?
>
> Thanks,
>
> -David
>
> ===========================================================================
> 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
>
> JDC members can download the JavaSpaces(tm) Technology from:
> http://developer.java.sun.com/developer/products/jini/

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

JDC members can download the JavaSpaces(tm) Technology from:
http://developer.java.sun.com/developer/products/jini/
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.