mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raman Gupta (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DIRMINA-273) Session created with non-existent service
Date Mon, 02 Oct 2006 04:21:20 GMT
     [ http://issues.apache.org/jira/browse/DIRMINA-273?page=all ]

Raman Gupta updated DIRMINA-273:

    Attachment: MinaConnectTest.java

Junit test case for 0.9.4.

> Session created with non-existent service
> -----------------------------------------
>                 Key: DIRMINA-273
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-273
>             Project: Directory MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0, 0.9.4, 0.9.5
>         Environment: Windows 2000 SP4, Java 1.5.0_08
>            Reporter: Raman Gupta
>         Attachments: MinaConnectTest.java
> On Windows 2000, when attempting to connect to a service on a port where no service is
running (either locally or remotely), Mina will sometimes create and open a session instead
of throwing an IoException. This session is of course unusable, and when attempting to use
it an exception is thrown (the following exception from Mina 0.9.4):
> java.nio.channels.NotYetConnectedException
>        at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:129)
>        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:294)
>        at org.apache.mina.transport.socket.nio.SocketIoProcessor.doFlush(SocketIoProcessor.java:480)
>        at org.apache.mina.transport.socket.nio.SocketIoProcessor.doFlush(SocketIoProcessor.java:412)
>        at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$500(SocketIoProcessor.java:41)
>        at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProcessor.java:568)
> This is reproducible within a few seconds with the attached test case on Windows 2000
on Mina 0.9.4 and Mina 1.0.0.  I also attempted to reproduce this on Linux 2.6.17 but was
unable to.
> I have attached two test cases, one MinaConnectTest and one MinaConnectTest10, the former
is for 0.9.4 and the latter is for 1.0.0 -- the only change is the exception caught.
> Though the attached test case fails uses only localhost (to avoid DNS complications),
the test case also fails if a remote host is used. I tested with a remote host running Solaris
8 from a Windows client.
> Lastly, netcat in a tight loop was used concurrently with the test to verify that the
port was indeed refusing connections.

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


View raw message