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

accept() of ServerSocket fails in networking http tests on x86

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta
    • x86
    • solaris
    • Verified

      Http tests of networking test suite failed x86 machine with build 42.
      accept() method in ServerSocket fails.

      Error Message on server side:

      java version "1.4.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b42)
      Java HotSpot(TM) Client VM (build 1.4beta-B42, interpreted mode)
      java full version "1.4.0beta-b42"
      java full version "1.4.0beta-b42"
      ERROR: Cannot accept client connection.
      ERROR: Too many open files
      java.net.SocketException: Too many open files
              at java.net.PlainSocketImpl.socketAccept(Native Method)
              at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:452)
              at java.net.ServerSocket.implAccept(ServerSocket.java:376)
              at java.net.ServerSocket.accept(ServerSocket.java:354)
              at HttpEcho.main(HttpEcho.java:99)
      FINALSTATUS:HttpEcho:EXIT_FAIL:1:Number of FAILURES:1:TEST FAILED

      Error message displayed on client side:

      java version "1.4.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b42)
      Java HotSpot(TM) Client VM (build 1.4beta-B42, interpreted mode)
      java full version "1.4.0beta-b42"
      ERROR: Connection refused
      ERROR: Connection refused
      ERROR: Connection refused
      ERROR: Connection refused
      ERROR: Connection refused
      ERROR: Connection refused
      ERROR: Connection refused


      How to reproduce this bug:

      Get the networking test suite from :
      /net/sqesvr/export/vsn/NET/merlin_jdk_net_promoted/tests

      Take x86 machine for server
      Take solaris 8 machine for client
      On both server and client machines set the JAVA_HOME to jdk1.4 build 42
      STABLE_JAVA_HOME to jdk1.3.

      execute the server and client scripts as..
      run_server quick
      run_client quick 1 servername

      Other information:
        
        Same tests are passed with jdk1.3 . and also passed on Solaris as server and Win 98 as client with jdk1.4 build42 .

            jccollet Jean-Christophe Collet (Inactive)
            vakellasunw Venkata Akella (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: