• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet use rmi question?

 
zhao xin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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!!!
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac 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
Mark
 
Tim Holloway
Saloon Keeper
Posts: 18367
56
Android Eclipse IDE 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic