Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

problem of RMI with applet

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working with Applet and rmi.
in Appletviewer , the code works fine, but in IE it gives error.My applet simply , call Naming .lookup(...), and try to invoke a RMI function , which returns string, that i am trying to print on the browser.
All classpath settings are OK.
the error is:
java.lang.UnsatisfiedLinkError: java/security/AccessController.doPrivileged Possible causes: If you are trying to use J/Direct (@dll.import), check your compiler version (for JVC, requires 4336 or greater.) If you are trying to use RNI, there are new requirements: see documentation.
at java/security/AccessController.doPrivileged (
at sun/rmi/server/RemoteProxy.getLogLevel (
at sun/rmi/server/RemoteProxy.<clinit> (
at sun/rmi/server/RemoteProxy.getStub (
at java/rmi/registry/LocateRegistry.getRegistry (
at java/rmi/registry/LocateRegistry.getRegistry (
at java/rmi/Naming.getRegistry (
at java/rmi/Naming.lookup (
at HelloApplet.init (
at com/ms/applet/AppletPanel.securedCall0 (
at com/ms/applet/AppletPanel.securedCall (
at com/ms/applet/AppletPanel.processSentEvent (
at com/ms/applet/AppletPanel.processSentEvent (
at com/ms/applet/ (
at java/lang/ (
please reply..
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u can post this at here
what i guess the problem is when u run appletviewer it's all "local". but when u view it in the browser it is not. u should always test ur applet in the browser for the final functionality for sure as that the place where the applet is gonna loaded.
when u use browser its imposing Applet Restrictions which is being violated by the Naming thing u use here. i haven't used RMI for long so i forgot what were the parts in that....
i am not sure how it can get Local Repository and Naming lookup if u run the code from the browser. it should be handled as remote repository or so...
sorry i wish i could help more.
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic