JDK-6360830 : Util.loadClass() raised "AccessControlException" is thrown on win2003EE AMD but tests passes in x86
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 1.4.2_11
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2003
  • CPU: x86
  • Submitted: 2005-12-08
  • Updated: 2010-04-03
  • Resolved: 2005-12-13
Related Reports
Duplicate :  
Description
Synopsis: CORBA/IDL : Util.loadClass() raised unexpected exception: java.security.AccessControlException: access denied (java.io.FilePermission is thrown on win2003EE AMD but no exception on windows 2003EE x86 machine.FOR all  142_XX jdks.

NOTE :
=====
Exception is abserved in both 32 bit and 64 bit jdks on windows 2003EE AMD.
It is abserved only on windows2003EE AMD.

java -version
=============
j2sdk1.4.2_11java version "1.4.2_11-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_11-ea-b01)
Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_11-ea-b01, mixed mode)

To Reproduce:
=============
1) Install the testing JDK in test machine
2) Map one of the windows drive to <corba-workspace>
3) Put PATH=<CORBA-WORKSPACE>/bin in the path.
4) CD to the mapped drive till <corba-workspace>/tests/api/javax/rmi/CORBA/Util/
5) export JAVA_HOME_MANTIS=<java-home>
Run the command as
rip-make -env mantis -v all  2>&1 | tee all.log
6) after run completion  vi all.log file (it will run not more than 2 minutes)

FOR windows 2003EE AMD OUTPUT: 
==============================
<TEST-CASE>
<TEST-CASE-ID STATUS="FAILED">LoadClass0003</TEST-CASE-ID>
<TEST-CASE-DESC>Util.loadClass() raised unexpected exception: access denied (java.io.FilePermission \\Latte\jqa-share\export\home2\masterWS\mantis-green\142_Corba\tests\api\javax\rmi\CORBA\Util\remoteCodebase read)</TEST-CASE-DESC>
</TEST-CASE>

<TEST-CASE>
<TEST-CASE-ID STATUS="FAILED">LoadClass0004</TEST-CASE-ID>
<TEST-CASE-DESC>Util.loadClass() raised unexpected exception: java.security.AccessControlException: access denied (java.io.FilePermission \\Latte\jqa-share\export\home2\masterWS\mantis-green\142_Corba\tests\api\javax\rmi\CORBA\Util\remoteCodebase read)</TEST-CASE-DESC>
</TEST-CASE>

FOR windows 2003EE x86 machine:
==============================
<TEST-CASE>
<TEST-CASE-ID STATUS="PASSED">LoadClass0003</TEST-CASE-ID>
<TEST-CASE-DESC>Loaded RemoteClassA off the specified codebase: RemoteClassA</TEST-CASE-DESC>
</TEST-CASE>

<TEST-CASE>
<TEST-CASE-ID STATUS="PASSED">LoadClass0004</TEST-CASE-ID>
<TEST-CASE-DESC>Loaded RemoteClassB using RemoteClassA: RemoteClassB</TEST-CASE-DESC>
</TEST-CASE>

WORK-SPACE LOCATION:
===================
INDIA workspace : /net/urts071.india/user1/user_dir/basavaraj/mantis_corba
username:root
password:!ncffpi!

Dublin workspace :/net/jqa-store.ireland/export/home2/masterWS/mantis-green/142_Corba

NOTE:
====
log file is attached with name 64all.log.

Comments
EVALUATION Not reproducable anymore with latest 1.4.2_11 b02 build.
08-12-2005