Details
-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
None
-
rc1
-
sparc
-
solaris
Description
Error seen in the following environment:
Server:
OS : S8U3
java -version: Solaris VM (build Solaris_JDK_1.2.2_08, native threads, sunwjit)
Client:
OS : S9 build 47.
java -version:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b80)
Java HotSpot(TM) Client VM (build 1.4.0-beta3-b80, mixed mode)
SMC server generates PermissionCollection objects containing permissions of type com.sun.management.viper.VPermission. Running the implies() method on the returned PermissionCollection object returns false even if the VPermission object used as the argument exists in the PermissionCollection object.
This problem occurs when the server is running Java 1.2 and the client is running Java 1.4.
Steps to reproduce the error:
Attached is a client/server example to reproduce the problem:
Attachments: client.tar , server.tar
Extract the server classes on a host running Solaris 8, Update 3, Java 1.2.
Extract the client classes on a host running Solaris 9, Java 1.4.
Compile the src code.
Running the example:
Server side :
Set classpath to $INSTALL_DIR/rmiserver
Start rmiregistry
Start the server as follows:
java -Djava.security.manager -Djava.security.policy=policy.all server.accountServer
Client side:
Set classpath to $INSTALL_DIR/rmiclient
Run client as follows:
java -Djava.security.manager -Djava.security.policy=policy.all client.accountClient server_name
Server:
OS : S8U3
java -version: Solaris VM (build Solaris_JDK_1.2.2_08, native threads, sunwjit)
Client:
OS : S9 build 47.
java -version:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b80)
Java HotSpot(TM) Client VM (build 1.4.0-beta3-b80, mixed mode)
SMC server generates PermissionCollection objects containing permissions of type com.sun.management.viper.VPermission. Running the implies() method on the returned PermissionCollection object returns false even if the VPermission object used as the argument exists in the PermissionCollection object.
This problem occurs when the server is running Java 1.2 and the client is running Java 1.4.
Steps to reproduce the error:
Attached is a client/server example to reproduce the problem:
Attachments: client.tar , server.tar
Extract the server classes on a host running Solaris 8, Update 3, Java 1.2.
Extract the client classes on a host running Solaris 9, Java 1.4.
Compile the src code.
Running the example:
Server side :
Set classpath to $INSTALL_DIR/rmiserver
Start rmiregistry
Start the server as follows:
java -Djava.security.manager -Djava.security.policy=policy.all server.accountServer
Client side:
Set classpath to $INSTALL_DIR/rmiclient
Run client as follows:
java -Djava.security.manager -Djava.security.policy=policy.all client.accountClient server_name