hi, 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.. regards Varun
hi 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. regards maulin
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!