Re: Java rmi security exception
Niclas Hedhman <[email protected]>
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Organization | Private |
| Message-ID | <[email protected]> |
On Friday 22 July 2005 20:01, Prasad kadbane wrote: Below are general guidelines of what to do, to expect any decent help from a mailing list (not only this one). > I am using rmi for my project in that i am binding one object using > command. > > java -Djava.server.codebase="path to code" -Djava.secutiy.policy="path > to policy file" BindObject Please try not type a "replacement", and instead do a proper Copy/Paste of the actual values. That will eliminate the possibility that there are typing mistakes either in the commands/codes and the reporting to this list. > policy file contains all the permissions. Would be good if relevant snippets are shown to the list as well. In this case, the Policy file + the BindObject java class, unless a series of delegation happens, in which case relevant code snippets would be better. > It binds object without any problem on working machine but when I > shift my code to another machine it throws java security exception. If there is an Exception, provide the "top" of the exception (i.e. last point of your code and above), plus a pointer to where that is in the code. Cheers Niclas =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html