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

TESTBUG: UdpTest.java and TcpTest.java are failing on Linux with jtreg

    Details

    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      x86
    • OS:
      linux_suse_sles_9

      Description

      Testcase from regression workspace, UdpTest.java and TcpTest.java is failing on Linux but passing on Solaris and Windows platforms with Tiger JDKS.

      Testcase Location:
      ==================
      /net/urts071.india/export6/testSuites/Regression/workspace_150/test/java/net/ipv6tests/TcpTest.java
      /net/urts071/export6.india/testSuites/Regression/workspace_150/test/java/net/ipv6tests/UdpTest.java

      JDK:
      ====
      java -version
      java version "1.5.0_07-ea"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-ea-b01)
      Java HotSpot(TM) Client VM (build 1.5.0_07-ea-b01, mixed mode, sharing)

      Operating System:
      ================
      cat /etc/SuSE-release
      SUSE LINUX Enterprise Server 9 (i586)
      VERSION = 9

      Steps to reproduce:
      ===================
      1. Install JDK in test machine.
      2. copy attached .java files ( UdpTest.java, Tests.java and TcpTest.java) into test machine.
      3. Compile *.java files with tested JDK with following command:
         <jdk location>/bin/javac *.java
      4. Start the test with the following command:
         <jdk location>/bin/java UdpTest

      UdpTest ERROR:
      ==============
      Exception in thread "main" java.net.BindException: Cannot assign requested address
              at java.net.PlainDatagramSocketImpl.bind0(Native Method)
              at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82)
              at java.net.DatagramSocket.bind(DatagramSocket.java:368)
              at java.net.DatagramSocket.<init>(DatagramSocket.java:210)
              at java.net.DatagramSocket.<init>(DatagramSocket.java:261)
              at UdpTest.test1(UdpTest.java:71)
              at UdpTest.main(UdpTest.java:48)

      5. <jdk location>/bin/java TcpTest

      TcpTest ERROR:
      =============
      Test1: OK
      Test1: OK
      Exception in thread "main" java.net.BindException: Cannot assign requested address
              at java.net.PlainSocketImpl.socketBind(Native Method)
              at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
              at java.net.ServerSocket.bind(ServerSocket.java:319)
              at java.net.ServerSocket.bind(ServerSocket.java:277)
              at TcpTest.test2(TcpTest.java:124)
              at TcpTest.main(TcpTest.java:50)

        Attachments

          Activity

            People

            • Assignee:
              asaha Abhijit Saha
              Reporter:
              ssubhanisunw Shaik Subhani (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: