United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6528083 MM Rmi*BootstrapTest.sh tests fails due to GetVolumeInformation failures.
JDK-6528083 : MM Rmi*BootstrapTest.sh tests fails due to GetVolumeInformation failures.

Details
Type:
Bug
Submit Date:
2007-02-23
Status:
Closed
Updated Date:
2012-10-01
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
core-svc
OS:
generic,windows
Sub-Component:
java.lang.management
CPU:
x86,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0,6u2,7
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
Following tests fails due to "GetVolumeInformation failed: The
directory is not a subdirectory of the root directory" on
Win-AMD64 Server VM (machine em64t-001) and Win32 Server VM.
 
 sun/management/jmxremote/bootstrap/RmiBootstrapTest.sh      
 sun/management/jmxremote/bootstrap/RmiSslBootstrapTest.sh

Actual error msg is:

Test Failed: Failed to initialize connector:
        com.sun.management.jmxremote.port=12425
        com.sun.management.config.file=C:\\temp\\Work\\exec\\vm-vm_6.0_server_comp_64BITWIN-AMD642007-02-21-19-25-52\\classes\\sun\\management\\jmxremote\\bootstrap\\management_test02_ok.properties
        Error is: sun.management.AgentConfigurationError
processed file: C:\\temp\\Work\\exec\\vm-vm_6.0_server_comp_64BITWIN-AMD642007-02-21-19-25-52\\classes\\sun\\management\\jmxremote\\bootstrap\\jmxremote_test02_ok.access
...
----------System.err:(13/1144)----------
GetVolumeInformation failed: The directory is not a subdirectory of the root directory
...

I suspect the problem is with the file seperators used in this test case.

                                    

Comments
EVALUATION

The tests failed due to updating the test harness jtreg to 3.2.2_02 which a pathname in a shell script is in the shell syntax/format and not converted to the Windows pathname with the correct file separator when passed to the revokeall.exe utility written in C.

Need to fix the test (shell script) to do the conversion before passing to revokeall.
                                     
2007-05-18
SUGGESTED FIX

------- GeneratePropertyPassword.sh -------
52a53
>     WIN_TESTCLASSES=`echo ${TESTCLASSES} | sed -e 's^/^\\\\^g'` 
55c56
< s^@TEST-SRC@/^${TESTCLASSES}${DFILESEP}^g
---
> s^@TEST-SRC@/^${WIN_TESTCLASSES}${DFILESEP}^g
86a88
>    	winf2="${WIN_TESTCLASSES}${DFILESEP}${suffix}"
98c100
< 	    echo Y|$CACLS $f2 \/E \/G $USER:F
---
> 	    echo Y|$CACLS $winf2 \/E \/G $USER:F
100c102
< 	    $REVOKEALL $f2
---
> 	    $REVOKEALL $winf2
114a117
>    	winf2="${WIN_TESTCLASSES}${DFILESEP}${suffix}"
118c121
< 	    $CACLS $f2 \/E \/G Everyone:F
---
> 	    $CACLS $winf2 \/E \/G Everyone:F
                                     
2007-05-23
SUGGESTED FIX

Due to a problem in MKS "sed" doing slash to backslash conversion in some Windows machine, the fix is revised to do the slash to backslash conversion in the program (revokeall and RmiBootstrapTest) - see attached webrev-1.tar.
                                     
2007-06-08



Hardware and Software, Engineered to Work Together