Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-5924

[NIO] Throwable occurred: java.net.SocketException when stressing Harmony running Grizzly NIO Framework

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.0M5
    • None
    • Classlib
    • None
    • Linux XXXXXX 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux

    Description

      Installed:

      http://apache.osuosl.org/harmony/milestones/M6/apache-harmony-jdk-r653525-linux-x86_64-64-snapshot.tar.gz

      Install the following Grizzly bundle (http://grizzly.dev.java.net):

      http://download.java.net/maven/2/com/sun/grizzly/grizzly-http-webserver/1.8.4/grizzly-http-webserver-1.8.4.jar

      then do:

      ./harmony-jdk-653525/bin/java -jar grizzly-http-webserver-1.8.4.jar -p 8080 -a /var/www

      Any HTTP request (using ab as an example) will result in:

      Throwable occurred: java.net.SocketException
      at org.apache.harmony.luni.platform.OSNetworkSystem.select(OSNetworkSystem.java:317)
      at org.apache.harmony.nio.internal.SelectorImpl.selectInternal(SelectorImpl.java:468)
      at org.apache.harmony.nio.internal.SelectorImpl.select(SelectorImpl.java:443)
      at com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:459)
      at com.sun.grizzly.Controller.doSelect(Controller.java:369)
      at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:82)
      at com.sun.grizzly.Controller.startSelectorHandlerRunner(Controller.java:1136)
      at com.sun.grizzly.Controller.start(Controller.java:943)
      at com.sun.grizzly.http.SelectorThread.startListener(SelectorThread.java:1196)
      at com.sun.grizzly.http.SelectorThread.run(SelectorThread.java:1063)

      The same command/test works fine using Sun's/IBM/BEA JDK. If this is a user error, the error message should be a little improved

      Attachments

        Activity

          People

            Unassigned Unassigned
            jfarcand Jean Arcand
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: