[ http://issues.apache.org/jira/browse/HARMONY-1186?page=comments#action_12428252 ]
Alexey Petrenko commented on HARMONY-1186:
------------------------------------------
Here is a minimized testcase:
import java.nio.channels.*;
import java.net.*;
public class Harmony1186Test {
private static int port = 8765;
public static void main(String argv[]) throws Exception {
new AcceptorThread().start();
new Socket("localhost", port);
}
static class AcceptorThread extends Thread {
public void run() {
try {
ServerSocketChannel channel = ServerSocketChannel.open();
InetSocketAddress addr = new InetSocketAddress(port);
channel.socket().bind(addr, 10);
channel.accept();
System.err.println("PASSED");
} catch (Exception e) {
System.err.println("FAILED");
e.printStackTrace();
System.err.println("FAILED");
}
}
}
}
> [classlib][nio] unable to Http connect to Jetty server on Harmony
> -----------------------------------------------------------------
>
> Key: HARMONY-1186
> URL: http://issues.apache.org/jira/browse/HARMONY-1186
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: WinXP
> Reporter: Mikhail Loenko
>
> Harmony repeatedly print the following when I try to connect to Jetty server running
on Harmony:
> :WARN: EXCEPTION
> java.nio.channels.NotYetBoundException
> at org.apache.harmony.nio.internal.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:124)
> at org.mortbay.jetty.nio.SelectChannelConnector$SelectSet.accept(SelectChannelConnector.java:402)
> at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:177)
> at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:630)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
> ...
> To reproduce download Jetty
> http://docs.codehaus.org/display/JETTY/Downloading+and+Installing#download
> Unzip it, run
> java -jar start.jar etc/jetty.xml
> Open browser asnd type
> http://localhost:8080/test/
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|