• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem of RMI with applet

varun jain x
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..
Maulin Vasavada
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.
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!