Issue Details (XML | Word | Printable)

Key: DIRMINA-151
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Trustin Lee
Reporter: Trustin Lee
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MINA

java.lang.IllegalStateException: doFlush must return future.

Created: 23/Dec/05 08:58 PM   Updated: 26/Dec/05 10:09 PM
Return to search
Component/s: None
Affects Version/s: 0.9.0
Fix Version/s: 0.9.1

Time Tracking:
Not Specified

Resolution Date: 26/Dec/05 10:09 PM


 Description  « Hide
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(AbstractIoFilterChain.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(AbstractIoFilterChain.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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.