You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Jean-Francois Arcand (JIRA)" <ji...@apache.org> on 2008/07/24 21:55:31 UTC

[jira] Created: (HARMONY-5924) [NIO] Throwable occurred: java.net.SocketException when stressing Harmony running Grizzly NIO Framework

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

                 Key: HARMONY-5924
                 URL: https://issues.apache.org/jira/browse/HARMONY-5924
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
    Affects Versions: 5.0M5
         Environment: 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
            Reporter: Jean-Francois Arcand


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 :-)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-5924) [NIO] Throwable occurred: java.net.SocketException when stressing Harmony running Grizzly NIO Framework

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616824#action_12616824 ] 

Tim Ellison commented on HARMONY-5924:
--------------------------------------

Possibly a 64-bit problem.

On Windows 32-bit it worked ok for me...

C:\temp\grizzly>C:\harmony-jdk-653525\jre\bin\java -showversion -jar grizzly-http-webserver-1.8.4.jar -p 8080 -a /temp/grizzly
Apache Harmony Launcher : (c) Copyright 1991, 2008 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r653525, (May  6 2008), Windows/ia32/msvc 1310, release build
http://harmony.apache.org
Running from: C:\temp\grizzly
Jul 25, 2008 10:33:57 AM com.sun.grizzly.http.SelectorThread displayConfiguration
INFO:
 Grizzly configuration for port 8080
         maxThreads: 5
         minThreads: 5
         ByteBuffer size: 8192
         maxHttpHeaderSize: 8192
         maxKeepAliveRequests: 256
         keepAliveTimeoutInSeconds: 30
         Static File Cache enabled: true
         Static resources directory: C:\temp\grizzly
         Adapter : com.sun.grizzly.tcp.StaticResourcesAdapter
         Thread Pool (Pipeline): com.sun.grizzly.http.LinkedListPipeline
         Asynchronous Request Processing enabled: false
Server started in 1390 milliseconds.

+++++++++++++++++++++

c:\>wget http://localhost:8080/index.html
--10:36:56--  http://localhost:8080/index.html
           => `index.html'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3,373 (3.3K) [text/html]

100%[====================================>] 3,373         --.--K/s

10:36:56 (11.61 MB/s) - `index.html' saved [3373/3373]



> [NIO] Throwable occurred: java.net.SocketException when stressing Harmony running Grizzly NIO Framework
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5924
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5924
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M5
>         Environment: 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
>            Reporter: Jean-Francois Arcand
>
> 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 :-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-5924) [NIO] Throwable occurred: java.net.SocketException when stressing Harmony running Grizzly NIO Framework

Posted by "Niklas Gustavsson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12673395#action_12673395 ] 

Niklas Gustavsson commented on HARMONY-5924:
--------------------------------------------

I get the same error when trying to run our unit tests for Apache FtpServer. This is on Ubuntu 32 bit.
java -version
Apache Harmony Launcher : (c) Copyright 1991, 2008 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0" 
pre-alpha : not complete or compatible
svn = r713673, (Nov 13 2008), Linux/ia32/gcc 4.1.2, release build
http://harmony.apache.org

Stacktrace:
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:432)
	at org.apache.mina.transport.socket.nio.NioSocketAcceptor.select(NioSocketAcceptor.java:283)
	at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.run(AbstractPollingIoAcceptor.java:395)
	at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:65)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:643)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668)
	at java.lang.Thread.run(Thread.java:670)


FtpServer is based on MINA, which, like Grizzly, is a NIO framework. 

> [NIO] Throwable occurred: java.net.SocketException when stressing Harmony running Grizzly NIO Framework
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5924
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5924
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M5
>         Environment: 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
>            Reporter: Jean-Francois Arcand
>
> 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 :-)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.