Win a copy of Spark in Action this week in the Open Source Projects 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
  • 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

applet use rmi question?

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator my computer,applet or *.jsp use rmi is OK,in other computer ,*.jsp is OK,Applet hava question:
java.lang.ExceptionInInitializerError: java/lang/SecurityException
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 hello/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/ java.policy file is :
grant {
// Allow everything for now
permission " 65536"accept, connect, listen, resolve";

Thank you!!!
Posts: 17346
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no use of an Applet in the SCJD Assignment. So I can only assume that this is not a SCJD Assignment question.
I am going to move this thread to the appropriate forum. "Applets".
Good Luck
Saloon Keeper
Posts: 22245
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't say for certain, but it looks like your using Microsoft's J++, which was sufficiently unlike Java to get them successfully sued. Which is problem enough, but Microsoft then got all sulky and refused to keep J++ up to date with Java.
The reason I mention that, is because I think that the Java policy file feature was created after Micosoft stopped keeping J++ up to date, so I don't know if the policy file is even being referenced here.
But it's been a long time since I worked with J++ and I'm not totally certain. Maybe someone else can confirm or deny this.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic