Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4864154

(ch) Test java/nio/channels/AsyncCloseAndInterrupt.java times out (w2003)

    XMLWordPrintable

Details

    • x86, itanium
    • linux, windows, windows_xp

    Description



      Name: vsR10238 Date: 05/14/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0, JDK1.4.2, JDK1.4.1
      Testbase : Regression-test
      Platform[s] : Windows 2003 Enterprise
      switch/Mode : -server
      Falling test[s]:
              java/nio/channels/AsyncCloseAndInterrupt.java

      Regression-test java/nio/channels/AsyncCloseAndInterrupt.java test from
      the test suite supplied with JDK1.4.2-b22 fails
      with JDK1.5.0 (tested with b06), JDK1.4.2 (tested with b22), JDK1.4.1 (tested with b21) on
      Windows 2003 (both 32 and 64 bit versions).

      The test passes on Windows 2000 and Windows XP (32 bit).

      The failed testcase is always the same:

      SocketChannel/write/interrupt
      java.lang.Exception: SocketChannel/write/interrupt timed out

      Note: The bug contains windows_n in the customer record because windows 2003
      has not been added yet to bugtraq. I'll change as soon as it's added.


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

      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="h:/jct-tools/3.1.2"
      JAVA_HOME="c:/j2sdk1.4.2"
      #JAVA_HOME="z:/jdk/1.4.1/promoted/fcs/b21/binaries/windows-ia64"
      TEST_BASE_PATH="z:/jdk/1.4.2/promoted/rc/b22/ws/j2se/test"
      #TEST_BASE_PATH="h:/vsh/scripts/jcc-itanium-02/Regression/test"
                                                                                                                                 
      JEMMY_JAR=h:/Jemmy/jemmy.jar
                                                                                                                                 
      HOST=`uname -n`
                                                                                                                                 
      TESTWITH=$JAVA_HOME
      TESTJAVA=$JAVA_HOME
                                                                                                                                 
      JTOPTS="-server"
      TESTVMOPTS="-server"
                                                                                                                                 
      CLASSPATH="$JT_HOME/classes;$JT_HOME/lib/javatest.jar;$JT_HOME/lib/jtreg.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,SystemRoot=c:/windows,PATH=C:/PROGRA~2/MKSTOO~1/mksnt,CPAPPEND=$JEMMY_JAR,\
      TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= \
      -DDISPLAY=:0 -DlocalHost="$HOST" -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/AsyncCloseAndInterrupt.java"
                                                                                                                                 
      --- script end ---

      Test output (jtr part):
      =======================

      SocketChannel/readv/shutdown-input
      WARNING: Asynchronous shutdown not working on Windows
      Thrown as expected: java.nio.channels.AsynchronousCloseException

      SocketChannel/write/interrupt
      java.lang.Exception: SocketChannel/write/interrupt timed out
      at TestThread.finishAndThrow(TestThread.java:60)
      at AsyncCloseAndInterrupt.test(AsyncCloseAndInterrupt.java:547)
      at AsyncCloseAndInterrupt.test(AsyncCloseAndInterrupt.java:554)
      at AsyncCloseAndInterrupt.test(AsyncCloseAndInterrupt.java:599)
      at AsyncCloseAndInterrupt.main(AsyncCloseAndInterrupt.java:637)
      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.Exception: SocketChannel/write/interrupt timed out
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.Exception: SocketChannel/write/interrupt timed out
      result: Failed. Execution failed: `main' threw exception: java.lang.Exception: SocketChannel/write/interrupt timed out


      test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: SocketChannel/write/interrupt timed out


      Specific machine info:
      ======================
      Hostname: JCC-ITANIUM-02
      OS: Windows 2003 Enterprise



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

      Attachments

        Issue Links

          Activity

            People

              sherman Xueming Shen
              vshsunw Vsh Vsh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: