Reggie having problems with net.jini.entry.AbstractEntry

Stephen Green <[email protected]> Tue, 18 Dec 2007 13:30:44 -0500
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
I'm writing my first Jini services and I'm encountering a problem.  I'm 
extending net.jini.entry.AbstractEntry to make a specific entry type for 
the things that I'm registering with the lookup service, but I'm seeing 
the following exception:

Dec 18, 2007 1:12:55 PM com.sun.jini.reggie.RegistrarProxy handleException
INFO: unmarshalling failure
java.lang.NoClassDefFoundError: net/jini/entry/AbstractEntry
         at java.lang.ClassLoader.defineClass2(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:719)
         at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:254)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

The weird thing is that this doesn't happen every time:  I just had it 
work a couple of times for my entry type and then it stopped working.

My entry type is pretty simple:

package com.sun.labs.util.props;

import net.jini.entry.AbstractEntry;

public class InstanceEntry extends AbstractEntry {
     public InstanceEntry() {
     }

     public InstanceEntry(String foo) {
         this.foo = foo;
     }

     public String foo;
}


Interestingly, I'm not seeing reggie ask for the InstanceEntry class 
file from my local ClassServer, and if I make a new AbstractEntry type 
(say FooEntry) that's a refactored copy of InstanceEntry and use that 
instead when registering the item with the LUS, then the new class is 
requested from the ClassServer and then everything appears to work 
(i.e., there's no exception on reggie's log and I can browse the service 
info).

I'm starting reggie with the LaunchAll script provided with the starter 
kit.  When I exit and re-run the LaunchAll script, I can see the 
exceptions.  It's like I'm not cleaning up correctly after the services 
run, or something like that.

So, what incredibly dumb mistake am I making?

Steve
-- 
Stephen Green                      //   [email protected]
Principal Investigator             \\   http://blogs.sun.com/searchguy
Advanced Search Technologies Group //   Voice: +1 781-442-0926
Sun Microsystems Labs              \\   Fax:   +1 781-442-1692

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