• 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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 (AccessController.java)
at sun/rmi/server/RemoteProxy.getLogLevel (RemoteProxy.java:37)
at sun/rmi/server/RemoteProxy.<clinit> (RemoteProxy.java:34)
at sun/rmi/server/RemoteProxy.getStub (RemoteProxy.java)
at java/rmi/registry/LocateRegistry.getRegistry (LocateRegistry.java:144)
at java/rmi/registry/LocateRegistry.getRegistry (LocateRegistry.java:101)
at java/rmi/Naming.getRegistry (Naming.java:202)
at java/rmi/Naming.lookup (Naming.java:80)
at HelloApplet.init (HelloApplet.java:17)
at com/ms/applet/AppletPanel.securedCall0 (AppletPanel.java)
at com/ms/applet/AppletPanel.securedCall (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)
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.
Being a smart alec beats the alternative. This tiny ad knows what I'm talking about:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic