JDK-4869859 : Test java/nio/channels/FileChannel/ScatteringRead.java fails (solaris -d64)
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 1.4.2,1.4.2_11,5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_9,solaris_10
  • CPU: x86,sparc
  • Submitted: 2003-05-27
  • Updated: 2004-01-30
  • Resolved: 2003-06-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2_12Fixed
Related Reports
Duplicate :  
Description
Name: icR10030			Date: 05/27/2003


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.4.2-b24
Testbase       : RegTest-test
Platform[s]    : Solaris 9 (sparc) (CDE)
switch/Mode    : -d64 -server
Falling test[s]:
         java/nio/channels/FileChannel/ScatteringRead.java

The testcase fails on all sparc -d64.
The testcase fails in previous build too.
It seems, that this is the first Regtest run with -d64 option.

RegTest-test java/nio/channels/FileChannel/ScatteringRead.java test fails on JDK1.4.2-b24

Test source location:
=====================
/java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/java/nio/channels/FileChannel/ScatteringRead.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b24/regtest/sparc/sol9_sparc-server_novo48/workDir/test/java/nio/channels/FileChannel/ScatteringRead.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
JT_HOME="/net/linux-15/export/home/java/jct"
JAVA_HOME="/net/linux-15/export/home/java/jdk1.4.2/sparc"
TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/test"

TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME

JTOPTS="-d64 -server"
TESTVMOPTS="-d64-server"

CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar:$JT_HOME/jemmy/jemmy.jar"

export JAVA_HOME
export JT_HOME
export TESTWITH
export CLASSPATH

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 -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= 

-DDISPLAY=:0 -DlocalHost="novo48" -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/java/nio/channels/FileChannel/ScatteringRead.java"

--- script end ---

Script output:
==============

Test output (jtr part):
=======================
----------System.out:(0/0)----------
----------System.err:(14/749)----------
java.lang.RuntimeException: Test 3 failed
	at ScatteringRead.test3(ScatteringRead.java:114)
	at ScatteringRead.main(ScatteringRead.java:22)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
	at java.lang.Thread.run(Thread.java:534)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test 3 failed
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test 3 failed
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test 3 failed


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test 3 failed


Specific machine info:
======================
Hostname: novo48
OS: Solaris 9 (sparc) (CDE)



======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b10 tiger-b14 VERIFIED IN: tiger-beta
14-06-2004

EVALUATION Not for Mantis. -- ###@###.### 2003/5/27 The test relies upon reading a very large number of bytes in one operation. I have tried to make it more predictable but it may be that test3 is not suitable for automated use. ###@###.### 2003-05-29
29-05-2003