aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "RMI ClassNotFoundException ===Help" Watch "RMI ClassNotFoundException ===Help" New topic
Author

RMI ClassNotFoundException ===Help

Chien-Hua Chiu
Greenhorn

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 -Djava.security.policy=d:\chiu\policy\java.polic
y FBNClient.jar 10.4.98.205 1099
initial url rmi://10.4.98.205:1099/ServerManager
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)


thanks
harcharan kanwal
Ranch Hand

Joined: Jul 02, 2001
Posts: 64
hi,
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
harcharan
Chien-Hua Chiu
Greenhorn

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 127.0.0.1 1099
it works, why? classpath setting? or ...
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
parthiban subramaniam
Ranch Hand

Joined: May 15, 2002
Posts: 116
Hi
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,
cheers,
parthi.


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

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
Hello,
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.
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI ClassNotFoundException ===Help