|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
Applet authority on the issue.
I wrote an applet client, running on their own machine (using appletviewer or IE), not (service
I ends of the machine operation).
But if the client applet running into other machines (using appletviewer), the console will be dished out anomalies (anomalies below).
Read the help file j2sdk with policytool document given to all the Client applet authority
Java.security.AllPermision), and its path to its $JAVA_HOME/jre/security/java.policy
China.
I lie in the path of Client applet C:\test\
My policy file as follows :
AUTOMATICALLY GENERATED ON LEAVES OF 13 SPECIES OF LAURACEAE Sat Jun 05 10:25:16 CST 2004*/
DO NOT EDIT */ LEAVES OF 13 SPECIES OF LAURACEAE
Grant codeBase "file:/c:/test/*" --
Permission java.security.AllPermission;
};
Then use appletviewer operation applet client, no abnormal dished out. Moreover, the results correctly.
Using IE operation, the results can not be correct (because IE operation, and was unable to see the result of abnormal operation)
Also, there is no way for the client to use IE installed or not installed IE security jre the java.policy
Documents, while operating authority? ?
Exception Report :
Java.security.AccessControlException : access denied (java.net.SocketPermission
202.200.225.119:1023 connect, resolve)
At java.security.AccessControlContext.checkPermission (AccessControlCont
Xt.java:264)
At java.security.AccessController.checkPermission (AccessController.java
401)
At java.lang.SecurityManager.checkPermission (SecurityManager.java:524)
At java.lang.SecurityManager.checkConnect (SecurityManager.java:1026)
At java.net.Socket.connect (Socket.java:499)
At java.net.Socket.connect (Socket.java:455)
At java.net.Socket.<init>; (Socket.java:363)
At java.net.Socket.<init>; (Socket.java:207)
At Messager.<init>; (Messager.java:72)
At mainConsole.initComponent (mainConsole.java:34)
At mainConsole.<init>; (mainConsole.java:79)
At sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method
At sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstruc
OrAccessorImpl.java:39)
At sun.reflect.DelegatingConstructorAccessorImpl.newInstance (Delegating
OnstructorAccessorImpl.java:27)
At java.lang.reflect.Constructor.newInstance (Constructor.java:414)
At java.lang.Class.newInstance0 (Class.java:318)
At java.lang.Class.newInstance (Class.java:271)
At sun.applet.AppletPanel.createApplet (AppletPanel.java:630)
At sun.applet.AppletPanel.runLoader (AppletPanel.java:559)
At sun.applet.AppletPanel.run (AppletPanel.java:300)
At java.lang.Thread.run (Thread.java:565)
Java.lang.NullPointerException
At Messager.run (Messager.java:33)
Java.lang.NullPointerException
At Messager.run (Messager.java:47) |
| |