Well....it seems like the sunshine treatment did not work after all. The problem is back without changing the code. I rebooted the system and it came back
. I did do the -verbose and I have these observations:
After I get the registry and verify I have it by doing a list() call, I do a Naming.bind(REMOTE_DB_NAME, remoteDataStub); with REMOTE_DB_NAME being a
string constant "HIBServer" and remoteDataStub being the stub for remoteData (the implementation class of the remote interface that extends Remote and alos extents UnicastRemoteObject) that exists as RemoteData_Stub.class in the directory with all the other server classes. Below is the verbose output from this point. Note that I get a java.io.UnsupportedEncodingException a little bit after the bind() command (I have tried bind() and rebind() with same effect). I could not find anything to tell me what this exactly means but assume it is something about the stub object it does not like.
The other interesting note is if I do not startup a rmiregistry and run start my server its createRegistry() works and the same bind() (or rebind()) method works. In a debugger I can look in the created Registry object and see the binding of the name and object in its hash table.
Any hints on why the binding is successful if I create the registry vs using an empty existing registry? Thanks for all the help.
[Loaded java.rmi.Naming from C:\eclipse\jre\lib\rt.jar]
[Loaded java.rmi.Naming$ParsedNamingURL from C:\eclipse\jre\lib\rt.jar]
[Loaded sun.reflect.UnsafeFieldAccessorFactory from C:\eclipse\jre\lib\rt.jar]
[Loaded sun.reflect.UnsafeStaticFieldAccessorImpl from C:\eclipse\jre\lib\rt.jar]
[Loaded sun.reflect.UnsafeQualifiedStaticFieldAccessorImpl from C:\eclipse\jre\lib\rt.jar]
[Loaded sun.reflect.UnsafeQualifiedStaticLongFieldAccessorImpl from C:\eclipse\jre\lib\rt.jar]
[Loaded sun.reflect.UnsafeQualifiedStaticObjectFieldAccessorImpl from C:\eclipse\jre\lib\rt.jar]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor2 from __JVM_DefineClass__]
[Loaded java.io.UnsupportedEncodingException from C:\eclipse\jre\lib\rt.jar]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor3 from __JVM_DefineClass__]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor4 from __JVM_DefineClass__]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor5 from __JVM_DefineClass__]
[Loaded java.io.ObjectStreamClass$ClassDataSlot from C:\eclipse\jre\lib\rt.jar]
[Loaded sun.reflect.NativeMethodAccessorImpl from C:\eclipse\jre\lib\rt.jar]
[Loaded sun.reflect.DelegatingMethodAccessorImpl from C:\eclipse\jre\lib\rt.jar]
[Loaded java.rmi.ServerException from C:\eclipse\jre\lib\rt.jar]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor6 from __JVM_DefineClass__]
[Loaded java.io.PrintWriter from C:\eclipse\jre\lib\rt.jar]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor7 from __JVM_DefineClass__]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor8 from __JVM_DefineClass__]
[Loaded java.io.ObjectStreamClass$1 from C:\eclipse\jre\lib\rt.jar]
[Loaded java.io.ObjectStreamClass$MemberSignature from C:\eclipse\jre\lib\rt.jar]
[Loaded java.io.ObjectStreamClass$3 from C:\eclipse\jre\lib\rt.jar]
[Loaded java.io.ObjectStreamClass$4 from C:\eclipse\jre\lib\rt.jar]
[Loaded java.io.ObjectStreamClass$5 from C:\eclipse\jre\lib\rt.jar]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor9 from __JVM_DefineClass__]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor10 from __JVM_DefineClass__]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor11 from __JVM_DefineClass__]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor12 from __JVM_DefineClass__]
[Loaded java.rmi.UnmarshalException from C:\eclipse\jre\lib\rt.jar]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor13 from __JVM_DefineClass__]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor14 from __JVM_DefineClass__]
Remote Exception from bind(): RemoteException occurred in server
thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: suncertify.db.RemoteData_Stub
[Loaded java.util.HashMap$KeyIterator from C:\eclipse\jre\lib\rt.jar]