• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

applet use rmi question?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1.in 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/AppletPanel.run
at java/lang/Thread.run
2.my java.policy file is :
grant {
// Allow everything for now
permission java.security.AllPermission;
permission java.net.SocketPermission "192.168.73.103:1024- 65536"accept, connect, listen, resolve";
};

Thank you!!!
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mark
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
When it is used for evil, then watch out! When it is used for good, then things are much nicer. Like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic