Details
Description
After creating MINA object for serial connection successfully I try to send data over the serial connection.
My IoHandler implementation exceptionCought() is called.
The throwable object contain the following:
org.apache.mina.core.session.AbstractIoSession.<init>(Lorg/apache/mina/core/service/IoService;)V
After debugging using the mina-transport-serial-2.0.2 sources I found out that the method write is missing from the implementation of SerialSessionImpl.SerialIoProcess. I could not build it.
So I added the method like this:
public void write(SerialSessionImpl session, WriteRequest writeRequest) {
getWriterRequestQueue.offer(session, writeRequest) ;
}
and it worked fine.