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

(cs) test/java/nio/charset/coders/StreamTimeout.java fails with "Address already in use"

XMLWordPrintable

    • b36
    • generic
    • generic
    • Verified

      This test uses a hardcoded port and fails when another service is running on that port.


      #Test Results (version 2)
      #Mon Nov 28 19:06:53 UTC 2011
      #checksum:69564a56ec5e64af
      #-----testdescription-----
      $file=/net/rialto/export/Users/ab23780/ws/jdk8/tl/jdk/test/java/nio/charset/coders/StreamTimeout.java
      $root=/net/rialto/export/Users/ab23780/ws/jdk8/tl/jdk/test
      keywords=bug4521942
      run=ASSUMED_ACTION main StreamTimeout\n
      source=StreamTimeout.java
      title=Ensure that InputStreamReaders work properly when the underlying byte stream times out

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

      #-----testresult-----
      description=file:/net/rialto/export/Users/ab23780/ws/jdk8/tl/jdk/test/java/nio/charset/coders/StreamTimeout.java
      elapsed=230 0:00:00.230
      end=Mon Nov 28 19:06:53 UTC 2011
      environment=regtest
      execStatus=Failed. Execution failed: `main' threw exception: java.net.BindException: Address already in use
      hostname=irl10090.ie.oracle.com
      javatestOS=Linux 2.6.18-238.0.0.0.1.el5xen (i386)
      javatestVersion=4.1.4
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile main
      start=Mon Nov 28 19:06:53 UTC 2011
      test=java/nio/charset/coders/StreamTimeout.java
      work=/scratch/albatem/JTwork/java/nio/charset/coders

      #section:script_messages
      ----------messages:(4/209)----------
      JDK under test: (/home/albatem/jdk1.8)
      java version "1.8.0-internal"
      Java(TM) SE Runtime Environment (build 1.8.0-internal-201111261022.albatem.jdk-b00)
      Java HotSpot(TM) Server VM (build 23.0-b05, mixed mode)

      #section:build
      ----------messages:(3/98)----------
      command: build StreamTimeout
      reason: Named class compiled on demand
      elapsed time (seconds): 0.152
      result: Passed. Build successful

      #section:compile
      ----------messages:(3/193)----------
      command: compile /net/rialto/export/Users/ab23780/ws/jdk8/tl/jdk/test/java/nio/charset/coders/StreamTimeout.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.016
      result: Passed. Compilation successful

      #section:main
      ----------messages:(3/125)----------
      command: main StreamTimeout
      reason: Assumed action based on file name: run main StreamTimeout
      elapsed time (seconds): 0.078
      ----------System.err:(17/903)----------
      java.net.BindException: Address already in use
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
      at java.net.ServerSocket.bind(ServerSocket.java:375)
      at java.net.ServerSocket.<init>(ServerSocket.java:237)
      at java.net.ServerSocket.<init>(ServerSocket.java:128)
      at StreamTimeout.main(StreamTimeout.java:98)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:474)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
      at java.lang.Thread.run(Thread.java:722)

      JavaTest Message: Test threw exception: java.net.BindException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.net.BindException: Address already in use


      test result: Failed. Execution failed: `main' threw exception: java.net.BindException: Address already in use

            jgish Jim Gish (Inactive)
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: