Apache Directory Project - [jira] Created: (DIRMINA-151) java.lang.IllegalStateException: doFlush must return fut

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > December 2005 > [jira] Created: (DIRMINA-151) java.lang.IllegalStateException: doFlush must return fut





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Created: (DIRMINA-151) java.lang.IllegalStateException: doFlush must return fut
Trustin Lee (JIRA)

2005-12-23, 7:45 am

java.lang.IllegalStateException: doFlush must return future.
------------------------------------------------------------

Key: DIRMINA-151
URL: http://issues.apache.org/jira/browse/DIRMINA-151
Project: Directory MINA
Type: Bug
Versions: 0.9
Reporter: Trustin Lee
Assigned to: Trustin Lee
Fix For: 0.9.1


2005-12-23 10:51:34,095 [IoThreadPool-1] ERROR ESMonitorProtocol MAIN - Exception :
java.lang.IllegalStateException: doFlush must return future.
at org.apache.mina.filter.codec.support.SimpleProtocolEncoderOutput.flush(SimpleProtocolEncoderOutput.java:97)
at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:158)
at org.apache.mina.common.support.AbstractIoFilterChain. callPreviousFilterWrite(AbstractIoFilter
Chain.java:556)
at org.apache.mina.common.support.AbstractIoFilterChain.access$7(AbstractIoFilterChain.java:550)
at org.apache.mina.common.support.AbstractIoFilterChain$1.filterWrite(AbstractIoFilterChain.java:773)
at org.apache.mina.common.support.AbstractIoFilterChain$3.filterWrite(AbstractIoFilterChain.java:213)
at org.apache.mina.common.support.AbstractIoFilterChain. callPreviousFilterWrite(AbstractIoFilter
Chain.java:556)
at org.apache.mina.common.support.AbstractIoFilterChain.filterWrite(AbstractIoFilterChain.java:547)
at org.apache.mina.transport.socket.nio.support.SocketSessionImpl.write0(SocketSessionImpl.java:130)
at org.apache.mina.common.support.BaseIoSession.write(BaseIoSession.java:134)

This exception should not be thrown in normal state. I checked the code, and its logic didn't have any problem. The possible reasons are:

* Messages are being sent from multiple threads at the same time. (It can be a problem because there's no synchronization code in SimpleProtocolEncoderOutput)
* User might have implemented his ProtocolEncoder to write *null* to ProtocolEncoderOutput. SimpleProtocolEncoderOutput doesn't prohibit for now.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com