-
Bug
-
Resolution: Cannot Reproduce
-
P2
-
None
-
rmi-iiop_fcs
-
sparc
-
solaris_1
The HelloWorld Applet in the sample program now needs AllPermissions to be granted in order for it to run in the jrmp mode. The following test has been run on JDK1.2.2 W on solaris.
Without a policy file, I get the following error:
$ appletviewer http://localhost:8080/jrmp.html
Warning: JIT compiler "none" not found. Will use interpreter.
HelloApplet exception: access denied (java.net.SocketPermission 129.144.252.242:34491 connect,resolve)
java.security.AccessControlException: access denied (java.net.SocketPermission 129.144.252.242:34491 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:195)
at java.security.AccessController.checkPermission(AccessController.java:403)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1021)
at java.net.Socket.<init>(Socket.java:258)
at java.net.Socket.<init>(Socket.java:98)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:29)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:124)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:497)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:194)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:178)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:87)
at hello.RemoteHelloServer_Stub.message(Unknown Source)
at hello.RemoteHelloApplet.init(RemoteHelloApplet.java:86)
at sun.applet.AppletPanel.run(AppletPanel.java:333)
at java.lang.Thread.run(Thread.java:479)
The Applet runs fine when I pass it a policy file granting all permissions via the -J option. This used to run fine before.
Without a policy file, I get the following error:
$ appletviewer http://localhost:8080/jrmp.html
Warning: JIT compiler "none" not found. Will use interpreter.
HelloApplet exception: access denied (java.net.SocketPermission 129.144.252.242:34491 connect,resolve)
java.security.AccessControlException: access denied (java.net.SocketPermission 129.144.252.242:34491 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:195)
at java.security.AccessController.checkPermission(AccessController.java:403)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1021)
at java.net.Socket.<init>(Socket.java:258)
at java.net.Socket.<init>(Socket.java:98)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:29)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:124)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:497)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:194)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:178)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:87)
at hello.RemoteHelloServer_Stub.message(Unknown Source)
at hello.RemoteHelloApplet.init(RemoteHelloApplet.java:86)
at sun.applet.AppletPanel.run(AppletPanel.java:333)
at java.lang.Thread.run(Thread.java:479)
The Applet runs fine when I pass it a policy file granting all permissions via the -J option. This used to run fine before.