[
https://issues.apache.org/jira/browse/DIRMINA-900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Lecharny resolved DIRMINA-900.
---------------------------------------
Resolution: Fixed
Fixed with http://svn.apache.org/viewvc?rev=1363012&view=rev
The AbstractTest() code was buggy. It was declaring a handler, in which the
messageReceived() method was containing :
...
IoBuffer buf = (IoBuffer) message;
if (session.getFilterChain().contains("SSL")
&& buf.remaining() == 1 && buf.get() == (byte) '.')
{
...
} else {
super.messageReceived(session, message);
}
If the first byte is not a '.', we branch to the else part, except that the
buffer has moved forward one position.
Then, the message is considered as empty, and generates an exception, which
close the connection, which makes the client to fail while trying to send new
messages, if the connection is processed fast enough (which is the case on Java
7, not in Java 6)...
> One MINA 2.0.4 test is failing when run with a 1.7 jdk
> ------------------------------------------------------
>
> Key: DIRMINA-900
> URL: https://issues.apache.org/jira/browse/DIRMINA-900
> Project: MINA
> Issue Type: Bug
> Affects Versions: 2.0.4
> Environment: JDK 1.7.0_05-b06, ubuntu, maven 3.0.4
> Reporter: Emmanuel Lecharny
> Priority: Blocker
> Fix For: 2.0.5
>
>
> The org.apache.mina.example.echoserver.ConnectorTest is failing when run with
> the Java 7 JDK.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira