Re: Persistent space question
David Novice <[email protected]>
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <[email protected]> |
I should have mentioned that in this case, I made no changes to the code between one compilation and the next. I suppose perhaps having a new timestamp on the classes might be enough to change the digest in the codebase annotation. Anyway, I have no way of knowing what annotations are associated with entries in a space, and no way of knowing what jars may never be upgraded. This is unworkable. -David Juan Ramirez wrote: >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/