File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI ClassNotFoundException ===Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "RMI ClassNotFoundException ===Help" Watch "RMI ClassNotFoundException ===Help" New topic

RMI ClassNotFoundException ===Help

Chien-Hua Chiu

Joined: May 03, 2002
Posts: 7
I try few days , but still get error
my FBNClient.jar contains
1. all of FBNClient classes
2. suncertify\server\RemoteDataServer_stub.class
3. suncertify\server\IPublicDataServer.class
4. suncertify\server\IRemoteDataServer.class
5. suncertify\db\DataInfo.class
5. suncertify\db\FieldInfo.class
Do i miss something ???
D:\chiu>d:\jdk1.4\bin\java -jar\chiu\policy\java.polic
y FBNClient.jar 1099
initial url rmi://
FBNDataModeller : java.rmi.UnmarshalException: error unmarshalling return; neste
d exception is:
java.lang.ClassNotFoundException: suncertify.server.RemoteDataServer_Stu
b (no security manager: RMI class loader disabled)

harcharan kanwal
Ranch Hand

Joined: Jul 02, 2001
Posts: 64
did you install security manager both on client and server side along with the policy file,i think i had this problem , i found out that you have to install your security manager both on the server and client side.
hope this solve the problem
Chien-Hua Chiu

Joined: May 03, 2002
Posts: 7
many thanks , but i tried it , still got same error, i added as below
if (System.getSecurityManager() == null)
System.setSecurityManager(new RMISecurityManager());
but i use :
d:\jdk1.4\bin\java suncertify.client.FBNClient 1099
it works, why? classpath setting? or ...
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
Thanks! and welcome to the JavaRanch!

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
parthiban subramaniam
Ranch Hand

Joined: May 15, 2002
Posts: 116
first do a clean build .. what i mean is ..
1.delete all your classes ..
2. check and make sure that all your classes have apropriate package defnitions at the top ..
then do a build .. and build your stubs ..
some times we change a class from one package and forget to change the package declarations .. this might cause some silly but hard to debug problems..
hope this helps,

Even crazy and silly looking problems are sometimes real.
ilwyvd illtvd

Joined: Oct 20, 2002
Posts: 13
I have same problem as you, could you find any way to resolve it??
Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
I also faced the same problem. Above the most funniest thing is when I executed my FBNClient.jar by supplying IP of my machine (on Internet) then it connected very well with my machine in remote mode. But when I connected using the IP of my friends machine thn it used to throw me an exception.
I agree. Here's the link:
subject: RMI ClassNotFoundException ===Help
It's not a secret anymore!