JDK-6269047 : (fc) java/nio/channels/FileChannel/LongTransferTest.java fails to connect to requested address
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2005-05-11
  • Updated: 2010-04-02
  • Resolved: 2005-10-29
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.
JDK 6
6 b59Fixed
Related Reports
Relates :  
Description
JDK        	    : Mustang b35
Platform[s]         : Fails On:  win2000 Prof
Failing Test [s]    : java/nio/channels/FileChannel/LongTransferTest.java


    Test source location:
    =====================
/java/re/jdk/6.0/latest/ws/j2se/test/java/nio/channels/FileChannel/LongTransferTest.java

    jtr file location:
    ==================
/net/cady/export6/results/mustang/b35/reg/regression-reg-win2000-2005-05-06-16-17-24-0712/workDir/java/nio/channels/FileChannel/LongTransferTest.jtr

    How to reproduce:
    ====================
    - Set JAVA_HOME to Mustang b35 windows-i586
    - map and cd /java/re/jdk/6.0/latest/ws/j2se/test/java/nio/channels/FileChannel
    - /net/koori.sfbay/onestop/jct-tools/2.1.6/archive/fcs/binaries/win32/bin/jtreg -r:/tmp -w:/tmp LongTransferTest.java

    Test output:
    =============
----------System.err:(17/1020)----------
java.net.BindException: Cannot assign requested address: connect
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
        at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:82)
        at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:65)
        at LongTransferTest.main(LongTransferTest.java:54)
        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:585)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
        at java.lang.Thread.run(Thread.java:595)

JavaTest Message: Test threw exception: java.net.BindException: Cannot assign requested address: connect
JavaTest Message: shutting down test


###@###.### 2005-05-11 22:29:40 GMT

Comments
EVALUATION SocketChannel fails to connect to a wildcard address on Windows. While the SocketSpec does say that whildard address should only be used for bind operation, the legacy Socket implementation does support it. Add this into SocketChannel implementation.
17-10-2005