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

java.nio.FileChannel.read appears broken (WinNT)

XMLWordPrintable

    • beta
    • x86
    • linux, windows_98, windows_nt
    • Verified

      readLine() and read() of BufferedReader fails on Win Nt with merlin build 46. Its throwing the following exception.

      java.io.IOException: The specified procedure could not be found
              at sun.nio.ch.FileDispatcher.read0(Native Method)
              at sun.nio.ch.FileDispatcher.read(FileDispatcher.java:31)
              at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:155)
              at sun.nio.ch.IOUtil.read(IOUtil.java:134)
              at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:68)
              at java.io.InputStreamReader$CharsetFiller.readBytes(../../../src/share/
      classes/java/io/InputStreamReader.java:332)
              at java.io.InputStreamReader$CharsetFiller.fill(../../../src/share/class
      es/java/io/InputStreamReader.java:369)
              at java.io.InputStreamReader.read(../../../src/share/classes/java/io/Inp
      utStreamReader.java:478)
              at java.io.BufferedReader.fill(../../../src/share/classes/java/io/Buffer
      edReader.java:139)
              at java.io.BufferedReader.readLine(../../../src/share/classes/java/io/Bu
      fferedReader.java:299)
              at java.io.BufferedReader.readLine(../../../src/share/classes/java/io/Bu
      fferedReader.java:362)
              at multiThread1.run(TestSocketServer.java:68)
              at java.lang.Thread.run(../../../src/share/classes/java/lang/Thread.java
      :579)


      How to produce this error:

      1. Take the attached TestSocket and TestSocketServer classes.
      2. Run the server class(i.e. TestSocketServer) on Win Nt machine .
          java TestSocketServer

      3. Execute the client class(i.e TestSocket) on IA Sol machine(On which I have executed )
         java TestSocket serverMachineName
       
      4. On server machine find the exception.


      Other Information:

      Same tests worked fine on Win NT with jdk1.3.

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

      al.smith@eng 2001-02-26
      Regression tests Fail with Merlin build 52
      sun/net/ftp/FtpTest.java and sun/net/ftp/FtpURL.java
      java/net/URLConnection/HttpContinueStackOverflow.java

      ////////////////////////////////////////////////////
      al.smith@eng 2001-05-08

      Regression test sun/net/ftp/FtpURL.java is reoccuring with Merlin build 63 on Linux 6.2, host seahund.
       For test hardware config's, see http://sqesvr.eng/st3/jdk1.4/docs/Merlin-hw.html

      /n#Test Results (version 2)
      #Thu May 03 13:17:27 GMT+00:00 2001
      #checksum:507d9dbe8ff95af
      #-----testdescription-----
      $file=/.automount/sqesvr/root/export/st1/regression/merlin/jdk1.4Tests/tests/b63/sun/net/ftp/FtpURL.java
      $root=/.automount/sqesvr/root/export/st1/regression/merlin/jdk1.4Tests/tests/b63
      keywords=bug4398880
      run=ASSUMED_ACTION main FtpURL\n
      source=FtpURL.java
      title=FTP URL processing modified to conform to RFC 1738

      #-----environment-----

      #-----testresult-----
      description=file:///.automount/sqesvr/root/export/st1/regression/merlin/jdk1.4Tests/tests/b63/sun/net/ftp/FtpURL.java
      end=Thu May 03 13:17:27 GMT+00:00 2001
      environment=regtest
      execStatus=Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: FTP support error: ;type=d didn't generate a NLST
      javatestOS=Linux 2.2.14-6.1.1 (i386)
      javatestVersion=JT_2.1.3i
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile main
      start=Thu May 03 13:17:23 GMT+00:00 2001
      status=Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: FTP support error: ;type=d didn't generate a NLST
      test=sun/net/ftp/FtpURL.java
      work=/export0/results/regression/merlin/b63/seahund.2.2.14-6.1.1-jth13-jdk14b63-05.03-09.14-ALL/sun/net/ftp

      #section:script_messages
      ----------messages:(1/102)----------
      JDK under test: java full version "1.4.0-beta-b63" (/net/sqesvr/export/st1/jdk14-beta/b63/linux-i386)

      #section:build
      ----------messages:(3/92)----------
      command: build FtpURL
      reason: Named class compiled on demand
      elapsed time (seconds): 2.988
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/197)----------
      command: compile /.automount/sqesvr/root/export/st1/regression/merlin/jdk1.4Tests/tests/b63/sun/net/ftp/FtpURL.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 2.984
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:main
      ----------messages:(3/111)----------
      command: main FtpURL
      reason: Assumed action based on file name: run main FtpURL
      elapsed time (seconds): 1.187
      ----------System.out:(0/0)----------
      ----------System.err:(14/827)----------
      java.lang.RuntimeException: FTP support error: ;type=d didn't generate a NLST
      at FtpURL.<init>(FtpURL.java:501)
      at FtpURL.main(FtpURL.java:432)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30)
      at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl.java:48)
      at java.lang.reflect.Method.invoke(Method.java:306)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:579)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: FTP support error: ;type=d didn't generate a NLST
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: FTP support error: ;type=d didn't generate a NLST
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: FTP support error: ;type=d didn't generate a NLST


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: FTP support error: ;type=d didn't generate a NLST

            mmcclosksunw Michael Mccloskey (Inactive)
            vakellasunw Venkata Akella (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: