LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-09-2005, 10:20 AM   #1
vivekr
Member
 
Registered: Nov 2005
Location: Coimbatore,India
Distribution: Fedora Core4
Posts: 68

Rep: Reputation: 15
Smile RMI Required help


Hai actually I am implementing a sort of mailserver with chat.
I have partially implemented it and it ran on another system. Now in my box

Code:
MailServerImpl-- the implementation class

G:\mailserver7>rmic MailServerImpl

G:\mailserver7>dir *stub*
 Volume in drive G is STUDIES
 Volume Serial Number is 403A-2012

 Directory of G:\mailserver7

10/06/2005  08:57 PM             6,305 MailImpl_Stub.class
10/06/2005  08:57 PM             9,811 MailBoxImpl_Stub.class
12/09/2005  09:41 PM             6,657 MailServerImpl_Stub.class
               3 File(s)         22,773 bytes
               0 Dir(s)   5,431,361,536 bytes free

G:\mailserver7>java MailServerImpl
java.rmi.ServerException: Server RemoteException; nested exception is:
        java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
        java.lang.ClassNotFoundException: MailServerImpl_Stub
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
n Source)
        at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
        at sun.rmi.server.UnicastRef.invoke(Unknown Source)
        at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
        at java.rmi.Naming.rebind(Unknown Source)
        at MailServerImpl.main(Unknown Source)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested ex
ception is:
        java.lang.ClassNotFoundException: MailServerImpl_Stub
Caused by: java.lang.ClassNotFoundException: MailServerImpl_Stub

I have given the response spitted by the system. Also when I started the rmiregistry

Code:
security properties not found. using defaults.
the above msg popped up.

If u need info on code I am ready to post it.
I havent mastered rmi yet. So i may commit errors. Please help me
 
Old 12-19-2005, 02:48 AM   #2
vireshwali
Member
 
Registered: Sep 2005
Posts: 67

Rep: Reputation: 15
You need to make a security policy file and add that to java.security.policy system variable.
Are you doing it?
 
Old 12-19-2005, 08:12 AM   #3
vivekr
Member
 
Registered: Nov 2005
Location: Coimbatore,India
Distribution: Fedora Core4
Posts: 68

Original Poster
Rep: Reputation: 15
Actually I know that sth has to be done with the security policy. But since I am doing all this by myself, and I couldnt get enough mateerials on how to deal with security policies of RMI, I am stranded. Now I got u. Can u jus tell me how to do that?

Thank u so much 4 ur response.
(But I have tried sth like java -Djava.SecurityPolicy. .... . Wont this have the same effect of adding security policy file to Sysvariable)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RMI on Linux sumeetmaithil Linux - Software 0 09-20-2005 06:31 AM
iptable rule for rmi bijuhpd Linux - Newbie 2 04-27-2005 12:42 AM
[RMI JOnAS] RMI or IPTABLES Configuration fred2210 Programming 2 04-14-2005 12:24 AM
Java RMI ClassCastException sherryanee Programming 2 10-19-2004 05:25 PM
About Java RMI poeta_boy Programming 4 01-27-2004 02:18 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration