-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b32
-
x86
-
windows_2003
-
Verified
Name: icR10030 Date: 10/29/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.5.0-b25
Testbase : Regression-test
Platform[s] : Windows 2003
switch/Mode : -server
Falling test[s]:
java/nio/channels/spi/SelectorProvider/basic.sh
Regression-test java/nio/channels/spi/SelectorProvider/basic.sh test fails with JDK1.5.0-b25 in Windows
The script basic.sh can't create /tmp dir on Samba disk, therefore test fails
Test source location:
=====================
/java/re/jdk/1.5.0/promoted/all/b25/ws/j2se/test/java/nio/channels/spi/SelectorProvider/basic.sh
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/java/nio/channels/spi/SelectorProvider/basic.jtr
How to reproduce:
=================
Run the following script (you may need to change its variables)
--- script start ---
#!/bin/sh
RESULT_DIR=`pwd`
WORK_DIR=$RESULT_DIR/workDir/test
REPORT_DIR=$RESULT_DIR/reportDir
#Paths in Java Software:
JT_HOME="z:/jct-tools/3.1.2/archive/fcs/binaries"
JEMMY_JAR="x:/Jemmy/jemmy.jar"
JAVA_HOME="z:/jdk/1.5.0/promoted/all/b25/binaries/windows-i586"
TEST_BASE_PATH="z:/jdk/1.5.0/promoted/all/b25/ws/j2se/test"
#Alternative paths outside Java Software:
#JT_HOME="z:/jct-tools/3.1.2/archive/fcs/binaries"
#JEMMY_JAR="x:/Jemmy/jemmy.jar"
#JAVA_HOME="z:/jdk/1.5.0/promoted/all/b25/binaries/windows-i586"
#TEST_BASE_PATH="z:/jdk/1.5.0/promoted/all/b25/ws/j2se/test"
#Alternative paths for the NSK site:
#JT_HOME="h:/java/jct"
#JEMMY_JAR="$JT_HOME/jemmy/jemmy.jar"
#JAVA_HOME="h:/java/jdk1.5.0/win32"
#TEST_BASE_PATH="h:/java/regtest.tiger/test"
TESTVMOPTS="-server"
CLASSPATH="$JT_HOME/classes;$JT_HOME/lib/javatest.jar;$JT_HOME/lib/jtreg.jar"
TEST="java/nio/channels/spi/SelectorProvider/basic.sh"
mkdir -p $WORK_DIR/scratch 2>&1
mkdir -p $WORK_DIR/jtData 2>&1
mkdir -p $REPORT_DIR 2>&1
#rm $WORK_DIR/jtData/ResultCache.jtw 2>&1
cd $WORK_DIR/scratch
$JAVA_HOME/bin/java -server -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,windir=$windir,SystemRoot=$SystemRoot,PATH=${SHELL%/*},CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-19" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/$TEST"
--- script end ---
Script output:
==============
Test output (jtr part):
=======================
----------System.out:(27/2263)----------
Initializing...
+ c:/j2sdk1.5.0/bin/java -cp h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/x.test User sun.nio.*
--> sun.nio.ch.WindowsSelectorProvider
+ c:/j2sdk1.5.0/bin/java -cp h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/x.test -Djava.nio.channels.spi.SelectorProvider=Provider1 User
Provider1
--> Provider1
+ c:/j2sdk1.5.0/bin/java -cp h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/x.test
-Djava.ext.dirs=h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/x.ext User Provider2
--> Provider2
+ c:/j2sdk1.5.0/bin/java -cp
h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/x.test;h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/x.test/p3.jar
User Provider3
--> Provider3
+ c:/j2sdk1.5.0/bin/java -cp
h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/x.test;h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/x.test/p3.jar
-Djava.ext.dirs=h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/x.ext -Djava.nio.channels.spi.SelectorProvider=Provider1 User Provider1
--> Provider1
+ c:/j2sdk1.5.0/bin/java -cp
h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/x.test;h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/x.test/p3.jar
-Djava.ext.dirs=h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/x.ext User Provider2
--> Provider2
+ c:/j2sdk1.5.0/bin/java -cp h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/x.test -Djava.security.manager
-Djava.security.policy=h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/selectorProvider.sp User sun.nio.*
--> sun.nio.ch.WindowsSelectorProvider
+ c:/j2sdk1.5.0/bin/java -cp h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/x.test -Djava.security.manager
-Djava.security.policy=h:/results_full/tiger/b25/regtest/win32/win2003_linux-19/workDir/test/scratch/selectorProvider2.sp User sun.nio.*
--> sun.nio.ch.WindowsSelectorProvider
3 cases failed
----------System.err:(16/1192)*----------
mkdir: directory "/tmp": Access is denied.
cd: h:\java\regtest.tiger\test\java\nio\channels\spi\SelectorProvider\basic.sh 63: /tmp: The system cannot find the file specified.
cp: Error copying file h:/java/regtest.tiger/test/java/nio/channels/spi/SelectorProvider/selectorProvider.sp to /tmp: Access is denied.
cp: Error copying file h:/java/regtest.tiger/test/java/nio/channels/spi/SelectorProvider/selectorProvider2.sp to /tmp: Access is denied.
Failed as expected: sun.misc.ServiceConfigurationError: java.security.AccessControlException: access denied (java.lang.RuntimePermission selectorProvider)
java.lang.ClassCastException: sun.misc.ServiceConfigurationError
at User.main(User.java:40)
Exception in thread "main" --> sun.nio.ch.WindowsSelectorProvider
--> sun.nio.ch.WindowsSelectorProvider
java.lang.Exception: Provider name mismatch: sun.nio.ch.WindowsSelectorProvider@a32b
at User.main(User.java:45)
Exception in thread "main" --> sun.nio.ch.WindowsSelectorProvider
--> sun.nio.ch.WindowsSelectorProvider
java.lang.Exception: Provider name mismatch: sun.nio.ch.WindowsSelectorProvider@1d8957f
at User.main(User.java:45)
Exception in thread "main"
result: Failed. Execution failed: exit code 3
test result: Failed. Execution failed: exit code 3
Specific machine info:
======================
Hostname: linux-19
OS: Windows 2003
======================================================================