harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jimmy,Jing Lv" <firep...@gmail.com>
Subject Re: Problems with NIO
Date Mon, 23 Feb 2009 03:20:21 GMT
Hi Niklas,

    Thanks a lot to bring us the test result and the defect.

    As I take a quick look at the code, it is the native code returns
an error code and cause the problem. However the trace does not
contain the detail what the error code is, so we may need a simple
testcase to debug in.

     BTW, what version of Harmony are you using Niklas? (I see my file
is a bit different in line number than the trace)

2009/2/23 Niklas Gustavsson <niklas@protocol7.com>:
> Hi
> I'm a commiter on the Apache MINA/FtpServer project and have been
> trying to get our builds to work with Harmony. MINA is a NIO framework
> which tries to make development of NIO based applications simple.
> FtpServer is an FTP server (duh) based on MINA. On both projects, many
> of our unit tests will throw the following exception:
> 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)
> This also seems to happen with Grizzly, a different NIO framework. The
> JIRA issue for this is at:
> https://issues.apache.org/jira/browse/HARMONY-5924
> Also, with MINA, the Harmony VM crashes when running the unit test (or
> maybe just after) with the report in this issue:
> https://issues.apache.org/jira/browse/HARMONY-6097
> As I would like to eat our own dog food and get MINA and FtpServer
> working on Harmony, is there something I could do to help you out
> fixing these problems? I'm afraid I'm not familiar enough with the
> Harmony code to fix the problems myself at this time.
> /niklas


Best Regards!

Jimmy, Jing Lv
China Software Development Lab, IBM

View raw message